pub struct TagBindingMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on tagBinding resources.
It is not used directly, but through the CloudResourceManager
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_cloudresourcemanager3 as cloudresourcemanager3;
use std::default::Default;
use cloudresourcemanager3::{CloudResourceManager, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = CloudResourceManager::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `create(...)`, `delete(...)` and `list(...)`
// to build up your call.
let rb = hub.tag_bindings();
Implementations§
source§impl<'a, S> TagBindingMethods<'a, S>
impl<'a, S> TagBindingMethods<'a, S>
sourcepub fn create(&self, request: TagBinding) -> TagBindingCreateCall<'a, S>
pub fn create(&self, request: TagBinding) -> TagBindingCreateCall<'a, S>
Create a builder to help you perform the following task:
Creates a TagBinding between a TagValue and a Google Cloud resource.
§Arguments
request
- No description provided.
sourcepub fn delete(&self, name: &str) -> TagBindingDeleteCall<'a, S>
pub fn delete(&self, name: &str) -> TagBindingDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a TagBinding.
§Arguments
name
- Required. The name of the TagBinding. This is a String of the form:tagBindings/{id}
(e.g.tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456
).
sourcepub fn list(&self) -> TagBindingListCall<'a, S>
pub fn list(&self) -> TagBindingListCall<'a, S>
Create a builder to help you perform the following task:
Lists the TagBindings for the given Google Cloud resource, as specified with parent
. NOTE: The parent
field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name
Trait Implementations§
impl<'a, S> MethodsBuilder for TagBindingMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for TagBindingMethods<'a, S>
impl<'a, S> Send for TagBindingMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for TagBindingMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for TagBindingMethods<'a, S>
impl<'a, S> !UnwindSafe for TagBindingMethods<'a, S>
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