Dela via


AgentPoolSnapshotCollection Class

Definition

A class representing a collection of AgentPoolSnapshotResource and their operations. Each AgentPoolSnapshotResource in the collection will belong to the same instance of ResourceGroupResource. To get an AgentPoolSnapshotCollection instance call the GetAgentPoolSnapshots method from an instance of ResourceGroupResource.

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

Constructors

AgentPoolSnapshotCollection()

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

Creates or updates a snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_CreateOrUpdate
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
CreateOrUpdateAsync(WaitUntil, String, AgentPoolSnapshotData, CancellationToken)

Creates or updates a snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_CreateOrUpdate
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
Get(String, CancellationToken)

Gets a snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
GetAll(CancellationToken)

Lists snapshots in the specified subscription and resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots
  • Operation Id: Snapshots_ListByResourceGroup
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
GetAllAsync(CancellationToken)

Lists snapshots in the specified subscription and resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots
  • Operation Id: Snapshots_ListByResourceGroup
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
GetAsync(String, CancellationToken)

Gets a snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots/{resourceName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
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<AgentPoolSnapshotResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<AgentPoolSnapshotResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to