Udostępnij za pośrednictwem


DatabaseCollection Class

Definition

A class representing a collection of DatabaseResource and their operations. Each DatabaseResource in the collection will belong to the same instance of ClusterResource. To get a DatabaseCollection instance call the GetDatabases method from an instance of ClusterResource.

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

Constructors

DatabaseCollection()

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

Creates a database Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Operation Id: Databases_Create

CreateOrUpdateAsync(WaitUntil, String, DatabaseData, CancellationToken)

Creates a database Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Operation Id: Databases_Create

Exists(String, CancellationToken)

Checks to see if the resource exists in azure. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Operation Id: Databases_Get

ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Operation Id: Databases_Get

Get(String, CancellationToken)

Gets information about a database in a RedisEnterprise cluster. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Operation Id: Databases_Get

GetAll(CancellationToken)

Gets all databases in the specified RedisEnterprise cluster. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases Operation Id: Databases_ListByCluster

GetAllAsync(CancellationToken)

Gets all databases in the specified RedisEnterprise cluster. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases Operation Id: Databases_ListByCluster

GetAsync(String, CancellationToken)

Gets information about a database in a RedisEnterprise cluster. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName} Operation Id: Databases_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<DatabaseResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<DatabaseResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to