Share via


SnapshotPolicyCollection Class

Definition

A class representing a collection of SnapshotPolicyResource and their operations. Each SnapshotPolicyResource in the collection will belong to the same instance of Azure.ResourceManager.NetApp.NetAppAccountResource. To get a SnapshotPolicyCollection instance call the GetSnapshotPolicies method from an instance of Azure.ResourceManager.NetApp.NetAppAccountResource.

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

Constructors

SnapshotPolicyCollection()

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

Create a snapshot policy

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Create
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
CreateOrUpdateAsync(WaitUntil, String, SnapshotPolicyData, CancellationToken)

Create a snapshot policy

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Create
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Get
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Get
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
Get(String, CancellationToken)

Get a snapshot Policy

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Get
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
GetAll(CancellationToken)

List snapshot policy

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies
  • Operation Id: SnapshotPolicies_List
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
GetAllAsync(CancellationToken)

List snapshot policy

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies
  • Operation Id: SnapshotPolicies_List
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
GetAsync(String, CancellationToken)

Get a snapshot Policy

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Get
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Get
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/snapshotPolicies/{snapshotPolicyName}
  • Operation Id: SnapshotPolicies_Get
  • Default Api Version: 2024-07-01
  • Resource: SnapshotPolicyResource
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<SnapshotPolicyResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SnapshotPolicyResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to