azure.mgmt.rdbms.mysql.operations module

class azure.mgmt.rdbms.mysql.operations.AdvisorsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s advisors attribute.

get(resource_group_name: str, server_name: str, advisor_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.Advisor[source]

Get a recommendation action advisor.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • advisor_name (str) – The advisor name for recommendation action. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Advisor or the result of cls(response)

Return type

Advisor

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.Advisor][source]

List recommendation action advisors.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Advisor or the result of cls(response)

Return type

ItemPaged[Advisor]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.CheckNameAvailabilityOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s check_name_availability attribute.

execute(name_availability_request: _models.NameAvailabilityRequest, *, content_type: str = "'application/json'", **kwargs: Any)_models.NameAvailability[source]
execute(name_availability_request: IO, *, content_type: str = "'application/json'", **kwargs: Any)_models.NameAvailability

Check the availability of name for resource.

Parameters

name_availability_request (NameAvailabilityRequest or IO) – The required parameters for checking if resource name is available. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

NameAvailability or the result of cls(response)

Return type

NameAvailability

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ConfigurationsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s configurations attribute.

begin_create_or_update(resource_group_name: str, server_name: str, configuration_name: str, parameters: _models.Configuration, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Configuration][source]
begin_create_or_update(resource_group_name: str, server_name: str, configuration_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Configuration]

Updates a configuration of a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • configuration_name (str) – The name of the server configuration. Required.

  • parameters (Configuration or IO) – The required parameters for updating a server configuration. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Configuration or the result of cls(response)

Return type

LROPoller[Configuration]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, configuration_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.Configuration[source]

Gets information about a configuration of server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • configuration_name (str) – The name of the server configuration. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Configuration or the result of cls(response)

Return type

Configuration

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.Configuration][source]

List all the configurations in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Configuration or the result of cls(response)

Return type

ItemPaged[Configuration]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.DatabasesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s databases attribute.

begin_create_or_update(resource_group_name: str, server_name: str, database_name: str, parameters: _models.Database, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Database][source]
begin_create_or_update(resource_group_name: str, server_name: str, database_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Database]

Creates a new database or updates an existing database.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • database_name (str) – The name of the database. Required.

  • parameters (Database or IO) – The required parameters for creating or updating a database. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Database or the result of cls(response)

Return type

LROPoller[Database]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, database_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Deletes a database.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • database_name (str) – The name of the database. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, database_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.Database[source]

Gets information about a database.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • database_name (str) – The name of the database. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Database or the result of cls(response)

Return type

Database

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.Database][source]

List all the databases in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Database or the result of cls(response)

Return type

ItemPaged[Database]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.FirewallRulesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s firewall_rules attribute.

begin_create_or_update(resource_group_name: str, server_name: str, firewall_rule_name: str, parameters: _models.FirewallRule, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.FirewallRule][source]
begin_create_or_update(resource_group_name: str, server_name: str, firewall_rule_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.FirewallRule]

Creates a new firewall rule or updates an existing firewall rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • firewall_rule_name (str) – The name of the server firewall rule. Required.

  • parameters (FirewallRule or IO) – The required parameters for creating or updating a firewall rule. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either FirewallRule or the result of cls(response)

Return type

LROPoller[FirewallRule]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, firewall_rule_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Deletes a server firewall rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • firewall_rule_name (str) – The name of the server firewall rule. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, firewall_rule_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.FirewallRule[source]

Gets information about a server firewall rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • firewall_rule_name (str) – The name of the server firewall rule. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

FirewallRule or the result of cls(response)

Return type

FirewallRule

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.FirewallRule][source]

List all the firewall rules in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either FirewallRule or the result of cls(response)

Return type

ItemPaged[FirewallRule]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.LocationBasedPerformanceTierOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s location_based_performance_tier attribute.

list(location_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.PerformanceTierProperties][source]

List all the performance tiers at specified location in a given subscription.

Parameters

location_name (str) – The name of the location. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PerformanceTierProperties or the result of cls(response)

Return type

ItemPaged[PerformanceTierProperties]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.LocationBasedRecommendedActionSessionsOperationStatusOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s location_based_recommended_action_sessions_operation_status attribute.

get(location_name: str, operation_id: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.RecommendedActionSessionsOperationStatus[source]

Recommendation action session operation status.

Parameters
  • location_name (str) – The name of the location. Required.

  • operation_id (str) – The operation identifier. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

RecommendedActionSessionsOperationStatus or the result of cls(response)

Return type

RecommendedActionSessionsOperationStatus

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.LocationBasedRecommendedActionSessionsResultOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s location_based_recommended_action_sessions_result attribute.

list(location_name: str, operation_id: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.RecommendationAction][source]

Recommendation action session operation result.

Parameters
  • location_name (str) – The name of the location. Required.

  • operation_id (str) – The operation identifier. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either RecommendationAction or the result of cls(response)

Return type

ItemPaged[RecommendationAction]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.LogFilesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s log_files attribute.

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.LogFile][source]

List all the log files in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either LogFile or the result of cls(response)

Return type

ItemPaged[LogFile]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.MySQLManagementClientOperationsMixin[source]

Bases: azure.mgmt.rdbms.mysql._vendor.MySQLManagementClientMixinABC

Create recommendation action session for the advisor.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • advisor_name (str) – The advisor name for recommendation action. Required.

  • database_name (str) – The name of the database. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

reset_query_performance_insight_data(resource_group_name: str, server_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.QueryPerformanceInsightResetDataResult[source]

Reset data for Query Performance Insight.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

QueryPerformanceInsightResetDataResult or the result of cls(response)

Return type

QueryPerformanceInsightResetDataResult

Raises

HttpResponseError

class azure.mgmt.rdbms.mysql.operations.Operations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s operations attribute.

list(**kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.OperationListResult[source]

Lists all of the available REST API operations.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

OperationListResult or the result of cls(response)

Return type

OperationListResult

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.PrivateEndpointConnectionsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s private_endpoint_connections attribute.

begin_create_or_update(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, parameters: _models.PrivateEndpointConnection, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.PrivateEndpointConnection][source]
begin_create_or_update(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.PrivateEndpointConnection]

Approve or reject a private endpoint connection with a given name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • private_endpoint_connection_name (str) – Required.

  • parameters (PrivateEndpointConnection or IO) – Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response)

Return type

LROPoller[PrivateEndpointConnection]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Deletes a private endpoint connection with a given name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • private_endpoint_connection_name (str) – Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_update_tags(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, parameters: _models.TagsObject, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.PrivateEndpointConnection][source]
begin_update_tags(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.PrivateEndpointConnection]

Updates tags on private endpoint connection.

Updates private endpoint connection with the specified tags.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • private_endpoint_connection_name (str) – Required.

  • parameters (TagsObject or IO) – Parameters supplied to the Update private endpoint connection Tags operation. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response)

Return type

LROPoller[PrivateEndpointConnection]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, private_endpoint_connection_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.PrivateEndpointConnection[source]

Gets a private endpoint connection.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • private_endpoint_connection_name (str) – The name of the private endpoint connection. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PrivateEndpointConnection or the result of cls(response)

Return type

PrivateEndpointConnection

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.PrivateEndpointConnection][source]

Gets all private endpoint connections on a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PrivateEndpointConnection or the result of cls(response)

Return type

ItemPaged[PrivateEndpointConnection]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.PrivateLinkResourcesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s private_link_resources attribute.

get(resource_group_name: str, server_name: str, group_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.PrivateLinkResource[source]

Gets a private link resource for MySQL server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • group_name (str) – The name of the private link resource. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

PrivateLinkResource or the result of cls(response)

Return type

PrivateLinkResource

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.PrivateLinkResource][source]

Gets the private link resources for MySQL server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PrivateLinkResource or the result of cls(response)

Return type

ItemPaged[PrivateLinkResource]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.QueryTextsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s query_texts attribute.

get(resource_group_name: str, server_name: str, query_id: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.QueryText[source]

Retrieve the Query-Store query texts for the queryId.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • query_id (str) – The Query-Store query identifier. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

QueryText or the result of cls(response)

Return type

QueryText

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, query_ids: List[str], **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.QueryText][source]

Retrieve the Query-Store query texts for specified queryIds.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • query_ids (list[str]) – The query identifiers. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either QueryText or the result of cls(response)

Return type

ItemPaged[QueryText]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.RecommendedActionsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s recommended_actions attribute.

get(resource_group_name: str, server_name: str, advisor_name: str, recommended_action_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.RecommendationAction[source]

Retrieve recommended actions from the advisor.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • advisor_name (str) – The advisor name for recommendation action. Required.

  • recommended_action_name (str) – The recommended action name. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

RecommendationAction or the result of cls(response)

Return type

RecommendationAction

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, advisor_name: str, session_id: Optional[str] = None, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.RecommendationAction][source]

Retrieve recommended actions from the advisor.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • advisor_name (str) – The advisor name for recommendation action. Required.

  • session_id (str) – The recommendation action session identifier. Default value is None.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either RecommendationAction or the result of cls(response)

Return type

ItemPaged[RecommendationAction]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.RecoverableServersOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s recoverable_servers attribute.

get(resource_group_name: str, server_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.RecoverableServerResource[source]

Gets a recoverable MySQL Server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

RecoverableServerResource or the result of cls(response)

Return type

RecoverableServerResource

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ReplicasOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s replicas attribute.

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.Server][source]

List all the replicas for a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Server or the result of cls(response)

Return type

ItemPaged[Server]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ServerAdministratorsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s server_administrators attribute.

begin_create_or_update(resource_group_name: str, server_name: str, properties: _models.ServerAdministratorResource, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ServerAdministratorResource][source]
begin_create_or_update(resource_group_name: str, server_name: str, properties: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ServerAdministratorResource]

Creates or update active directory administrator on an existing server. The update action will overwrite the existing administrator.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • properties (ServerAdministratorResource or IO) – The required parameters for creating or updating an AAD server administrator. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ServerAdministratorResource or the result of cls(response)

Return type

LROPoller[ServerAdministratorResource]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Deletes server active directory administrator.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.ServerAdministratorResource[source]

Gets information about a AAD server administrator.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ServerAdministratorResource or the result of cls(response)

Return type

ServerAdministratorResource

Raises

HttpResponseError

list(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.ServerAdministratorResource][source]

Returns a list of server Administrators.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerAdministratorResource or the result of cls(response)

Return type

ItemPaged[ServerAdministratorResource]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ServerBasedPerformanceTierOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s server_based_performance_tier attribute.

list(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.PerformanceTierProperties][source]

List all the performance tiers for a MySQL server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either PerformanceTierProperties or the result of cls(response)

Return type

ItemPaged[PerformanceTierProperties]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ServerKeysOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s server_keys attribute.

begin_create_or_update(server_name: str, key_name: str, resource_group_name: str, parameters: _models.ServerKey, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ServerKey][source]
begin_create_or_update(server_name: str, key_name: str, resource_group_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ServerKey]

Creates or updates a MySQL Server key.

Parameters
  • server_name (str) – The name of the server. Required.

  • key_name (str) – The name of the MySQL Server key to be operated on (updated or created). Required.

  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • parameters (ServerKey or IO) – The requested MySQL Server key resource state. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ServerKey or the result of cls(response)

Return type

LROPoller[ServerKey]

Raises

HttpResponseError

begin_delete(server_name: str, key_name: str, resource_group_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Deletes the MySQL Server key with the given name.

Parameters
  • server_name (str) – The name of the server. Required.

  • key_name (str) – The name of the MySQL Server key to be deleted. Required.

  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, key_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.ServerKey[source]

Gets a MySQL Server key.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • key_name (str) – The name of the MySQL Server key to be retrieved. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ServerKey or the result of cls(response)

Return type

ServerKey

Raises

HttpResponseError

list(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.ServerKey][source]

Gets a list of Server keys.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerKey or the result of cls(response)

Return type

ItemPaged[ServerKey]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ServerParametersOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s server_parameters attribute.

begin_list_update_configurations(resource_group_name: str, server_name: str, value: _models.ConfigurationListResult, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ConfigurationListResult][source]
begin_list_update_configurations(resource_group_name: str, server_name: str, value: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ConfigurationListResult]

Update a list of configurations in a given server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • value (ConfigurationListResult or IO) – The parameters for updating a list of server configuration. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ConfigurationListResult or the result of cls(response)

Return type

LROPoller[ConfigurationListResult]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ServerSecurityAlertPoliciesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s server_security_alert_policies attribute.

begin_create_or_update(resource_group_name: str, server_name: str, security_alert_policy_name: Union[str, _models.SecurityAlertPolicyName], parameters: _models.ServerSecurityAlertPolicy, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ServerSecurityAlertPolicy][source]
begin_create_or_update(resource_group_name: str, server_name: str, security_alert_policy_name: Union[str, _models.SecurityAlertPolicyName], parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.ServerSecurityAlertPolicy]

Creates or updates a threat detection policy.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • security_alert_policy_name (str or SecurityAlertPolicyName) – The name of the threat detection policy. “Default” Required.

  • parameters (ServerSecurityAlertPolicy or IO) – The server security alert policy. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ServerSecurityAlertPolicy or the result of cls(response)

Return type

LROPoller[ServerSecurityAlertPolicy]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, security_alert_policy_name: Union[str, azure.mgmt.rdbms.mysql.models._my_sql_management_client_enums.SecurityAlertPolicyName], **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.ServerSecurityAlertPolicy[source]

Get a server’s security alert policy.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • security_alert_policy_name (str or SecurityAlertPolicyName) – The name of the security alert policy. “Default” Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ServerSecurityAlertPolicy or the result of cls(response)

Return type

ServerSecurityAlertPolicy

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.ServerSecurityAlertPolicy][source]

Get the server’s threat detection policies.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ServerSecurityAlertPolicy or the result of cls(response)

Return type

ItemPaged[ServerSecurityAlertPolicy]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.ServersOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s servers attribute.

begin_create(resource_group_name: str, server_name: str, parameters: _models.ServerForCreate, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Server][source]
begin_create(resource_group_name: str, server_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Server]

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

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • parameters (ServerForCreate or IO) – The required parameters for creating or updating a server. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Server or the result of cls(response)

Return type

LROPoller[Server]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Deletes a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_restart(resource_group_name: str, server_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Restarts a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_start(resource_group_name: str, server_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Starts a stopped server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_stop(resource_group_name: str, server_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Stops a running server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

begin_update(resource_group_name: str, server_name: str, parameters: _models.ServerUpdateParameters, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Server][source]
begin_update(resource_group_name: str, server_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.Server]

Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • parameters (ServerUpdateParameters or IO) – The required parameters for updating a server. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either Server or the result of cls(response)

Return type

LROPoller[Server]

Raises

HttpResponseError

begin_upgrade(resource_group_name: str, server_name: str, parameters: _models.ServerUpgradeParameters, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[None][source]
begin_upgrade(resource_group_name: str, server_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[None]

Upgrade server version.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • parameters (ServerUpgradeParameters or IO) – The required parameters for updating a server. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.Server[source]

Gets information about a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

Server or the result of cls(response)

Return type

Server

Raises

HttpResponseError

list(**kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.Server][source]

List all the servers in a given subscription.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Server or the result of cls(response)

Return type

ItemPaged[Server]

Raises

HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.Server][source]

List all the servers in a given resource group.

Parameters

resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either Server or the result of cls(response)

Return type

ItemPaged[Server]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.TopQueryStatisticsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s top_query_statistics attribute.

get(resource_group_name: str, server_name: str, query_statistic_id: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.QueryStatistic[source]

Retrieve the query statistic for specified identifier.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • query_statistic_id (str) – The Query Statistic identifier. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

QueryStatistic or the result of cls(response)

Return type

QueryStatistic

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, parameters: _models.TopQueryStatisticsInput, *, content_type: str = "'application/json'", **kwargs: Any)Iterable[_models.QueryStatistic][source]
list_by_server(resource_group_name: str, server_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)Iterable[_models.QueryStatistic]

Retrieve the Query-Store top queries for specified metric and aggregation.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • parameters (TopQueryStatisticsInput or IO) – The required parameters for retrieving top query statistics. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either QueryStatistic or the result of cls(response)

Return type

ItemPaged[QueryStatistic]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.VirtualNetworkRulesOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s virtual_network_rules attribute.

begin_create_or_update(resource_group_name: str, server_name: str, virtual_network_rule_name: str, parameters: _models.VirtualNetworkRule, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.VirtualNetworkRule][source]
begin_create_or_update(resource_group_name: str, server_name: str, virtual_network_rule_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)LROPoller[_models.VirtualNetworkRule]

Creates or updates an existing virtual network rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • virtual_network_rule_name (str) – The name of the virtual network rule. Required.

  • parameters (VirtualNetworkRule or IO) – The requested virtual Network Rule Resource state. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either VirtualNetworkRule or the result of cls(response)

Return type

LROPoller[VirtualNetworkRule]

Raises

HttpResponseError

begin_delete(resource_group_name: str, server_name: str, virtual_network_rule_name: str, **kwargs: Any)azure.core.polling._poller.LROPoller[None][source]

Deletes the virtual network rule with the given name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • virtual_network_rule_name (str) – The name of the virtual network rule. Required.

Keyword Arguments
  • cls (callable) – A custom type or function that will be passed the direct response

  • continuation_token (str) – A continuation token to restart a poller from a saved state.

  • polling (bool or PollingMethod) – By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

  • polling_interval (int) – Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

LROPoller[None]

Raises

HttpResponseError

get(resource_group_name: str, server_name: str, virtual_network_rule_name: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.VirtualNetworkRule[source]

Gets a virtual network rule.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • virtual_network_rule_name (str) – The name of the virtual network rule. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

VirtualNetworkRule or the result of cls(response)

Return type

VirtualNetworkRule

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, **kwargs: Any)Iterable[azure.mgmt.rdbms.mysql.models._models_py3.VirtualNetworkRule][source]

Gets a list of virtual network rules in a server.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either VirtualNetworkRule or the result of cls(response)

Return type

ItemPaged[VirtualNetworkRule]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>
class azure.mgmt.rdbms.mysql.operations.WaitStatisticsOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through MySQLManagementClient’s wait_statistics attribute.

get(resource_group_name: str, server_name: str, wait_statistics_id: str, **kwargs: Any)azure.mgmt.rdbms.mysql.models._models_py3.WaitStatistic[source]

Retrieve wait statistics for specified identifier.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • wait_statistics_id (str) – The Wait Statistic identifier. Required.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

WaitStatistic or the result of cls(response)

Return type

WaitStatistic

Raises

HttpResponseError

list_by_server(resource_group_name: str, server_name: str, parameters: _models.WaitStatisticsInput, *, content_type: str = "'application/json'", **kwargs: Any)Iterable[_models.WaitStatistic][source]
list_by_server(resource_group_name: str, server_name: str, parameters: IO, *, content_type: str = "'application/json'", **kwargs: Any)Iterable[_models.WaitStatistic]

Retrieve wait statistics for specified aggregation window.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • server_name (str) – The name of the server. Required.

  • parameters (WaitStatisticsInput or IO) – The required parameters for retrieving wait statistics. Is either a model type or a IO type. Required.

Keyword Arguments
  • content_type (str) – Body Parameter content-type. Known values are: ‘application/json’. Default value is None.

  • cls (callable) – A custom type or function that will be passed the direct response

Returns

An iterator like instance of either WaitStatistic or the result of cls(response)

Return type

ItemPaged[WaitStatistic]

Raises

HttpResponseError

models = <module 'azure.mgmt.rdbms.mysql.models' from '/mnt/vss/_work/1/s/sdk/rdbms/azure-mgmt-rdbms/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/rdbms/mysql/models/__init__.py'>