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 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.
Trait Implementations§
Source§impl Clone for LocationClient
impl Clone for LocationClient
Auto Trait Implementations§
impl !RefUnwindSafe for LocationClient
impl !UnwindSafe for LocationClient
impl Freeze for LocationClient
impl Send for LocationClient
impl Sync for LocationClient
impl Unpin for LocationClient
impl UnsafeUnpin for LocationClient
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