pub struct Client(_);
Implementations§
source§impl Client
impl Client
sourcepub fn get_at_resource_group_level(
&self,
resource_group_name: impl Into<String>,
lock_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub 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
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.
sourcepub fn delete_at_resource_group_level(
&self,
resource_group_name: impl Into<String>,
lock_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn get_by_scope(
&self,
scope: impl Into<String>,
lock_name: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn create_or_update_by_scope(
&self,
scope: impl Into<String>,
lock_name: impl Into<String>,
parameters: impl Into<ManagementLockObject>
) -> RequestBuilder
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.
sourcepub fn delete_by_scope(
&self,
scope: impl Into<String>,
lock_name: impl Into<String>
) -> RequestBuilder
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.
sourcepub 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
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.
sourcepub 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
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.
sourcepub 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
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.
sourcepub fn get_at_subscription_level(
&self,
lock_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn create_or_update_at_subscription_level(
&self,
lock_name: impl Into<String>,
parameters: impl Into<ManagementLockObject>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn delete_at_subscription_level(
&self,
lock_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn list_at_resource_group_level(
&self,
resource_group_name: impl Into<String>,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub 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
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.
sourcepub fn list_at_subscription_level(
&self,
subscription_id: impl Into<String>
) -> RequestBuilder
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.
sourcepub fn list_by_scope(&self, scope: impl Into<String>) -> RequestBuilder
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.