pub struct PublicImageClient { /* private fields */ }Expand description
Calls PublicImageService.
The catalog of public images: the platform’s images, in each zone, that any project’s instances can be launched from. Not scoped to an organisation or a project; no permission is needed.
Implementations§
Source§impl PublicImageClient
impl PublicImageClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of PublicImageService 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_public_image(
&self,
request: GetPublicImageRequest,
) -> Result<PublicImage, Error>
pub async fn get_public_image( &self, request: GetPublicImageRequest, ) -> Result<PublicImage, Error>
Returns a public image.
Sourcepub async fn list_public_images(
&self,
request: ListPublicImagesRequest,
) -> Result<ListPublicImagesResponse, Error>
pub async fn list_public_images( &self, request: ListPublicImagesRequest, ) -> Result<ListPublicImagesResponse, Error>
Lists the public images in a zone, oldest first.
Sourcepub fn all_public_images(
&self,
request: ListPublicImagesRequest,
) -> Pages<PublicImage>
pub fn all_public_images( &self, request: ListPublicImagesRequest, ) -> Pages<PublicImage>
Returns everything list_public_images lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.