Compartilhar via


PostgreSqlMigrationCollection Class

Definition

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

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

Constructors

PostgreSqlMigrationCollection()

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

Creates a new migration.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Create
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
CreateOrUpdateAsync(WaitUntil, String, PostgreSqlMigrationData, CancellationToken)

Creates a new migration.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Create
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Get
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Get
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
Get(String, CancellationToken)

Gets details of a migration.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Get
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
GetAll(Nullable<PostgreSqlMigrationListFilter>, CancellationToken)

List all the migrations on a given target server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations
  • Operation Id: Migrations_ListByTargetServer
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
GetAllAsync(Nullable<PostgreSqlMigrationListFilter>, CancellationToken)

List all the migrations on a given target server.

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

Gets details of a migration.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Get
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Get
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{targetDbServerName}/migrations/{migrationName}
  • Operation Id: Migrations_Get
  • Default Api Version: 2024-08-01
  • Resource: PostgreSqlMigrationResource
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<PostgreSqlMigrationResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<PostgreSqlMigrationResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to