Share via


PostgreSqlDatabaseCollection Class

Definition

A class representing a collection of PostgreSqlDatabaseResource and their operations. Each PostgreSqlDatabaseResource in the collection will belong to the same instance of PostgreSqlServerResource. To get a PostgreSqlDatabaseCollection instance call the GetPostgreSqlDatabases method from an instance of PostgreSqlServerResource.

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

Constructors

PostgreSqlDatabaseCollection()

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

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_CreateOrUpdate
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
CreateOrUpdateAsync(WaitUntil, String, PostgreSqlDatabaseData, CancellationToken)

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_CreateOrUpdate
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
Get(String, CancellationToken)

Gets information about a database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
GetAll(CancellationToken)

List all the databases in a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases
  • Operation Id: Databases_ListByServer
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
GetAllAsync(CancellationToken)

List all the databases in a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases
  • Operation Id: Databases_ListByServer
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
GetAsync(String, CancellationToken)

Gets information about a database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2017-12-01
  • Resource: PostgreSqlDatabaseResource
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<PostgreSqlDatabaseResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<PostgreSqlDatabaseResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to