pub struct ImageFamilyClient { /* private fields */ }Expand description
Calls ImageFamilyService.
The catalog of image families: stable names that each launch whichever public image is current for them, so a launch gets the latest build without naming an image. Not scoped to an organisation or a project; no permission is needed.
Implementations§
Source§impl ImageFamilyClient
impl ImageFamilyClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of ImageFamilyService 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_image_family(
&self,
request: GetImageFamilyRequest,
) -> Result<ImageFamily, Error>
pub async fn get_image_family( &self, request: GetImageFamilyRequest, ) -> Result<ImageFamily, Error>
Returns an image family.
Sourcepub async fn list_image_families(
&self,
request: ListImageFamiliesRequest,
) -> Result<ListImageFamiliesResponse, Error>
pub async fn list_image_families( &self, request: ListImageFamiliesRequest, ) -> Result<ListImageFamiliesResponse, Error>
Lists every image family, including those no longer offered: check
available before launching from one.