다음을 통해 공유


PolicyAttestationCollection Class

Definition

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

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

Constructors

PolicyAttestationCollection()

Initializes a new instance of the PolicyAttestationCollection 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, PolicyAttestationData, CancellationToken)

Creates or updates an attestation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_CreateOrUpdateAtResource
CreateOrUpdateAsync(WaitUntil, String, PolicyAttestationData, CancellationToken)

Creates or updates an attestation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_CreateOrUpdateAtResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
Get(String, CancellationToken)

Gets an existing attestation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
GetAll(PolicyQuerySettings, CancellationToken)

Gets all attestations for a resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations
  • Operation Id: Attestations_ListForResource
GetAllAsync(PolicyQuerySettings, CancellationToken)

Gets all attestations for a resource.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations
  • Operation Id: Attestations_ListForResource
GetAsync(String, CancellationToken)

Gets an existing attestation at resource scope.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
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<PolicyAttestationResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<PolicyAttestationResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to