pub struct Client(_);
Implementations§
source§impl Client
impl Client
sourcepub fn create_or_update_value(
&self,
tag_name: impl Into<String>,
tag_value: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
pub fn create_or_update_value( &self, tag_name: impl Into<String>, tag_value: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder
Creates a predefined value for a predefined tag name. This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.
Arguments:
tag_name
: The name of the tag.tag_value
: The value of the tag to create.subscription_id
: The Microsoft Azure subscription ID.
sourcepub fn delete_value(
&self,
tag_name: impl Into<String>,
tag_value: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
pub fn delete_value( &self, tag_name: impl Into<String>, tag_value: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder
Deletes a predefined tag value for a predefined tag name. This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.
Arguments:
tag_name
: The name of the tag.tag_value
: The value of the tag to delete.subscription_id
: The Microsoft Azure subscription ID.
sourcepub fn create_or_update(
&self,
tag_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
pub fn create_or_update( &self, tag_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder
Creates a predefined tag name. This operation allows adding a name to the list of predefined tag names for the given subscription. A tag name can have a maximum of 512 characters and is case-insensitive. Tag names cannot have the following prefixes which are reserved for Azure use: ‘microsoft’, ‘azure’, ‘windows’.
Arguments:
tag_name
: The name of the tag to create.subscription_id
: The Microsoft Azure subscription ID.
sourcepub fn delete(
&self,
tag_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, tag_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder
Deletes a predefined tag name. This operation allows deleting a name from the list of predefined tag names for the given subscription. The name being deleted must not be in use as a tag name for any resource. All predefined values for the given name must have already been deleted.
Arguments:
tag_name
: The name of the tag.subscription_id
: The Microsoft Azure subscription ID.
sourcepub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder
pub fn list(&self, subscription_id: impl Into<String>) -> RequestBuilder
Gets a summary of tag usage under the subscription. This operation performs a union of predefined tags, resource tags, resource group tags and subscription tags, and returns a summary of usage for each tag name and value under the given subscription. In case of a large number of tags, this operation may return a previously cached result.
Arguments:
subscription_id
: The Microsoft Azure subscription ID.
sourcepub fn get_at_scope(&self, scope: impl Into<String>) -> RequestBuilder
pub fn get_at_scope(&self, scope: impl Into<String>) -> RequestBuilder
Gets the entire set of tags on a resource or subscription.
Arguments:
scope
: The resource scope.
sourcepub fn create_or_update_at_scope(
&self,
scope: impl Into<String>,
parameters: impl Into<TagsResource>
) -> RequestBuilder
pub fn create_or_update_at_scope( &self, scope: impl Into<String>, parameters: impl Into<TagsResource> ) -> RequestBuilder
Creates or updates the entire set of tags on a resource or subscription. This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
Arguments:
scope
: The resource scope.
sourcepub fn update_at_scope(
&self,
scope: impl Into<String>,
parameters: impl Into<TagsPatchResource>
) -> RequestBuilder
pub fn update_at_scope( &self, scope: impl Into<String>, parameters: impl Into<TagsPatchResource> ) -> RequestBuilder
Selectively updates the set of tags on a resource or subscription. This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The ‘replace’ option replaces the entire set of existing tags with a new set. The ‘merge’ option allows adding tags with new names and updating the values of tags with existing names. The ‘delete’ option allows selectively deleting tags based on given names or name/value pairs.
Arguments:
scope
: The resource scope.
sourcepub fn delete_at_scope(&self, scope: impl Into<String>) -> RequestBuilder
pub fn delete_at_scope(&self, scope: impl Into<String>) -> RequestBuilder
Deletes the entire set of tags on a resource or subscription.
Arguments:
scope
: The resource scope.