Share via


CloudServiceRoleInstanceCollection Klasse

Definition

Eine Klasse, die eine Auflistung von CloudServiceRoleInstanceResource und deren Vorgänge darstellt. Jedes CloudServiceRoleInstanceResource in der Auflistung gehört zum gleichen instance von CloudServiceResource. Um einen CloudServiceRoleInstanceCollection instance rufen Sie die GetCloudServiceRoleInstances-Methode aus einer instance von aufCloudServiceResource.

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

Konstruktoren

CloudServiceRoleInstanceCollection()

Initialisiert eine neue instance der CloudServiceRoleInstanceCollection -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

Exists(String, Nullable<InstanceViewType>, CancellationToken)

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

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}
  • Vorgang IdCloudServiceRoleInstances_Get
ExistsAsync(String, Nullable<InstanceViewType>, CancellationToken)

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

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}
  • Vorgang IdCloudServiceRoleInstances_Get
Get(String, Nullable<InstanceViewType>, CancellationToken)

Ruft eine Rolle instance aus einem Clouddienst ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}
  • Vorgang IdCloudServiceRoleInstances_Get
GetAll(Nullable<InstanceViewType>, CancellationToken)

Ruft die Liste aller Rolleninstanzen in einem Clouddienst ab. Verwenden Sie die nextLink-Eigenschaft in der Antwort, um die nächste Seite der Rolleninstanzen abzurufen. Führen Sie dies aus, bis nextLink null ist, um alle Rolleninstanzen abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances
  • Vorgang IdCloudServiceRoleInstances_List
GetAllAsync(Nullable<InstanceViewType>, CancellationToken)

Ruft die Liste aller Rolleninstanzen in einem Clouddienst ab. Verwenden Sie die nextLink-Eigenschaft in der Antwort, um die nächste Seite der Rolleninstanzen abzurufen. Führen Sie dies aus, bis nextLink null ist, um alle Rolleninstanzen abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances
  • Vorgang IdCloudServiceRoleInstances_List
GetAsync(String, Nullable<InstanceViewType>, CancellationToken)

Ruft eine Rolle instance aus einem Clouddienst ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}
  • Vorgang IdCloudServiceRoleInstances_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<CloudServiceRoleInstanceResource>.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<CloudServiceRoleInstanceResource>.GetEnumerator()

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

Gilt für: