Skip to main content

ComputeService

Struct ComputeService 

Source
pub struct ComputeService { /* private fields */ }

Implementations§

Source§

impl ComputeService

Source

pub fn attach_instance_interface( &self, instance_id: &str, body: &AttachInstanceInterfaceBody, ) -> Request<AttachInstanceInterfaceResponse>

Attach an existing NIC to an instance

Source

pub fn attach_instance_pool_floating_ip( &self, pool_id: &str, body: &AttachInstancePoolFloatingIpBody, ) -> Request<AttachInstancePoolFloatingIpResponse>

Give the pool a shared public address

Source

pub fn attach_instance_volume( &self, instance_id: &str, body: &AttachInstanceVolumeBody, ) -> Request<AttachInstanceVolumeResponse>

Attach a data volume to an instance

Source

pub fn create_image( &self, body: &CreateImageBody, ) -> Request<CreateImageResponse>

Import an image from an object URL

Source

pub fn create_instance( &self, body: &CreateInstanceBody, ) -> Request<CreateInstanceResponse>

Create instance

Source

pub fn create_instance_pool( &self, body: &CreateInstancePoolBody, ) -> Request<CreateInstancePoolResponse>

Create an instance pool

Source

pub fn create_serial_console_ticket( &self, instance_id: &str, ) -> Request<CreateSerialConsoleTicketResponse>

Mint a ticket for the serial console

Source

pub fn delete_image(&self, image_id: &str) -> Request<DeleteImageResponse>

Delete an unused image

Source

pub fn delete_instance(&self, instance_id: &str) -> EmptyRequest

Delete instance

Source

pub fn delete_instance_pool(&self, pool_id: &str) -> EmptyRequest

Delete an instance pool

Source

pub fn detach_instance_interface( &self, instance_id: &str, interface_id: &str, ) -> EmptyRequest

Detach an interface from a running instance

Source

pub fn detach_instance_pool_floating_ip( &self, pool_id: &str, floating_ip_id: &str, ) -> EmptyRequest

Take a shared address off the pool

Source

pub fn detach_instance_volume( &self, instance_id: &str, volume_id: &str, ) -> EmptyRequest

Detach a data volume from an instance

Source

pub fn get_console_output( &self, instance_id: &str, query: &GetConsoleOutputQuery, ) -> Request<GetConsoleOutputResponse>

Get the instance’s serial console output

Source

pub fn get_console_screenshot(&self, instance_id: &str) -> BinaryRequest

Capture the instance’s display

Source

pub fn get_flavor(&self, flavor_id: &str) -> Request<GetFlavorResponse>

Get flavor

Source

pub fn get_flavor_by_reference( &self, reference: &str, scope: &GetFlavorScope, ) -> Request<GetFlavorResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_image(&self, image_id: &str) -> Request<GetImageResponse>

Get an image

Source

pub fn get_image_by_reference( &self, reference: &str, scope: &GetImageScope, ) -> Request<GetImageResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_instance(&self, instance_id: &str) -> Request<GetInstanceResponse>

Get instance

Source

pub fn get_instance_by_reference( &self, reference: &str, scope: &GetInstanceScope, ) -> Request<GetInstanceResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn get_instance_pool( &self, pool_id: &str, ) -> Request<GetInstancePoolResponse>

Get an instance pool

Source

pub fn get_instance_pool_by_reference( &self, reference: &str, scope: &GetInstancePoolScope, ) -> Request<GetInstancePoolResource>

Resolve one resource by UUID, CRN, or an unambiguous name.

Source

pub fn list_flavors( &self, query: &ListFlavorsQuery, ) -> PagedRequest<ListFlavorsResponse, ListFlavorsItem>

List flavors

Source

pub fn list_image_catalog( &self, query: &ListImageCatalogQuery, ) -> PagedRequest<ListImageCatalogResponse, ListImageCatalogItem>

List the launch image catalog

Source

pub fn list_images( &self, query: &ListImagesQuery, ) -> PagedRequest<ListImagesResponse, ListImagesItem>

List images

Source

pub fn list_instance_interfaces( &self, instance_id: &str, query: &ListInstanceInterfacesQuery, ) -> PagedRequest<ListInstanceInterfacesResponse, ListInstanceInterfacesItem>

List the instance’s network interfaces

Source

pub fn list_instance_pool_floating_ips( &self, pool_id: &str, query: &ListInstancePoolFloatingIpsQuery, ) -> PagedRequest<ListInstancePoolFloatingIpsResponse, ListInstancePoolFloatingIpsItem>

List the pool’s shared public addresses

Source

pub fn list_instance_pools( &self, query: &ListInstancePoolsQuery, ) -> PagedRequest<ListInstancePoolsResponse, ListInstancePoolsItem>

List instance pools

Source

pub fn list_instance_volumes( &self, instance_id: &str, query: &ListInstanceVolumesQuery, ) -> PagedRequest<ListInstanceVolumesResponse, ListInstanceVolumesItem>

List the instance’s attached volumes

Source

pub fn list_instances( &self, query: &ListInstancesQuery, ) -> PagedRequest<ListInstancesResponse, ListInstancesItem>

List instances

Source

pub fn list_pool_instances( &self, pool_id: &str, query: &ListPoolInstancesQuery, ) -> PagedRequest<ListPoolInstancesResponse, ListPoolInstancesItem>

List a pool’s instances

Source

pub fn reboot_instance( &self, instance_id: &str, body: Option<&RebootInstanceBody>, ) -> EmptyRequest

Reboot instance

Source

pub fn refresh_instance_pool( &self, pool_id: &str, ) -> Request<RefreshInstancePoolResponse>

Roll every member onto the pool’s current launch template

Source

pub fn reinstall_instance( &self, instance_id: &str, body: Option<&ReinstallInstanceBody>, ) -> EmptyRequest

Reinstall instance

Source

pub fn resize_instance( &self, instance_id: &str, body: &ResizeInstanceBody, ) -> EmptyRequest

Resize instance

Source

pub fn start_instance(&self, instance_id: &str) -> EmptyRequest

Start instance

Source

pub fn start_serial_console( &self, instance_id: &str, query: &StartSerialConsoleQuery, ) -> WebSocketRequest

Open an interactive serial console

Source

pub fn stop_instance(&self, instance_id: &str) -> EmptyRequest

Stop instance

Source

pub fn update_image( &self, image_id: &str, body: &UpdateImageBody, ) -> Request<UpdateImageResponse>

Update an image’s metadata

Source

pub fn update_instance( &self, instance_id: &str, body: &UpdateInstanceBody, ) -> Request<UpdateInstanceResponse>

Update instance

Source

pub fn update_instance_pool( &self, pool_id: &str, body: &UpdateInstancePoolBody, ) -> Request<UpdateInstancePoolResponse>

Update an instance pool’s description, size, tags or launch template

Source

pub fn update_instance_pool_member_protection( &self, pool_id: &str, instance_id: &str, body: &UpdateInstancePoolMemberProtectionBody, ) -> Request<UpdateInstancePoolMemberProtectionResponse>

Update member scale-in protection

Source

pub fn update_instance_volume_attachment( &self, instance_id: &str, volume_id: &str, body: &UpdateInstanceVolumeAttachmentBody, ) -> EmptyRequest

Update a volume attachment’s settings

Trait Implementations§

Source§

impl Clone for ComputeService

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComputeService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more