Partilhar via


DedicatedHostGroupCollection Class

Definition

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

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

Constructors

DedicatedHostGroupCollection()

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

Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
CreateOrUpdateAsync(WaitUntil, String, DedicatedHostGroupData, CancellationToken)

Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
Exists(String, Nullable<InstanceViewType>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
ExistsAsync(String, Nullable<InstanceViewType>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
Get(String, Nullable<InstanceViewType>, CancellationToken)

Retrieves information about a dedicated host group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
GetAll(CancellationToken)

Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups
  • Operation Id: DedicatedHostGroups_ListByResourceGroup
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
GetAllAsync(CancellationToken)

Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups
  • Operation Id: DedicatedHostGroups_ListByResourceGroup
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
GetAsync(String, Nullable<InstanceViewType>, CancellationToken)

Retrieves information about a dedicated host group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
GetIfExists(String, Nullable<InstanceViewType>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
GetIfExistsAsync(String, Nullable<InstanceViewType>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}
  • Operation Id: DedicatedHostGroups_Get
  • Default Api Version: 2024-07-01
  • Resource: DedicatedHostGroupResource
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<DedicatedHostGroupResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DedicatedHostGroupResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to