Struct google_cloudresourcemanager3::api::TagValueMethods [−][src]
A builder providing access to all methods supported on tagValue 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 yup_oauth2 as oauth2; extern crate google_cloudresourcemanager3 as cloudresourcemanager3; use std::default::Default; use oauth2; use cloudresourcemanager3::CloudResourceManager; let secret: oauth2::ApplicationSecret = Default::default(); let auth = yup_oauth2::InstalledFlowAuthenticator::builder( secret, yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect, ).build().await.unwrap(); let mut hub = CloudResourceManager::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `create(...)`, `delete(...)`, `get(...)`, `get_iam_policy(...)`, `list(...)`, `patch(...)`, `set_iam_policy(...)` and `test_iam_permissions(...)` // to build up your call. let rb = hub.tag_values();
Implementations
impl<'a, C> TagValueMethods<'a, C>
[src]
pub fn create(&self, request: TagValue) -> TagValueCreateCall<'a, C>
[src]
Create a builder to help you perform the following task:
Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 300 TagValues can exist under a TagKey at any given time.
Arguments
request
- No description provided.
pub fn delete(&self, name: &str) -> TagValueDeleteCall<'a, C>
[src]
Create a builder to help you perform the following task:
Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.
Arguments
name
- Required. Resource name for TagValue to be deleted in the format tagValues/456.
pub fn get(&self, name: &str) -> TagValueGetCall<'a, C>
[src]
Create a builder to help you perform the following task:
Retrieves TagValue. If the TagValue or namespaced name does not exist, or if the user does not have permission to view it, this method will return PERMISSION_DENIED
.
Arguments
name
- Required. Resource name for TagValue to be fetched in the formattagValues/456
.
pub fn get_iam_policy(
&self,
request: GetIamPolicyRequest,
resource: &str
) -> TagValueGetIamPolicyCall<'a, C>
[src]
&self,
request: GetIamPolicyRequest,
resource: &str
) -> TagValueGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a TagValue. The returned policy may be empty if no such policy or resource exists. The resource
field should be the TagValue’s resource name. For example: tagValues/1234
. The caller must have the cloudresourcemanager.googleapis.com/tagValues.getIamPolicy
permission on the identified TagValue to get the access control policy.
Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
pub fn list(&self) -> TagValueListCall<'a, C>
[src]
Create a builder to help you perform the following task:
Lists all TagValues for a specific TagKey.
pub fn patch(&self, request: TagValue, name: &str) -> TagValuePatchCall<'a, C>
[src]
Create a builder to help you perform the following task:
Updates the attributes of the TagValue resource.
Arguments
request
- No description provided.name
- Immutable. Resource name for TagValue in the formattagValues/456
.
pub fn set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str
) -> TagValueSetIamPolicyCall<'a, C>
[src]
&self,
request: SetIamPolicyRequest,
resource: &str
) -> TagValueSetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Sets the access control policy on a TagValue, replacing any existing policy. The resource
field should be the TagValue’s resource name. For example: tagValues/1234
. The caller must have resourcemanager.tagValues.setIamPolicy
permission on the identified tagValue.
Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
pub fn test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str
) -> TagValueTestIamPermissionCall<'a, C>
[src]
&self,
request: TestIamPermissionsRequest,
resource: &str
) -> TagValueTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
Returns permissions that a caller has on the specified TagValue. The resource
field should be the TagValue’s resource name. For example: tagValues/1234
. There are no permissions required for making this API call.
Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
Trait Implementations
impl<'a, C> MethodsBuilder for TagValueMethods<'a, C>
[src]
Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for TagValueMethods<'a, C>
impl<'a, C> !Send for TagValueMethods<'a, C>
impl<'a, C> !Sync for TagValueMethods<'a, C>
impl<'a, C> Unpin for TagValueMethods<'a, C>
impl<'a, C> !UnwindSafe for TagValueMethods<'a, C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,