pub struct ComputeService { /* private fields */ }Implementations§
Source§impl ComputeService
impl ComputeService
Sourcepub fn attach_instance_interface(
&self,
instance_id: &str,
body: &AttachInstanceInterfaceBody,
) -> Request<AttachInstanceInterfaceResponse>
pub fn attach_instance_interface( &self, instance_id: &str, body: &AttachInstanceInterfaceBody, ) -> Request<AttachInstanceInterfaceResponse>
Attach an existing NIC to an instance
Sourcepub fn attach_instance_pool_floating_ip(
&self,
pool_id: &str,
body: &AttachInstancePoolFloatingIpBody,
) -> Request<AttachInstancePoolFloatingIpResponse>
pub fn attach_instance_pool_floating_ip( &self, pool_id: &str, body: &AttachInstancePoolFloatingIpBody, ) -> Request<AttachInstancePoolFloatingIpResponse>
Give the pool a shared public address
Sourcepub fn attach_instance_volume(
&self,
instance_id: &str,
body: &AttachInstanceVolumeBody,
) -> Request<AttachInstanceVolumeResponse>
pub fn attach_instance_volume( &self, instance_id: &str, body: &AttachInstanceVolumeBody, ) -> Request<AttachInstanceVolumeResponse>
Attach a data volume to an instance
Sourcepub fn create_image(
&self,
body: &CreateImageBody,
) -> Request<CreateImageResponse>
pub fn create_image( &self, body: &CreateImageBody, ) -> Request<CreateImageResponse>
Import an image from an object URL
Sourcepub fn create_instance(
&self,
body: &CreateInstanceBody,
) -> Request<CreateInstanceResponse>
pub fn create_instance( &self, body: &CreateInstanceBody, ) -> Request<CreateInstanceResponse>
Create instance
Sourcepub fn create_instance_pool(
&self,
body: &CreateInstancePoolBody,
) -> Request<CreateInstancePoolResponse>
pub fn create_instance_pool( &self, body: &CreateInstancePoolBody, ) -> Request<CreateInstancePoolResponse>
Create an instance pool
Sourcepub fn create_serial_console_ticket(
&self,
instance_id: &str,
) -> Request<CreateSerialConsoleTicketResponse>
pub fn create_serial_console_ticket( &self, instance_id: &str, ) -> Request<CreateSerialConsoleTicketResponse>
Mint a ticket for the serial console
Sourcepub fn delete_image(&self, image_id: &str) -> Request<DeleteImageResponse>
pub fn delete_image(&self, image_id: &str) -> Request<DeleteImageResponse>
Delete an unused image
Sourcepub fn delete_instance(&self, instance_id: &str) -> EmptyRequest
pub fn delete_instance(&self, instance_id: &str) -> EmptyRequest
Delete instance
Sourcepub fn delete_instance_pool(&self, pool_id: &str) -> EmptyRequest
pub fn delete_instance_pool(&self, pool_id: &str) -> EmptyRequest
Delete an instance pool
Sourcepub fn detach_instance_interface(
&self,
instance_id: &str,
interface_id: &str,
) -> EmptyRequest
pub fn detach_instance_interface( &self, instance_id: &str, interface_id: &str, ) -> EmptyRequest
Detach an interface from a running instance
Sourcepub fn detach_instance_pool_floating_ip(
&self,
pool_id: &str,
floating_ip_id: &str,
) -> EmptyRequest
pub fn detach_instance_pool_floating_ip( &self, pool_id: &str, floating_ip_id: &str, ) -> EmptyRequest
Take a shared address off the pool
Sourcepub fn detach_instance_volume(
&self,
instance_id: &str,
volume_id: &str,
) -> EmptyRequest
pub fn detach_instance_volume( &self, instance_id: &str, volume_id: &str, ) -> EmptyRequest
Detach a data volume from an instance
Sourcepub fn get_console_output(
&self,
instance_id: &str,
query: &GetConsoleOutputQuery,
) -> Request<GetConsoleOutputResponse>
pub fn get_console_output( &self, instance_id: &str, query: &GetConsoleOutputQuery, ) -> Request<GetConsoleOutputResponse>
Get the instance’s serial console output
Sourcepub fn get_console_screenshot(&self, instance_id: &str) -> BinaryRequest
pub fn get_console_screenshot(&self, instance_id: &str) -> BinaryRequest
Capture the instance’s display
Sourcepub fn get_flavor(&self, flavor_id: &str) -> Request<GetFlavorResponse>
pub fn get_flavor(&self, flavor_id: &str) -> Request<GetFlavorResponse>
Get flavor
Sourcepub fn get_flavor_by_reference(
&self,
reference: &str,
scope: &GetFlavorScope,
) -> Request<GetFlavorResource>
pub fn get_flavor_by_reference( &self, reference: &str, scope: &GetFlavorScope, ) -> Request<GetFlavorResource>
Resolve one resource by UUID, CRN, or an unambiguous name.
Sourcepub fn get_image(&self, image_id: &str) -> Request<GetImageResponse>
pub fn get_image(&self, image_id: &str) -> Request<GetImageResponse>
Get an image
Sourcepub fn get_image_by_reference(
&self,
reference: &str,
scope: &GetImageScope,
) -> Request<GetImageResource>
pub fn get_image_by_reference( &self, reference: &str, scope: &GetImageScope, ) -> Request<GetImageResource>
Resolve one resource by UUID, CRN, or an unambiguous name.
Sourcepub fn get_instance(&self, instance_id: &str) -> Request<GetInstanceResponse>
pub fn get_instance(&self, instance_id: &str) -> Request<GetInstanceResponse>
Get instance
Sourcepub fn get_instance_by_reference(
&self,
reference: &str,
scope: &GetInstanceScope,
) -> Request<GetInstanceResource>
pub fn get_instance_by_reference( &self, reference: &str, scope: &GetInstanceScope, ) -> Request<GetInstanceResource>
Resolve one resource by UUID, CRN, or an unambiguous name.
Sourcepub fn get_instance_pool(
&self,
pool_id: &str,
) -> Request<GetInstancePoolResponse>
pub fn get_instance_pool( &self, pool_id: &str, ) -> Request<GetInstancePoolResponse>
Get an instance pool
Sourcepub fn get_instance_pool_by_reference(
&self,
reference: &str,
scope: &GetInstancePoolScope,
) -> Request<GetInstancePoolResource>
pub fn get_instance_pool_by_reference( &self, reference: &str, scope: &GetInstancePoolScope, ) -> Request<GetInstancePoolResource>
Resolve one resource by UUID, CRN, or an unambiguous name.
Sourcepub fn list_flavors(
&self,
query: &ListFlavorsQuery,
) -> PagedRequest<ListFlavorsResponse, ListFlavorsItem>
pub fn list_flavors( &self, query: &ListFlavorsQuery, ) -> PagedRequest<ListFlavorsResponse, ListFlavorsItem>
List flavors
Sourcepub fn list_image_catalog(
&self,
query: &ListImageCatalogQuery,
) -> PagedRequest<ListImageCatalogResponse, ListImageCatalogItem>
pub fn list_image_catalog( &self, query: &ListImageCatalogQuery, ) -> PagedRequest<ListImageCatalogResponse, ListImageCatalogItem>
List the launch image catalog
Sourcepub fn list_images(
&self,
query: &ListImagesQuery,
) -> PagedRequest<ListImagesResponse, ListImagesItem>
pub fn list_images( &self, query: &ListImagesQuery, ) -> PagedRequest<ListImagesResponse, ListImagesItem>
List images
Sourcepub fn list_instance_interfaces(
&self,
instance_id: &str,
query: &ListInstanceInterfacesQuery,
) -> PagedRequest<ListInstanceInterfacesResponse, ListInstanceInterfacesItem>
pub fn list_instance_interfaces( &self, instance_id: &str, query: &ListInstanceInterfacesQuery, ) -> PagedRequest<ListInstanceInterfacesResponse, ListInstanceInterfacesItem>
List the instance’s network interfaces
Sourcepub fn list_instance_pool_floating_ips(
&self,
pool_id: &str,
query: &ListInstancePoolFloatingIpsQuery,
) -> PagedRequest<ListInstancePoolFloatingIpsResponse, ListInstancePoolFloatingIpsItem>
pub fn list_instance_pool_floating_ips( &self, pool_id: &str, query: &ListInstancePoolFloatingIpsQuery, ) -> PagedRequest<ListInstancePoolFloatingIpsResponse, ListInstancePoolFloatingIpsItem>
List the pool’s shared public addresses
Sourcepub fn list_instance_pools(
&self,
query: &ListInstancePoolsQuery,
) -> PagedRequest<ListInstancePoolsResponse, ListInstancePoolsItem>
pub fn list_instance_pools( &self, query: &ListInstancePoolsQuery, ) -> PagedRequest<ListInstancePoolsResponse, ListInstancePoolsItem>
List instance pools
Sourcepub fn list_instance_volumes(
&self,
instance_id: &str,
query: &ListInstanceVolumesQuery,
) -> PagedRequest<ListInstanceVolumesResponse, ListInstanceVolumesItem>
pub fn list_instance_volumes( &self, instance_id: &str, query: &ListInstanceVolumesQuery, ) -> PagedRequest<ListInstanceVolumesResponse, ListInstanceVolumesItem>
List the instance’s attached volumes
Sourcepub fn list_instances(
&self,
query: &ListInstancesQuery,
) -> PagedRequest<ListInstancesResponse, ListInstancesItem>
pub fn list_instances( &self, query: &ListInstancesQuery, ) -> PagedRequest<ListInstancesResponse, ListInstancesItem>
List instances
Sourcepub fn list_pool_instances(
&self,
pool_id: &str,
query: &ListPoolInstancesQuery,
) -> PagedRequest<ListPoolInstancesResponse, ListPoolInstancesItem>
pub fn list_pool_instances( &self, pool_id: &str, query: &ListPoolInstancesQuery, ) -> PagedRequest<ListPoolInstancesResponse, ListPoolInstancesItem>
List a pool’s instances
Sourcepub fn reboot_instance(
&self,
instance_id: &str,
body: Option<&RebootInstanceBody>,
) -> EmptyRequest
pub fn reboot_instance( &self, instance_id: &str, body: Option<&RebootInstanceBody>, ) -> EmptyRequest
Reboot instance
Sourcepub fn refresh_instance_pool(
&self,
pool_id: &str,
) -> Request<RefreshInstancePoolResponse>
pub fn refresh_instance_pool( &self, pool_id: &str, ) -> Request<RefreshInstancePoolResponse>
Roll every member onto the pool’s current launch template
Sourcepub fn reinstall_instance(
&self,
instance_id: &str,
body: Option<&ReinstallInstanceBody>,
) -> EmptyRequest
pub fn reinstall_instance( &self, instance_id: &str, body: Option<&ReinstallInstanceBody>, ) -> EmptyRequest
Reinstall instance
Sourcepub fn resize_instance(
&self,
instance_id: &str,
body: &ResizeInstanceBody,
) -> EmptyRequest
pub fn resize_instance( &self, instance_id: &str, body: &ResizeInstanceBody, ) -> EmptyRequest
Resize instance
Sourcepub fn start_instance(&self, instance_id: &str) -> EmptyRequest
pub fn start_instance(&self, instance_id: &str) -> EmptyRequest
Start instance
Sourcepub fn start_serial_console(
&self,
instance_id: &str,
query: &StartSerialConsoleQuery,
) -> WebSocketRequest
pub fn start_serial_console( &self, instance_id: &str, query: &StartSerialConsoleQuery, ) -> WebSocketRequest
Open an interactive serial console
Sourcepub fn stop_instance(&self, instance_id: &str) -> EmptyRequest
pub fn stop_instance(&self, instance_id: &str) -> EmptyRequest
Stop instance
Sourcepub fn update_image(
&self,
image_id: &str,
body: &UpdateImageBody,
) -> Request<UpdateImageResponse>
pub fn update_image( &self, image_id: &str, body: &UpdateImageBody, ) -> Request<UpdateImageResponse>
Update an image’s metadata
Sourcepub fn update_instance(
&self,
instance_id: &str,
body: &UpdateInstanceBody,
) -> Request<UpdateInstanceResponse>
pub fn update_instance( &self, instance_id: &str, body: &UpdateInstanceBody, ) -> Request<UpdateInstanceResponse>
Update instance
Sourcepub fn update_instance_pool(
&self,
pool_id: &str,
body: &UpdateInstancePoolBody,
) -> Request<UpdateInstancePoolResponse>
pub fn update_instance_pool( &self, pool_id: &str, body: &UpdateInstancePoolBody, ) -> Request<UpdateInstancePoolResponse>
Update an instance pool’s description, size, tags or launch template
Sourcepub fn update_instance_pool_member_protection(
&self,
pool_id: &str,
instance_id: &str,
body: &UpdateInstancePoolMemberProtectionBody,
) -> Request<UpdateInstancePoolMemberProtectionResponse>
pub fn update_instance_pool_member_protection( &self, pool_id: &str, instance_id: &str, body: &UpdateInstancePoolMemberProtectionBody, ) -> Request<UpdateInstancePoolMemberProtectionResponse>
Update member scale-in protection
Sourcepub fn update_instance_volume_attachment(
&self,
instance_id: &str,
volume_id: &str,
body: &UpdateInstanceVolumeAttachmentBody,
) -> EmptyRequest
pub fn update_instance_volume_attachment( &self, instance_id: &str, volume_id: &str, body: &UpdateInstanceVolumeAttachmentBody, ) -> EmptyRequest
Update a volume attachment’s settings