MySqlDatabaseCollection Class

Definition

A class representing a collection of MySqlDatabaseResource and their operations. Each MySqlDatabaseResource in the collection will belong to the same instance of MySqlServerResource. To get a MySqlDatabaseCollection instance call the GetMySqlDatabases method from an instance of MySqlServerResource.

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

Constructors

MySqlDatabaseCollection()

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

Creates a new database or updates an existing database.

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

Creates a new database or updates an existing database.

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

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

Gets information about a database.

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

List all the databases in a given server.

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

List all the databases in a given server.

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

Gets information about a database.

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

Tries to get details for this resource from the service.

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

Tries to get details for this resource from the service.

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

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MySqlDatabaseResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to