pub struct Client(_);

Implementations§

source§

impl Client

source

pub fn get_at_resource_group_level( &self, resource_group_name: impl Into<String>, lock_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Gets a management lock at the resource group level.

Arguments:

  • resource_group_name: The name of the locked resource group.
  • lock_name: The name of the lock to get.
  • subscription_id: The ID of the target subscription.
source

pub fn create_or_update_at_resource_group_level( &self, resource_group_name: impl Into<String>, lock_name: impl Into<String>, parameters: impl Into<ManagementLockObject>, subscription_id: impl Into<String> ) -> RequestBuilder

Creates or updates a management lock at the resource group level. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

Arguments:

  • resource_group_name: The name of the resource group to lock.
  • lock_name: The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
  • parameters: The management lock parameters.
  • subscription_id: The ID of the target subscription.
source

pub fn delete_at_resource_group_level( &self, resource_group_name: impl Into<String>, lock_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Deletes a management lock at the resource group level. To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

Arguments:

  • resource_group_name: The name of the resource group containing the lock.
  • lock_name: The name of lock to delete.
  • subscription_id: The ID of the target subscription.
source

pub fn get_by_scope( &self, scope: impl Into<String>, lock_name: impl Into<String> ) -> RequestBuilder

Get a management lock by scope.

Arguments:

  • scope: The scope for the lock.
  • lock_name: The name of lock.
source

pub fn create_or_update_by_scope( &self, scope: impl Into<String>, lock_name: impl Into<String>, parameters: impl Into<ManagementLockObject> ) -> RequestBuilder

Create or update a management lock by scope.

Arguments:

  • scope: The scope for the lock. When providing a scope for the assignment, use ‘/subscriptions/{subscriptionId}’ for subscriptions, ‘/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}’ for resource groups, and ‘/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}’ for resources.
  • lock_name: The name of lock.
  • parameters: Create or update management lock parameters.
source

pub fn delete_by_scope( &self, scope: impl Into<String>, lock_name: impl Into<String> ) -> RequestBuilder

Delete a management lock by scope.

Arguments:

  • scope: The scope for the lock.
  • lock_name: The name of lock.
source

pub fn get_at_resource_level( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, lock_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Get the management lock of a resource or any level below resource.

Arguments:

  • resource_group_name: The name of the resource group.
  • resource_provider_namespace: The namespace of the resource provider.
  • parent_resource_path: An extra path parameter needed in some services, like SQL Databases.
  • resource_type: The type of the resource.
  • resource_name: The name of the resource.
  • lock_name: The name of lock.
  • subscription_id: The ID of the target subscription.
source

pub fn create_or_update_at_resource_level( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, lock_name: impl Into<String>, parameters: impl Into<ManagementLockObject>, subscription_id: impl Into<String> ) -> RequestBuilder

Creates or updates a management lock at the resource level or any level below the resource. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

Arguments:

  • resource_group_name: The name of the resource group containing the resource to lock.
  • resource_provider_namespace: The resource provider namespace of the resource to lock.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type of the resource to lock.
  • resource_name: The name of the resource to lock.
  • lock_name: The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
  • parameters: Parameters for creating or updating a management lock.
  • subscription_id: The ID of the target subscription.
source

pub fn delete_at_resource_level( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, lock_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Deletes the management lock of a resource or any level below the resource. To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

Arguments:

  • resource_group_name: The name of the resource group containing the resource with the lock to delete.
  • resource_provider_namespace: The resource provider namespace of the resource with the lock to delete.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type of the resource with the lock to delete.
  • resource_name: The name of the resource with the lock to delete.
  • lock_name: The name of the lock to delete.
  • subscription_id: The ID of the target subscription.
source

pub fn get_at_subscription_level( &self, lock_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Gets a management lock at the subscription level.

Arguments:

  • lock_name: The name of the lock to get.
  • subscription_id: The ID of the target subscription.
source

pub fn create_or_update_at_subscription_level( &self, lock_name: impl Into<String>, parameters: impl Into<ManagementLockObject>, subscription_id: impl Into<String> ) -> RequestBuilder

Creates or updates a management lock at the subscription level. When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

Arguments:

  • lock_name: The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.
  • parameters: The management lock parameters.
  • subscription_id: The ID of the target subscription.
source

pub fn delete_at_subscription_level( &self, lock_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Deletes the management lock at the subscription level. To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

Arguments:

  • lock_name: The name of lock to delete.
  • subscription_id: The ID of the target subscription.
source

pub fn list_at_resource_group_level( &self, resource_group_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Gets all the management locks for a resource group.

Arguments:

  • resource_group_name: The name of the resource group containing the locks to get.
  • subscription_id: The ID of the target subscription.
source

pub fn list_at_resource_level( &self, resource_group_name: impl Into<String>, resource_provider_namespace: impl Into<String>, parent_resource_path: impl Into<String>, resource_type: impl Into<String>, resource_name: impl Into<String>, subscription_id: impl Into<String> ) -> RequestBuilder

Gets all the management locks for a resource or any level below resource.

Arguments:

  • resource_group_name: The name of the resource group containing the locked resource. The name is case insensitive.
  • resource_provider_namespace: The namespace of the resource provider.
  • parent_resource_path: The parent resource identity.
  • resource_type: The resource type of the locked resource.
  • resource_name: The name of the locked resource.
  • subscription_id: The ID of the target subscription.
source

pub fn list_at_subscription_level( &self, subscription_id: impl Into<String> ) -> RequestBuilder

Gets all the management locks for a subscription.

Arguments:

  • subscription_id: The ID of the target subscription.
source

pub fn list_by_scope(&self, scope: impl Into<String>) -> RequestBuilder

Gets all the management locks for a scope.

Arguments:

  • scope: The scope for the lock. When providing a scope for the assignment, use ‘/subscriptions/{subscriptionId}’ for subscriptions, ‘/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}’ for resource groups, and ‘/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}’ for resources.

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