Delen via


ResourceGroupCollection Class

Definition

A class representing collection of ResourceGroupResource and their operations over its parent.

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

Constructors

ResourceGroupCollection()

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

Creates or updates a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_CreateOrUpdate
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
CreateOrUpdateAsync(WaitUntil, String, ResourceGroupData, CancellationToken)

Creates or updates a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_CreateOrUpdate
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
Get(String, CancellationToken)

Gets a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
GetAll(String, Nullable<Int32>, CancellationToken)

Gets all the resource groups for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups
  • Operation Id: ResourceGroups_List
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
GetAllAsync(String, Nullable<Int32>, CancellationToken)

Gets all the resource groups for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups
  • Operation Id: ResourceGroups_List
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
GetAsync(String, CancellationToken)

Gets a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
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<ResourceGroupResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ResourceGroupResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to