Delen via


DenyAssignmentCollection Class

Definition

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

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

Constructors

DenyAssignmentCollection()

Initializes a new instance of the DenyAssignmentCollection 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

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • Operation Id: DenyAssignments_Get
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • Operation Id: DenyAssignments_Get
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
Get(String, CancellationToken)

Get the specified deny assignment.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • Operation Id: DenyAssignments_Get
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
GetAll(String, CancellationToken)

Gets deny assignments for a scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments
  • Operation Id: DenyAssignments_ListForScope
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
GetAllAsync(String, CancellationToken)

Gets deny assignments for a scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments
  • Operation Id: DenyAssignments_ListForScope
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
GetAsync(String, CancellationToken)

Get the specified deny assignment.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • Operation Id: DenyAssignments_Get
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • Operation Id: DenyAssignments_Get
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
  • Operation Id: DenyAssignments_Get
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
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<DenyAssignmentResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DenyAssignmentResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to