Share via


SnapshotCollection Klasse

Definition

Eine Klasse, die eine Auflistung von SnapshotResource und deren Vorgänge darstellt. Jedes SnapshotResource in der Auflistung gehört zum gleichen instance von ResourceGroupResource. Um einen SnapshotCollection instance rufen Sie die GetSnapshots-Methode aus einer instance von aufResourceGroupResource.

public class SnapshotCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Compute.SnapshotResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.SnapshotResource>
type SnapshotCollection = class
    inherit ArmCollection
    interface seq<SnapshotResource>
    interface IEnumerable
    interface IAsyncEnumerable<SnapshotResource>
Public Class SnapshotCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of SnapshotResource), IEnumerable(Of SnapshotResource)
Vererbung
SnapshotCollection
Implementiert

Konstruktoren

SnapshotCollection()

Initialisiert eine neue instance der SnapshotCollection -Klasse zum Mocking.

Eigenschaften

Client

Ruft die Ressource ab, aus ArmClient der dieser Ressourcenclient erstellt wurde.

(Geerbt von ArmCollection)
Diagnostics

Ruft die Diagnoseoptionen für diesen Ressourcenclient ab.

(Geerbt von ArmCollection)
Endpoint

Ruft den Basis-URI für diesen Ressourcenclient ab.

(Geerbt von ArmCollection)
Id

Ruft den Ressourcenbezeichner ab.

(Geerbt von ArmCollection)
Pipeline

Ruft die Pipeline für diesen Ressourcenclient ab.

(Geerbt von ArmCollection)

Methoden

CreateOrUpdate(WaitUntil, String, SnapshotData, CancellationToken)

Erstellt oder aktualisiert einen Momentaufnahme.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}
  • Vorgang IdSnapshots_CreateOrUpdate
CreateOrUpdateAsync(WaitUntil, String, SnapshotData, CancellationToken)

Erstellt oder aktualisiert einen Momentaufnahme.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}
  • Vorgang IdSnapshots_CreateOrUpdate
Exists(String, CancellationToken)

Überprüft, ob die Ressource in Azure vorhanden ist.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}
  • Vorgang IdSnapshots_Get
ExistsAsync(String, CancellationToken)

Überprüft, ob die Ressource in Azure vorhanden ist.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}
  • Vorgang IdSnapshots_Get
Get(String, CancellationToken)

Ruft Informationen zu einem Momentaufnahme ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}
  • Vorgang IdSnapshots_Get
GetAll(CancellationToken)

Listet Momentaufnahmen unter einer Ressourcengruppe auf.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots
  • Vorgang IdSnapshots_ListByResourceGroup
GetAllAsync(CancellationToken)

Listet Momentaufnahmen unter einer Ressourcengruppe auf.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots
  • Vorgang IdSnapshots_ListByResourceGroup
GetAsync(String, CancellationToken)

Ruft Informationen zu einem Momentaufnahme ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}
  • Vorgang IdSnapshots_Get
TryGetApiVersion(ResourceType, String)

Ruft die API-Version außer Kraft, wenn sie für die aktuellen Clientoptionen festgelegt wurde.

(Geerbt von ArmCollection)

Explizite Schnittstellenimplementierungen

IAsyncEnumerable<SnapshotResource>.GetAsyncEnumerator(CancellationToken)

Gibt einen Enumerator zurück, der die Sammlung asynchron durchläuft.

IEnumerable.GetEnumerator()

Gibt einen Enumerator zurück, der eine Auflistung durchläuft.

IEnumerable<SnapshotResource>.GetEnumerator()

Gibt einen Enumerator zurück, der die Auflistung durchläuft.

Gilt für: