pub struct ZoneViewMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on zoneView resources.
It is not used directly, but through the Resourceviews hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_resourceviews1_beta2 as resourceviews1_beta2;
use resourceviews1_beta2::{Resourceviews, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = Resourceviews::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `add_resources(...)`, `delete(...)`, `get(...)`, `get_service(...)`, `insert(...)`, `list(...)`, `list_resources(...)`, `remove_resources(...)` and `set_service(...)`
// to build up your call.
let rb = hub.zone_views();Implementations§
Source§impl<'a, C> ZoneViewMethods<'a, C>
impl<'a, C> ZoneViewMethods<'a, C>
Sourcepub fn add_resources(
&self,
request: ZoneViewsAddResourcesRequest,
project: &str,
zone: &str,
resource_view: &str,
) -> ZoneViewAddResourceCall<'a, C>
pub fn add_resources( &self, request: ZoneViewsAddResourcesRequest, project: &str, zone: &str, resource_view: &str, ) -> ZoneViewAddResourceCall<'a, C>
Create a builder to help you perform the following task:
Add resources to the view.
§Arguments
request- No description provided.project- The project name of the resource view.zone- The zone name of the resource view.resourceView- The name of the resource view.
Sourcepub fn delete(
&self,
project: &str,
zone: &str,
resource_view: &str,
) -> ZoneViewDeleteCall<'a, C>
pub fn delete( &self, project: &str, zone: &str, resource_view: &str, ) -> ZoneViewDeleteCall<'a, C>
Create a builder to help you perform the following task:
Delete a resource view.
§Arguments
project- The project name of the resource view.zone- The zone name of the resource view.resourceView- The name of the resource view.
Sourcepub fn get(
&self,
project: &str,
zone: &str,
resource_view: &str,
) -> ZoneViewGetCall<'a, C>
pub fn get( &self, project: &str, zone: &str, resource_view: &str, ) -> ZoneViewGetCall<'a, C>
Create a builder to help you perform the following task:
Get the information of a zonal resource view.
§Arguments
project- The project name of the resource view.zone- The zone name of the resource view.resourceView- The name of the resource view.
Sourcepub fn get_service(
&self,
project: &str,
zone: &str,
resource_view: &str,
) -> ZoneViewGetServiceCall<'a, C>
pub fn get_service( &self, project: &str, zone: &str, resource_view: &str, ) -> ZoneViewGetServiceCall<'a, C>
Create a builder to help you perform the following task:
Get the service information of a resource view or a resource.
§Arguments
project- The project name of the resource view.zone- The zone name of the resource view.resourceView- The name of the resource view.
Sourcepub fn insert(
&self,
request: ResourceView,
project: &str,
zone: &str,
) -> ZoneViewInsertCall<'a, C>
pub fn insert( &self, request: ResourceView, project: &str, zone: &str, ) -> ZoneViewInsertCall<'a, C>
Create a builder to help you perform the following task:
Create a resource view.
§Arguments
request- No description provided.project- The project name of the resource view.zone- The zone name of the resource view.
Sourcepub fn list(&self, project: &str, zone: &str) -> ZoneViewListCall<'a, C>
pub fn list(&self, project: &str, zone: &str) -> ZoneViewListCall<'a, C>
Create a builder to help you perform the following task:
List resource views.
§Arguments
project- The project name of the resource view.zone- The zone name of the resource view.
Sourcepub fn list_resources(
&self,
project: &str,
zone: &str,
resource_view: &str,
) -> ZoneViewListResourceCall<'a, C>
pub fn list_resources( &self, project: &str, zone: &str, resource_view: &str, ) -> ZoneViewListResourceCall<'a, C>
Create a builder to help you perform the following task:
List the resources of the resource view.
§Arguments
project- The project name of the resource view.zone- The zone name of the resource view.resourceView- The name of the resource view.
Sourcepub fn remove_resources(
&self,
request: ZoneViewsRemoveResourcesRequest,
project: &str,
zone: &str,
resource_view: &str,
) -> ZoneViewRemoveResourceCall<'a, C>
pub fn remove_resources( &self, request: ZoneViewsRemoveResourcesRequest, project: &str, zone: &str, resource_view: &str, ) -> ZoneViewRemoveResourceCall<'a, C>
Create a builder to help you perform the following task:
Remove resources from the view.
§Arguments
request- No description provided.project- The project name of the resource view.zone- The zone name of the resource view.resourceView- The name of the resource view.
Sourcepub fn set_service(
&self,
request: ZoneViewsSetServiceRequest,
project: &str,
zone: &str,
resource_view: &str,
) -> ZoneViewSetServiceCall<'a, C>
pub fn set_service( &self, request: ZoneViewsSetServiceRequest, project: &str, zone: &str, resource_view: &str, ) -> ZoneViewSetServiceCall<'a, C>
Create a builder to help you perform the following task:
Update the service information of a resource view or a resource.
§Arguments
request- No description provided.project- The project name of the resource view.zone- The zone name of the resource view.resourceView- The name of the resource view.