PostgreSqlFlexibleServerDatabaseCollection Class

Definition

A class representing a collection of PostgreSqlFlexibleServerDatabaseResource and their operations. Each PostgreSqlFlexibleServerDatabaseResource in the collection will belong to the same instance of PostgreSqlFlexibleServerResource. To get a PostgreSqlFlexibleServerDatabaseCollection instance call the GetPostgreSqlFlexibleServerDatabases method from an instance of PostgreSqlFlexibleServerResource.

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

Constructors

PostgreSqlFlexibleServerDatabaseCollection()

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

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Create
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlFlexibleServerDatabaseResource
CreateOrUpdateAsync(WaitUntil, String, PostgreSqlFlexibleServerDatabaseData, CancellationToken)

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Create
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlFlexibleServerDatabaseResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

Gets information about a database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlFlexibleServerDatabaseResource
GetAll(CancellationToken)

List all the databases in a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/databases
  • Operation Id: Databases_ListByServer
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlFlexibleServerDatabaseResource
GetAllAsync(CancellationToken)

List all the databases in a given server.

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

Gets information about a database.

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

Tries to get details for this resource from the service.

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

Tries to get details for this resource from the service.

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

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<PostgreSqlFlexibleServerDatabaseResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to