pub struct InstanceTypeClient { /* private fields */ }Expand description
Calls InstanceTypeService.
The catalog of instance types: every size the platform publishes, each saying whether an instance can be launched as it right now. Not scoped to an organisation or a project; no permission is needed.
Implementations§
Source§impl InstanceTypeClient
impl InstanceTypeClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of InstanceTypeService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub fn with_options(&self, options: CallOptions) -> Self
pub fn with_options(&self, options: CallOptions) -> Self
The same client, whose calls are sent as options says instead of as the Client’s settings do, such as a mutation that must not be sent twice: .with_options(CallOptions::new().max_attempts(1)). See CallOptions.
Sourcepub async fn get_instance_type(
&self,
request: GetInstanceTypeRequest,
) -> Result<InstanceType, Error>
pub async fn get_instance_type( &self, request: GetInstanceTypeRequest, ) -> Result<InstanceType, Error>
Returns an instance type.
Sourcepub async fn list_instance_types(
&self,
request: ListInstanceTypesRequest,
) -> Result<ListInstanceTypesResponse, Error>
pub async fn list_instance_types( &self, request: ListInstanceTypesRequest, ) -> Result<ListInstanceTypesResponse, Error>
Lists every instance type, including those no longer offered, which
instances launched as them still report: check available before
launching as one.