共用方式為


HostPoolCollection Class

Definition

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

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

Constructors

HostPoolCollection()

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

Create or update a host pool.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_CreateOrUpdate
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
CreateOrUpdateAsync(WaitUntil, String, HostPoolData, CancellationToken)

Create or update a host pool.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_CreateOrUpdate
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_Get
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_Get
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
Get(String, CancellationToken)

Get a host pool.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_Get
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
GetAll(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List hostPools.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools
  • Operation Id: HostPools_ListByResourceGroup
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
GetAllAsync(Nullable<Int32>, Nullable<Boolean>, Nullable<Int32>, CancellationToken)

List hostPools.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools
  • Operation Id: HostPools_ListByResourceGroup
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
GetAsync(String, CancellationToken)

Get a host pool.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_Get
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_Get
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}
  • Operation Id: HostPools_Get
  • Default Api Version: 2024-04-03
  • Resource: HostPoolResource
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<HostPoolResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<HostPoolResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to