다음을 통해 공유


MySqlFlexibleServerCollection Class

Definition

A class representing a collection of MySqlFlexibleServerResource and their operations. Each MySqlFlexibleServerResource in the collection will belong to the same instance of ResourceGroupResource. To get a MySqlFlexibleServerCollection instance call the GetMySqlFlexibleServers method from an instance of ResourceGroupResource.

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

Constructors

MySqlFlexibleServerCollection()

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

Creates a new server or updates an existing server. The update action will overwrite the existing server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Create
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
CreateOrUpdateAsync(WaitUntil, String, MySqlFlexibleServerData, CancellationToken)

Creates a new server or updates an existing server. The update action will overwrite the existing server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Create
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
Get(String, CancellationToken)

Gets information about a server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
GetAll(CancellationToken)

List all the servers in a given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers
  • Operation Id: Servers_ListByResourceGroup
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
GetAllAsync(CancellationToken)

List all the servers in a given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers
  • Operation Id: Servers_ListByResourceGroup
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
GetAsync(String, CancellationToken)

Gets information about a server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource
GetReplicas(String, CancellationToken)

List all the replicas for a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/replicas
  • Operation Id: Replicas_ListByServer
  • Default Api Version: 2023-12-30
GetReplicasAsync(String, CancellationToken)

List all the replicas for a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/replicas
  • Operation Id: Replicas_ListByServer
  • Default Api Version: 2023-12-30
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<MySqlFlexibleServerResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MySqlFlexibleServerResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to