共用方式為


ManagementLockCollection Class

Definition

A class representing a collection of ManagementLockResource and their operations. Each ManagementLockResource in the collection will belong to the same instance of ArmResource. To get a ManagementLockCollection instance call the GetManagementLocks method from an instance of ArmResource.

public class ManagementLockCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Resources.ManagementLockResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.ManagementLockResource>
type ManagementLockCollection = class
    inherit ArmCollection
    interface seq<ManagementLockResource>
    interface IEnumerable
    interface IAsyncEnumerable<ManagementLockResource>
Public Class ManagementLockCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of ManagementLockResource), IEnumerable(Of ManagementLockResource)
Inheritance
ManagementLockCollection
Implements

Constructors

ManagementLockCollection()

Initializes a new instance of the ManagementLockCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, ManagementLockData, CancellationToken)

Create or update a management lock by scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_CreateOrUpdateByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
CreateOrUpdateAsync(WaitUntil, String, ManagementLockData, CancellationToken)

Create or update a management lock by scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_CreateOrUpdateByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_GetByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_GetByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
Get(String, CancellationToken)

Get a management lock by scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_GetByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
GetAll(String, CancellationToken)

Gets all the management locks for a scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks
  • Operation Id: ManagementLocks_ListByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
GetAllAsync(String, CancellationToken)

Gets all the management locks for a scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks
  • Operation Id: ManagementLocks_ListByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
GetAsync(String, CancellationToken)

Get a management lock by scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_GetByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_GetByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.Authorization/locks/{lockName}
  • Operation Id: ManagementLocks_GetByScope
  • Default Api Version: 2020-05-01
  • Resource: ManagementLockResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<ManagementLockResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ManagementLockResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to