pub struct ScalewayApi { /* private fields */ }
Implementations§
Source§impl<'a> ScalewayApi
impl<'a> ScalewayApi
pub fn new<S>(secret_key: S) -> ScalewayApi
pub fn az_list() -> Vec<&'static str>
pub async fn get_server_types_async( &self, zone: &str, ) -> Result<Vec<ServerType>, ScalewayError>
pub fn list_images(&self, zone: &str) -> ScalewayListInstanceImagesBuilder
pub fn list_instances(&self, zone: &str) -> ScalewayListInstanceBuilder
pub fn list_marketplace_instances(&self) -> ScalewayListMarketplaceImagesBuilder
pub fn list_marketplace_instance_versions( &self, image_id: &str, ) -> ScalewayListMarketplaceImageVersionsBuilder
pub fn list_marketplace_local_images( &self, list_type: LocalImageListType, ) -> ScalewayListMarketplaceLocalImagesBuilder
pub fn create_instance( &self, zone: &str, name: &str, commercial_type: &str, ) -> ScalewayCreateInstanceBuilder
pub async fn get_instance_async( &self, zone: &str, server_id: &str, ) -> Result<ScalewayInstance, ScalewayError>
pub async fn delete_instance_async( &self, zone: &str, server_id: &str, ) -> Result<(), ScalewayError>
pub async fn perform_instance_action_async( &self, zone: &str, server_id: &str, action: &str, ) -> Result<(), ScalewayError>
pub async fn list_availability_async( &self, zone: &str, ) -> Result<HashMap<String, bool>, ScalewayError>
pub async fn list_userdata_keys_async( &self, zone: &str, machine_id: &str, ) -> Result<Vec<String>, ScalewayError>
pub async fn get_userdata_async( &self, zone: &str, machine_id: &str, key: &str, ) -> Result<ScalewayUserData, ScalewayError>
pub async fn set_userdata_async( &self, zone: &str, machine_id: &str, key: &str, value: &str, ) -> Result<(), ScalewayError>
pub async fn delete_userdata_async( &self, zone: &str, machine_id: &str, key: &str, ) -> Result<(), ScalewayError>
pub async fn delete_volume_async( &self, zone: &str, volume_id: &str, ) -> Result<(), ScalewayError>
pub async fn delete_securitygroup_async( &self, zone: &str, security_group_id: &str, ) -> Result<(), ScalewayError>
Trait Implementations§
Source§impl Clone for ScalewayApi
impl Clone for ScalewayApi
Source§fn clone(&self) -> ScalewayApi
fn clone(&self) -> ScalewayApi
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ScalewayApi
impl RefUnwindSafe for ScalewayApi
impl Send for ScalewayApi
impl Sync for ScalewayApi
impl Unpin for ScalewayApi
impl UnwindSafe for ScalewayApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more