pub struct InstanceApi<'a> { /* private fields */ }Implementations§
Source§impl<'a> InstanceApi<'a>
impl<'a> InstanceApi<'a>
Sourcepub async fn instance_type_list(
&self,
) -> Result<InstanceTypeListResponse, WebArenaIndigoApiError>
pub async fn instance_type_list( &self, ) -> Result<InstanceTypeListResponse, WebArenaIndigoApiError>
GET /webarenaIndigo/v1/vm/instancetypes
Sourcepub async fn region_list(
&self,
instance_type_id: u32,
) -> Result<RegionListResponse, WebArenaIndigoApiError>
pub async fn region_list( &self, instance_type_id: u32, ) -> Result<RegionListResponse, WebArenaIndigoApiError>
GET /webarenaIndigo/v1/vm/getregion
Sourcepub async fn os_list(
&self,
instance_type_id: u32,
) -> Result<OsListResponse, WebArenaIndigoApiError>
pub async fn os_list( &self, instance_type_id: u32, ) -> Result<OsListResponse, WebArenaIndigoApiError>
GET /webarenaIndigo/v1/vm/oslist
Sourcepub async fn instance_specification(
&self,
instance_type_id: u32,
) -> Result<InstanceSpecificationResponse, WebArenaIndigoApiError>
pub async fn instance_specification( &self, instance_type_id: u32, ) -> Result<InstanceSpecificationResponse, WebArenaIndigoApiError>
GET /webarenaIndigo/v1/vm/getinstancespec
Sourcepub async fn create_instance(
&self,
request: CreateInstanceRequest,
) -> Result<CreateInstanceResponse, WebArenaIndigoApiError>
pub async fn create_instance( &self, request: CreateInstanceRequest, ) -> Result<CreateInstanceResponse, WebArenaIndigoApiError>
POST /webarenaIndigo/v1/vm/createinstance
Sourcepub async fn instance_list(
&self,
) -> Result<Vec<Instance>, WebArenaIndigoApiError>
pub async fn instance_list( &self, ) -> Result<Vec<Instance>, WebArenaIndigoApiError>
GET /webarenaIndigo/v1/vm/getinstancelist
Sourcepub async fn update_instance_status(
&self,
instance_id: u32,
status: InstanceStatus,
) -> Result<UpdateInstanceStatusResponse, WebArenaIndigoApiError>
pub async fn update_instance_status( &self, instance_id: u32, status: InstanceStatus, ) -> Result<UpdateInstanceStatusResponse, WebArenaIndigoApiError>
POST /webarenaIndigo/v1/vm/instance/statusupdate
InstanceStatus::Destroy deletes the instance.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InstanceApi<'a>
impl<'a> !UnwindSafe for InstanceApi<'a>
impl<'a> Freeze for InstanceApi<'a>
impl<'a> Send for InstanceApi<'a>
impl<'a> Sync for InstanceApi<'a>
impl<'a> Unpin for InstanceApi<'a>
impl<'a> UnsafeUnpin for InstanceApi<'a>
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