CosmosDBForPostgreSqlRoleCollection Class

Definition

A class representing a collection of CosmosDBForPostgreSqlRoleResource and their operations. Each CosmosDBForPostgreSqlRoleResource in the collection will belong to the same instance of CosmosDBForPostgreSqlClusterResource. To get a CosmosDBForPostgreSqlRoleCollection instance call the GetCosmosDBForPostgreSqlRoles method from an instance of CosmosDBForPostgreSqlClusterResource.

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

Constructors

CosmosDBForPostgreSqlRoleCollection()

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

Creates a new role or updates an existing role.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Create
CreateOrUpdateAsync(WaitUntil, String, CosmosDBForPostgreSqlRoleData, CancellationToken)

Creates a new role or updates an existing role.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Create
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Get
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Get
Get(String, CancellationToken)

Gets information about a cluster role.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Get
GetAll(CancellationToken)

List all the roles in a given cluster.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles
  • Operation Id: Roles_ListByCluster
GetAllAsync(CancellationToken)

List all the roles in a given cluster.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles
  • Operation Id: Roles_ListByCluster
GetAsync(String, CancellationToken)

Gets information about a cluster role.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Get
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Get
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/serverGroupsv2/{clusterName}/roles/{roleName}
  • Operation Id: Roles_Get
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<CosmosDBForPostgreSqlRoleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<CosmosDBForPostgreSqlRoleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to