pub struct Client(_);

Implementations§

source§

impl Client

source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.
source

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.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more