pub struct LocationClient { /* private fields */ }Expand description
Calls LocationService.
The platform’s regions and zones, and which services each zone offers. A zonal list, such as a project’s volumes, covers one zone: a client that wants every zone lists the zones here first. The same for every caller: any authenticated caller can read it, and no permission is needed.
Implementations§
Source§impl LocationClient
impl LocationClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of LocationService 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_region(
&self,
request: GetRegionRequest,
) -> Result<Region, Error>
pub async fn get_region( &self, request: GetRegionRequest, ) -> Result<Region, Error>
Returns a region.
Sourcepub async fn list_regions(
&self,
request: ListRegionsRequest,
) -> Result<ListRegionsResponse, Error>
pub async fn list_regions( &self, request: ListRegionsRequest, ) -> Result<ListRegionsResponse, Error>
Lists every region that has a zone, in catalog order.
Sourcepub async fn list_zones(
&self,
request: ListZonesRequest,
) -> Result<ListZonesResponse, Error>
pub async fn list_zones( &self, request: ListZonesRequest, ) -> Result<ListZonesResponse, Error>
Lists every zone, in catalog order. A zone offers a service when its
services names it: those are the zones a client lists that service’s
zonal resources in.