diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/CHANGELOG.md b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/CHANGELOG.md index 0330f4d179ed..6306d7f576d4 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/CHANGELOG.md +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/CHANGELOG.md @@ -1,5 +1,13 @@ # Release History +## 1.0.0b3 (2024-11-18) + +### Features Added + + - Model `Capability` added property `supported_features` + - Model `Server` added property `full_version` + - Added model `FeatureProperty` + ## 1.0.0b2 (2024-09-26) ### Features Added diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/_meta.json b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/_meta.json index 0719181a25cf..87874959fa66 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/_meta.json +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/_meta.json @@ -1,11 +1,11 @@ { - "commit": "2cec543b4bf04ccd1971ae69a136cf06878439b2", + "commit": "a0b2a34b9ff6d324c31e031d6e373fc3ceb38c81", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ "@autorest/python@6.19.0", "@autorest/modelerfour@4.27.0" ], - "autorest_command": "autorest specification/mysql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --tag=package-flexibleserver-2024-06-01-preview --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", + "autorest_command": "autorest specification/mysql/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-flexibleserver-2024-10-01-preview --use=@autorest/python@6.19.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/mysql/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_my_sql_management_client.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_my_sql_management_client.py index 7f27cafb8a61..0c897f0b0f97 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_my_sql_management_client.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_my_sql_management_client.py @@ -74,6 +74,17 @@ class MySQLManagementClient: # pylint: disable=client-accepts-api-version-keywo :vartype databases: azure.mgmt.mysqlflexibleservers.operations.DatabasesOperations :ivar firewall_rules: FirewallRulesOperations operations :vartype firewall_rules: azure.mgmt.mysqlflexibleservers.operations.FirewallRulesOperations + :ivar servers: ServersOperations operations + :vartype servers: azure.mgmt.mysqlflexibleservers.operations.ServersOperations + :ivar replicas: ReplicasOperations operations + :vartype replicas: azure.mgmt.mysqlflexibleservers.operations.ReplicasOperations + :ivar servers_migration: ServersMigrationOperations operations + :vartype servers_migration: + azure.mgmt.mysqlflexibleservers.operations.ServersMigrationOperations + :ivar advanced_threat_protection_settings: AdvancedThreatProtectionSettingsOperations + operations + :vartype advanced_threat_protection_settings: + azure.mgmt.mysqlflexibleservers.operations.AdvancedThreatProtectionSettingsOperations :ivar log_files: LogFilesOperations operations :vartype log_files: azure.mgmt.mysqlflexibleservers.operations.LogFilesOperations :ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations @@ -105,17 +116,6 @@ class MySQLManagementClient: # pylint: disable=client-accepts-api-version-keywo :vartype operations: azure.mgmt.mysqlflexibleservers.operations.Operations :ivar maintenances: MaintenancesOperations operations :vartype maintenances: azure.mgmt.mysqlflexibleservers.operations.MaintenancesOperations - :ivar servers: ServersOperations operations - :vartype servers: azure.mgmt.mysqlflexibleservers.operations.ServersOperations - :ivar replicas: ReplicasOperations operations - :vartype replicas: azure.mgmt.mysqlflexibleservers.operations.ReplicasOperations - :ivar servers_migration: ServersMigrationOperations operations - :vartype servers_migration: - azure.mgmt.mysqlflexibleservers.operations.ServersMigrationOperations - :ivar advanced_threat_protection_settings: AdvancedThreatProtectionSettingsOperations - operations - :vartype advanced_threat_protection_settings: - azure.mgmt.mysqlflexibleservers.operations.AdvancedThreatProtectionSettingsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -176,6 +176,14 @@ def __init__( self.configurations = ConfigurationsOperations(self._client, self._config, self._serialize, self._deserialize) self.databases = DatabasesOperations(self._client, self._config, self._serialize, self._deserialize) self.firewall_rules = FirewallRulesOperations(self._client, self._config, self._serialize, self._deserialize) + self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize) + self.replicas = ReplicasOperations(self._client, self._config, self._serialize, self._deserialize) + self.servers_migration = ServersMigrationOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.advanced_threat_protection_settings = AdvancedThreatProtectionSettingsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.log_files = LogFilesOperations(self._client, self._config, self._serialize, self._deserialize) self.location_based_capabilities = LocationBasedCapabilitiesOperations( self._client, self._config, self._serialize, self._deserialize @@ -203,14 +211,6 @@ def __init__( ) self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.maintenances = MaintenancesOperations(self._client, self._config, self._serialize, self._deserialize) - self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize) - self.replicas = ReplicasOperations(self._client, self._config, self._serialize, self._deserialize) - self.servers_migration = ServersMigrationOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.advanced_threat_protection_settings = AdvancedThreatProtectionSettingsOperations( - self._client, self._config, self._serialize, self._deserialize - ) def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_version.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_version.py index dfa6ee022f15..20971492f129 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_version.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b2" +VERSION = "1.0.0b3" diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/_my_sql_management_client.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/_my_sql_management_client.py index 49e04eeeb383..84757315061d 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/_my_sql_management_client.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/_my_sql_management_client.py @@ -75,6 +75,17 @@ class MySQLManagementClient: # pylint: disable=client-accepts-api-version-keywo :vartype databases: azure.mgmt.mysqlflexibleservers.aio.operations.DatabasesOperations :ivar firewall_rules: FirewallRulesOperations operations :vartype firewall_rules: azure.mgmt.mysqlflexibleservers.aio.operations.FirewallRulesOperations + :ivar servers: ServersOperations operations + :vartype servers: azure.mgmt.mysqlflexibleservers.aio.operations.ServersOperations + :ivar replicas: ReplicasOperations operations + :vartype replicas: azure.mgmt.mysqlflexibleservers.aio.operations.ReplicasOperations + :ivar servers_migration: ServersMigrationOperations operations + :vartype servers_migration: + azure.mgmt.mysqlflexibleservers.aio.operations.ServersMigrationOperations + :ivar advanced_threat_protection_settings: AdvancedThreatProtectionSettingsOperations + operations + :vartype advanced_threat_protection_settings: + azure.mgmt.mysqlflexibleservers.aio.operations.AdvancedThreatProtectionSettingsOperations :ivar log_files: LogFilesOperations operations :vartype log_files: azure.mgmt.mysqlflexibleservers.aio.operations.LogFilesOperations :ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations @@ -106,17 +117,6 @@ class MySQLManagementClient: # pylint: disable=client-accepts-api-version-keywo :vartype operations: azure.mgmt.mysqlflexibleservers.aio.operations.Operations :ivar maintenances: MaintenancesOperations operations :vartype maintenances: azure.mgmt.mysqlflexibleservers.aio.operations.MaintenancesOperations - :ivar servers: ServersOperations operations - :vartype servers: azure.mgmt.mysqlflexibleservers.aio.operations.ServersOperations - :ivar replicas: ReplicasOperations operations - :vartype replicas: azure.mgmt.mysqlflexibleservers.aio.operations.ReplicasOperations - :ivar servers_migration: ServersMigrationOperations operations - :vartype servers_migration: - azure.mgmt.mysqlflexibleservers.aio.operations.ServersMigrationOperations - :ivar advanced_threat_protection_settings: AdvancedThreatProtectionSettingsOperations - operations - :vartype advanced_threat_protection_settings: - azure.mgmt.mysqlflexibleservers.aio.operations.AdvancedThreatProtectionSettingsOperations :param credential: Credential needed for the client to connect to Azure. Required. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. The value must be an UUID. Required. @@ -177,6 +177,14 @@ def __init__( self.configurations = ConfigurationsOperations(self._client, self._config, self._serialize, self._deserialize) self.databases = DatabasesOperations(self._client, self._config, self._serialize, self._deserialize) self.firewall_rules = FirewallRulesOperations(self._client, self._config, self._serialize, self._deserialize) + self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize) + self.replicas = ReplicasOperations(self._client, self._config, self._serialize, self._deserialize) + self.servers_migration = ServersMigrationOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.advanced_threat_protection_settings = AdvancedThreatProtectionSettingsOperations( + self._client, self._config, self._serialize, self._deserialize + ) self.log_files = LogFilesOperations(self._client, self._config, self._serialize, self._deserialize) self.location_based_capabilities = LocationBasedCapabilitiesOperations( self._client, self._config, self._serialize, self._deserialize @@ -204,14 +212,6 @@ def __init__( ) self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) self.maintenances = MaintenancesOperations(self._client, self._config, self._serialize, self._deserialize) - self.servers = ServersOperations(self._client, self._config, self._serialize, self._deserialize) - self.replicas = ReplicasOperations(self._client, self._config, self._serialize, self._deserialize) - self.servers_migration = ServersMigrationOperations( - self._client, self._config, self._serialize, self._deserialize - ) - self.advanced_threat_protection_settings = AdvancedThreatProtectionSettingsOperations( - self._client, self._config, self._serialize, self._deserialize - ) def _send_request( self, request: HttpRequest, *, stream: bool = False, **kwargs: Any diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/__init__.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/__init__.py index 390e4a121d95..6c36a88d4b01 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/__init__.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/__init__.py @@ -14,6 +14,10 @@ from ._configurations_operations import ConfigurationsOperations from ._databases_operations import DatabasesOperations from ._firewall_rules_operations import FirewallRulesOperations +from ._servers_operations import ServersOperations +from ._replicas_operations import ReplicasOperations +from ._servers_migration_operations import ServersMigrationOperations +from ._advanced_threat_protection_settings_operations import AdvancedThreatProtectionSettingsOperations from ._log_files_operations import LogFilesOperations from ._location_based_capabilities_operations import LocationBasedCapabilitiesOperations from ._location_based_capability_set_operations import LocationBasedCapabilitySetOperations @@ -25,10 +29,6 @@ from ._get_private_dns_zone_suffix_operations import GetPrivateDnsZoneSuffixOperations from ._operations import Operations from ._maintenances_operations import MaintenancesOperations -from ._servers_operations import ServersOperations -from ._replicas_operations import ReplicasOperations -from ._servers_migration_operations import ServersMigrationOperations -from ._advanced_threat_protection_settings_operations import AdvancedThreatProtectionSettingsOperations from ._patch import __all__ as _patch_all from ._patch import * # pylint: disable=unused-wildcard-import @@ -43,6 +43,10 @@ "ConfigurationsOperations", "DatabasesOperations", "FirewallRulesOperations", + "ServersOperations", + "ReplicasOperations", + "ServersMigrationOperations", + "AdvancedThreatProtectionSettingsOperations", "LogFilesOperations", "LocationBasedCapabilitiesOperations", "LocationBasedCapabilitySetOperations", @@ -54,10 +58,6 @@ "GetPrivateDnsZoneSuffixOperations", "Operations", "MaintenancesOperations", - "ServersOperations", - "ReplicasOperations", - "ServersMigrationOperations", - "AdvancedThreatProtectionSettingsOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) _patch_sdk() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_advanced_threat_protection_settings_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_advanced_threat_protection_settings_operations.py index 3f61c6119be2..a7f7d85af8b6 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_advanced_threat_protection_settings_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_advanced_threat_protection_settings_operations.py @@ -99,7 +99,7 @@ async def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.AdvancedThreatProtection] = kwargs.pop("cls", None) _request = build_get_request( @@ -151,7 +151,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -309,7 +309,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AdvancedThreatProtection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -375,7 +375,7 @@ async def _update_put_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -532,7 +532,7 @@ async def begin_update_put( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AdvancedThreatProtection] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -599,7 +599,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.AdvancedThreatProtectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_operations.py index 374a2e8080be..de899fa39083 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_operations.py @@ -133,7 +133,7 @@ async def execute( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_without_location_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_without_location_operations.py index 01ae5e6eae1c..196c656371f3 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_without_location_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_name_availability_without_location_operations.py @@ -118,7 +118,7 @@ async def execute( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_virtual_network_subnet_usage_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_virtual_network_subnet_usage_operations.py index b66e11e57b37..af21ec265160 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_virtual_network_subnet_usage_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_check_virtual_network_subnet_usage_operations.py @@ -125,7 +125,7 @@ async def execute( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkSubnetUsageResult] = kwargs.pop("cls", None) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_get_private_dns_zone_suffix_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_get_private_dns_zone_suffix_operations.py index 1958908a51b6..238dd1f62b7d 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_get_private_dns_zone_suffix_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_get_private_dns_zone_suffix_operations.py @@ -72,7 +72,7 @@ async def execute(self, **kwargs: Any) -> _models.GetPrivateDnsZoneSuffixRespons _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.GetPrivateDnsZoneSuffixResponse] = kwargs.pop("cls", None) _request = build_execute_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capabilities_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capabilities_operations.py index 0d8248322974..0639ea430b2f 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capabilities_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capabilities_operations.py @@ -69,7 +69,7 @@ def list(self, location_name: str, **kwargs: Any) -> AsyncIterable["_models.Capa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.CapabilitiesListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capability_set_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capability_set_operations.py index b7286ed7265a..31e10c71db97 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capability_set_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_location_based_capability_set_operations.py @@ -69,7 +69,7 @@ def list(self, location_name: str, **kwargs: Any) -> AsyncIterable["_models.Capa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.CapabilitySetsList] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { @@ -146,7 +146,7 @@ async def get(self, location_name: str, capability_set_name: str = "default", ** _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.Capability] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_progress_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_progress_operations.py index 6d0d8aa5dbc4..29b436e6244c 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_progress_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_progress_operations.py @@ -78,7 +78,7 @@ async def get(self, location_name: str, operation_id: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.OperationProgressResult] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_results_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_results_operations.py index 595b80170bf4..b6a80a2175ce 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_results_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operation_results_operations.py @@ -78,7 +78,7 @@ async def get(self, location_name: str, operation_id: str, **kwargs: Any) -> _mo _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.OperationStatusExtendedResult] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operations.py index e30b1110f017..54a849721309 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_operations.py @@ -66,7 +66,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_replicas_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_replicas_operations.py index 9929d777061a..cf5e023c76de 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_replicas_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_replicas_operations.py @@ -72,7 +72,7 @@ def list_by_server( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.ServerListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_migration_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_migration_operations.py index e897b0ef3cc9..14aadb838433 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_migration_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_migration_operations.py @@ -71,7 +71,7 @@ async def _cutover_migration_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_cutover_migration_request( @@ -135,7 +135,7 @@ async def begin_cutover_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_operations.py index 231815c13a17..c0fd9603cb20 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_operations.py @@ -88,7 +88,7 @@ async def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -222,7 +222,7 @@ async def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -284,7 +284,7 @@ async def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -422,7 +422,7 @@ async def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -478,7 +478,7 @@ async def _delete_initial(self, resource_group_name: str, server_name: str, **kw _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_delete_request( @@ -535,7 +535,7 @@ async def begin_delete(self, resource_group_name: str, server_name: str, **kwarg _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -599,7 +599,7 @@ async def get(self, resource_group_name: str, server_name: str, **kwargs: Any) - _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.Server] = kwargs.pop("cls", None) _request = build_get_request( @@ -645,7 +645,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.ServerListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { @@ -710,7 +710,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.Server"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.ServerListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { @@ -777,7 +777,7 @@ async def _failover_initial( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_failover_request( @@ -834,7 +834,7 @@ async def begin_failover(self, resource_group_name: str, server_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -961,7 +961,7 @@ async def validate_estimate_high_availability( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.HighAvailabilityValidationEstimation] = kwargs.pop("cls", None) @@ -1023,7 +1023,7 @@ async def _restart_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1155,7 +1155,7 @@ async def begin_restart( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1207,7 +1207,7 @@ async def _start_initial(self, resource_group_name: str, server_name: str, **kwa _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_start_request( @@ -1264,7 +1264,7 @@ async def begin_start(self, resource_group_name: str, server_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1313,7 +1313,7 @@ async def _stop_initial(self, resource_group_name: str, server_name: str, **kwar _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) _request = build_stop_request( @@ -1370,7 +1370,7 @@ async def begin_stop(self, resource_group_name: str, server_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1425,7 +1425,7 @@ async def _reset_gtid_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1557,7 +1557,7 @@ async def begin_reset_gtid( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) @@ -1618,7 +1618,7 @@ async def _detach_v_net_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None) @@ -1754,7 +1754,7 @@ async def begin_detach_v_net( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/__init__.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/__init__.py index 4fed829d95bb..2d9fffb6402b 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/__init__.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/__init__.py @@ -33,6 +33,7 @@ from ._models_py3 import ErrorAdditionalInfo from ._models_py3 import ErrorDetail from ._models_py3 import ErrorResponse +from ._models_py3 import FeatureProperty from ._models_py3 import FirewallRule from ._models_py3 import FirewallRuleListResult from ._models_py3 import FullBackupStoreDetails @@ -157,6 +158,7 @@ "ErrorAdditionalInfo", "ErrorDetail", "ErrorResponse", + "FeatureProperty", "FirewallRule", "FirewallRuleListResult", "FullBackupStoreDetails", diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_models_py3.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_models_py3.py index 29ed5950aa0d..eb039805c1c9 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_models_py3.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_models_py3.py @@ -752,6 +752,8 @@ class Capability(ProxyResource): :ivar supported_server_versions: A list of supported server versions. :vartype supported_server_versions: list[~azure.mgmt.mysqlflexibleservers.models.ServerVersionCapabilityV2] + :ivar supported_features: A list of supported features. + :vartype supported_features: list[~azure.mgmt.mysqlflexibleservers.models.FeatureProperty] """ _validation = { @@ -762,6 +764,7 @@ class Capability(ProxyResource): "supported_geo_backup_regions": {"readonly": True}, "supported_flexible_server_editions": {"readonly": True}, "supported_server_versions": {"readonly": True}, + "supported_features": {"readonly": True}, } _attribute_map = { @@ -778,6 +781,7 @@ class Capability(ProxyResource): "key": "properties.supportedServerVersions", "type": "[ServerVersionCapabilityV2]", }, + "supported_features": {"key": "properties.supportedFeatures", "type": "[FeatureProperty]"}, } def __init__(self, **kwargs: Any) -> None: @@ -786,6 +790,7 @@ def __init__(self, **kwargs: Any) -> None: self.supported_geo_backup_regions = None self.supported_flexible_server_editions = None self.supported_server_versions = None + self.supported_features = None class CapabilityProperties(_serialization.Model): @@ -1298,6 +1303,34 @@ def __init__(self, **kwargs: Any) -> None: self.additional_info = None +class FeatureProperty(_serialization.Model): + """Server version capabilities. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar feature_name: feature name. + :vartype feature_name: str + :ivar feature_value: feature value. + :vartype feature_value: str + """ + + _validation = { + "feature_name": {"readonly": True}, + "feature_value": {"readonly": True}, + } + + _attribute_map = { + "feature_name": {"key": "featureName", "type": "str"}, + "feature_value": {"key": "featureValue", "type": "str"}, + } + + def __init__(self, **kwargs: Any) -> None: + """ """ + super().__init__(**kwargs) + self.feature_name = None + self.feature_value = None + + class FirewallRule(ProxyResource): """Represents a server firewall rule. @@ -2801,8 +2834,11 @@ class Server(TrackedResource): # pylint: disable=too-many-instance-attributes :ivar administrator_login_password: The password of the administrator login (required for server creation). :vartype administrator_login_password: str - :ivar version: Server version. Known values are: "5.7" and "8.0.21". + :ivar version: Major version of MySQL. 8.0.21 stands for MySQL 8.0, 5.7.44 stands for MySQL + 5.7. Known values are: "5.7" and "8.0.21". :vartype version: str or ~azure.mgmt.mysqlflexibleservers.models.ServerVersion + :ivar full_version: Major version and actual engine version. + :vartype full_version: str :ivar availability_zone: availability Zone information of the server. :vartype availability_zone: str :ivar create_mode: The mode to create a new MySQL server. Known values are: "Default", @@ -2874,6 +2910,7 @@ class Server(TrackedResource): # pylint: disable=too-many-instance-attributes "administrator_login": {"key": "properties.administratorLogin", "type": "str"}, "administrator_login_password": {"key": "properties.administratorLoginPassword", "type": "str"}, "version": {"key": "properties.version", "type": "str"}, + "full_version": {"key": "properties.fullVersion", "type": "str"}, "availability_zone": {"key": "properties.availabilityZone", "type": "str"}, "create_mode": {"key": "properties.createMode", "type": "str"}, "source_server_resource_id": {"key": "properties.sourceServerResourceId", "type": "str"}, @@ -2907,6 +2944,7 @@ def __init__( # pylint: disable=too-many-locals administrator_login: Optional[str] = None, administrator_login_password: Optional[str] = None, version: Optional[Union[str, "_models.ServerVersion"]] = None, + full_version: Optional[str] = None, availability_zone: Optional[str] = None, create_mode: Optional[Union[str, "_models.CreateMode"]] = None, source_server_resource_id: Optional[str] = None, @@ -2938,8 +2976,11 @@ def __init__( # pylint: disable=too-many-locals :keyword administrator_login_password: The password of the administrator login (required for server creation). :paramtype administrator_login_password: str - :keyword version: Server version. Known values are: "5.7" and "8.0.21". + :keyword version: Major version of MySQL. 8.0.21 stands for MySQL 8.0, 5.7.44 stands for MySQL + 5.7. Known values are: "5.7" and "8.0.21". :paramtype version: str or ~azure.mgmt.mysqlflexibleservers.models.ServerVersion + :keyword full_version: Major version and actual engine version. + :paramtype full_version: str :keyword availability_zone: availability Zone information of the server. :paramtype availability_zone: str :keyword create_mode: The mode to create a new MySQL server. Known values are: "Default", @@ -2982,6 +3023,7 @@ def __init__( # pylint: disable=too-many-locals self.administrator_login = administrator_login self.administrator_login_password = administrator_login_password self.version = version + self.full_version = full_version self.availability_zone = availability_zone self.create_mode = create_mode self.source_server_resource_id = source_server_resource_id diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_my_sql_management_client_enums.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_my_sql_management_client_enums.py index b1d482bc78dc..44ce28493d6e 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_my_sql_management_client_enums.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/models/_my_sql_management_client_enums.py @@ -272,7 +272,7 @@ class ServerState(str, Enum, metaclass=CaseInsensitiveEnumMeta): class ServerVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The version of a server.""" + """The major version of a server. 8.0.21 stands for MySQL 8.0, 5.7.44 stands for MySQL 5.7.""" FIVE7 = "5.7" EIGHT0_21 = "8.0.21" diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/__init__.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/__init__.py index 390e4a121d95..6c36a88d4b01 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/__init__.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/__init__.py @@ -14,6 +14,10 @@ from ._configurations_operations import ConfigurationsOperations from ._databases_operations import DatabasesOperations from ._firewall_rules_operations import FirewallRulesOperations +from ._servers_operations import ServersOperations +from ._replicas_operations import ReplicasOperations +from ._servers_migration_operations import ServersMigrationOperations +from ._advanced_threat_protection_settings_operations import AdvancedThreatProtectionSettingsOperations from ._log_files_operations import LogFilesOperations from ._location_based_capabilities_operations import LocationBasedCapabilitiesOperations from ._location_based_capability_set_operations import LocationBasedCapabilitySetOperations @@ -25,10 +29,6 @@ from ._get_private_dns_zone_suffix_operations import GetPrivateDnsZoneSuffixOperations from ._operations import Operations from ._maintenances_operations import MaintenancesOperations -from ._servers_operations import ServersOperations -from ._replicas_operations import ReplicasOperations -from ._servers_migration_operations import ServersMigrationOperations -from ._advanced_threat_protection_settings_operations import AdvancedThreatProtectionSettingsOperations from ._patch import __all__ as _patch_all from ._patch import * # pylint: disable=unused-wildcard-import @@ -43,6 +43,10 @@ "ConfigurationsOperations", "DatabasesOperations", "FirewallRulesOperations", + "ServersOperations", + "ReplicasOperations", + "ServersMigrationOperations", + "AdvancedThreatProtectionSettingsOperations", "LogFilesOperations", "LocationBasedCapabilitiesOperations", "LocationBasedCapabilitySetOperations", @@ -54,10 +58,6 @@ "GetPrivateDnsZoneSuffixOperations", "Operations", "MaintenancesOperations", - "ServersOperations", - "ReplicasOperations", - "ServersMigrationOperations", - "AdvancedThreatProtectionSettingsOperations", ] __all__.extend([p for p in _patch_all if p not in __all__]) _patch_sdk() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_advanced_threat_protection_settings_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_advanced_threat_protection_settings_operations.py index cd9f5d964ff6..7938fcd6b648 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_advanced_threat_protection_settings_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_advanced_threat_protection_settings_operations.py @@ -53,7 +53,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -93,7 +93,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -136,7 +136,7 @@ def build_update_put_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -173,7 +173,7 @@ def build_list_request(resource_group_name: str, server_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -253,7 +253,7 @@ def get( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.AdvancedThreatProtection] = kwargs.pop("cls", None) _request = build_get_request( @@ -305,7 +305,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -463,7 +463,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AdvancedThreatProtection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -529,7 +529,7 @@ def _update_put_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -686,7 +686,7 @@ def begin_update_put( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.AdvancedThreatProtection] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -753,7 +753,7 @@ def list( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.AdvancedThreatProtectionListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_operations.py index 0d68da9b2108..0ef1c7abfb78 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_operations.py @@ -42,7 +42,7 @@ def build_execute_request(location_name: str, subscription_id: str, **kwargs: An _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -167,7 +167,7 @@ def execute( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_without_location_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_without_location_operations.py index d4828ca25bc5..1b13bb5db379 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_without_location_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_name_availability_without_location_operations.py @@ -42,7 +42,7 @@ def build_execute_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -150,7 +150,7 @@ def execute( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.NameAvailability] = kwargs.pop("cls", None) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_virtual_network_subnet_usage_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_virtual_network_subnet_usage_operations.py index bd4268752004..5e0379acf279 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_virtual_network_subnet_usage_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_check_virtual_network_subnet_usage_operations.py @@ -42,7 +42,7 @@ def build_execute_request(location_name: str, subscription_id: str, **kwargs: An _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -159,7 +159,7 @@ def execute( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.VirtualNetworkSubnetUsageResult] = kwargs.pop("cls", None) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_get_private_dns_zone_suffix_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_get_private_dns_zone_suffix_operations.py index 4a4ce380c157..ff53bd005577 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_get_private_dns_zone_suffix_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_get_private_dns_zone_suffix_operations.py @@ -41,7 +41,7 @@ def build_execute_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -94,7 +94,7 @@ def execute(self, **kwargs: Any) -> _models.GetPrivateDnsZoneSuffixResponse: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.GetPrivateDnsZoneSuffixResponse] = kwargs.pop("cls", None) _request = build_execute_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capabilities_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capabilities_operations.py index 3f3f8cd24acf..9700df04c59a 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capabilities_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capabilities_operations.py @@ -42,7 +42,7 @@ def build_list_request(location_name: str, subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -100,7 +100,7 @@ def list(self, location_name: str, **kwargs: Any) -> Iterable["_models.Capabilit _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.CapabilitiesListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capability_set_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capability_set_operations.py index e5a4388a946a..34246825529a 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capability_set_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_location_based_capability_set_operations.py @@ -42,7 +42,7 @@ def build_list_request(location_name: str, subscription_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -72,7 +72,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -131,7 +131,7 @@ def list(self, location_name: str, **kwargs: Any) -> Iterable["_models.Capabilit _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.CapabilitySetsList] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { @@ -208,7 +208,7 @@ def get(self, location_name: str, capability_set_name: str = "default", **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.Capability] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_progress_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_progress_operations.py index b81689b9929e..8cd1a764991d 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_progress_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_progress_operations.py @@ -41,7 +41,7 @@ def build_get_request(location_name: str, operation_id: str, subscription_id: st _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -110,7 +110,7 @@ def get(self, location_name: str, operation_id: str, **kwargs: Any) -> _models.O _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.OperationProgressResult] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_results_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_results_operations.py index d53b70f76637..cb82481b94ac 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_results_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operation_results_operations.py @@ -41,7 +41,7 @@ def build_get_request(location_name: str, operation_id: str, subscription_id: st _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -110,7 +110,7 @@ def get(self, location_name: str, operation_id: str, **kwargs: Any) -> _models.O _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.OperationStatusExtendedResult] = kwargs.pop("cls", None) _request = build_get_request( diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operations.py index 0f9aef63d341..db66cdfabf31 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_operations.py @@ -42,7 +42,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -87,7 +87,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.Operation"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-12-30")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_replicas_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_replicas_operations.py index 1497294fdb88..ca3c0a8f4fbf 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_replicas_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_replicas_operations.py @@ -44,7 +44,7 @@ def build_list_by_server_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -106,7 +106,7 @@ def list_by_server(self, resource_group_name: str, server_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.ServerListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_migration_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_migration_operations.py index a18c0f71110d..14b8b980e0fc 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_migration_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_migration_operations.py @@ -47,7 +47,7 @@ def build_cutover_migration_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -105,7 +105,7 @@ def _cutover_migration_initial(self, resource_group_name: str, server_name: str, _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_cutover_migration_request( @@ -168,7 +168,7 @@ def begin_cutover_migration( _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_operations.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_operations.py index fd3d596ae574..49d853129fa1 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_operations.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_servers_operations.py @@ -49,7 +49,7 @@ def build_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -85,7 +85,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -121,7 +121,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -152,7 +152,7 @@ def build_get_request(resource_group_name: str, server_name: str, subscription_i _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -183,7 +183,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -213,7 +213,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -239,7 +239,7 @@ def build_failover_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -272,7 +272,7 @@ def build_validate_estimate_high_availability_request( # pylint: disable=name-t _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -308,7 +308,7 @@ def build_restart_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -342,7 +342,7 @@ def build_start_request(resource_group_name: str, server_name: str, subscription _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -373,7 +373,7 @@ def build_stop_request(resource_group_name: str, server_name: str, subscription_ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -406,7 +406,7 @@ def build_reset_gtid_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -442,7 +442,7 @@ def build_detach_v_net_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -505,7 +505,7 @@ def _create_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -636,7 +636,7 @@ def begin_create( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -698,7 +698,7 @@ def _update_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -833,7 +833,7 @@ def begin_update( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -889,7 +889,7 @@ def _delete_initial(self, resource_group_name: str, server_name: str, **kwargs: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_delete_request( @@ -946,7 +946,7 @@ def begin_delete(self, resource_group_name: str, server_name: str, **kwargs: Any _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1009,7 +1009,7 @@ def get(self, resource_group_name: str, server_name: str, **kwargs: Any) -> _mod _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.Server] = kwargs.pop("cls", None) _request = build_get_request( @@ -1055,7 +1055,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.ServerListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { @@ -1120,7 +1120,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.Server"]: _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[_models.ServerListResult] = kwargs.pop("cls", None) error_map: MutableMapping[int, Type[HttpResponseError]] = { @@ -1185,7 +1185,7 @@ def _failover_initial(self, resource_group_name: str, server_name: str, **kwargs _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_failover_request( @@ -1242,7 +1242,7 @@ def begin_failover(self, resource_group_name: str, server_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1369,7 +1369,7 @@ def validate_estimate_high_availability( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.HighAvailabilityValidationEstimation] = kwargs.pop("cls", None) @@ -1431,7 +1431,7 @@ def _restart_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -1563,7 +1563,7 @@ def begin_restart( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -1615,7 +1615,7 @@ def _start_initial(self, resource_group_name: str, server_name: str, **kwargs: A _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_start_request( @@ -1672,7 +1672,7 @@ def begin_start(self, resource_group_name: str, server_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1721,7 +1721,7 @@ def _stop_initial(self, resource_group_name: str, server_name: str, **kwargs: An _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) _request = build_stop_request( @@ -1778,7 +1778,7 @@ def begin_stop(self, resource_group_name: str, server_name: str, **kwargs: Any) _headers = kwargs.pop("headers", {}) or {} _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) lro_delay = kwargs.pop("polling_interval", self._config.polling_interval) @@ -1833,7 +1833,7 @@ def _reset_gtid_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -1965,7 +1965,7 @@ def begin_reset_gtid( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[None] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) @@ -2025,7 +2025,7 @@ def _detach_v_net_initial( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None) @@ -2158,7 +2158,7 @@ def begin_detach_v_net( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-06-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-10-01-preview")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) cls: ClsType[_models.Server] = kwargs.pop("cls", None) polling: Union[bool, PollingMethod] = kwargs.pop("polling", True) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_get.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_get.py index 82040e4e3bb5..31f49a24d40a 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_get.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/AdvancedThreatProtectionSettingsGet.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/AdvancedThreatProtectionSettingsGet.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_list.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_list.py index 2ebd4ba1fd69..fedffa86681a 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_list.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/AdvancedThreatProtectionSettingsList.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/AdvancedThreatProtectionSettingsList.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_disabled.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_disabled.py index 641a8b383d1a..d7ddd851d83c 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_disabled.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_disabled.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/AdvancedThreatProtectionSettingsPatchDisabled.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/AdvancedThreatProtectionSettingsPatchDisabled.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_enabled.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_enabled.py index 8e91cb688655..97cee2d70e7d 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_enabled.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_patch_enabled.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/AdvancedThreatProtectionSettingsPatchEnabled.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/AdvancedThreatProtectionSettingsPatchEnabled.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_disabled.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_disabled.py index fcf1a6018104..7cbd6890715f 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_disabled.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_disabled.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/AdvancedThreatProtectionSettingsPutDisabled.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/AdvancedThreatProtectionSettingsPutDisabled.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_enabled.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_enabled.py index 95372dda2925..2f5f04d7600a 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_enabled.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/advanced_threat_protection_settings_put_enabled.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/AdvancedThreatProtectionSettingsPutEnabled.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/AdvancedThreatProtectionSettingsPutEnabled.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capabilities_by_location_list.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capabilities_by_location_list.py index 55e77c72c5f8..5eded6c7c0ba 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capabilities_by_location_list.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capabilities_by_location_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/CapabilitiesByLocationList.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/CapabilitiesByLocationList.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_by_location.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_by_location.py index 15d5633448d6..d1c8e4308e50 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_by_location.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_by_location.py @@ -36,6 +36,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/CapabilitySetByLocation.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/CapabilitySetByLocation.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_list_by_location.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_list_by_location.py index 9f1e83f4cebd..3eef6f895c3c 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_list_by_location.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/capability_set_list_by_location.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/CapabilitySetListByLocation.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/CapabilitySetListByLocation.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_name_availability.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_name_availability.py index c030d36ccc1c..b0961867b790 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_name_availability.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_name_availability.py @@ -9,6 +9,7 @@ from azure.identity import DefaultAzureCredential from azure.mgmt.mysqlflexibleservers import MySQLManagementClient + """ # PREREQUISITES pip install azure-identity @@ -21,6 +22,8 @@ AZURE_CLIENT_SECRET. For more info about how to get the value, please see: https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal """ + + def main(): client = MySQLManagementClient( credential=DefaultAzureCredential(), @@ -28,12 +31,11 @@ def main(): ) response = client.check_name_availability_without_location.execute( - name_availability_request={'name': 'name1', 'type': 'Microsoft.DBforMySQL/flexibleServers'}, + name_availability_request={"name": "name1", "type": "Microsoft.DBforMySQL/flexibleServers"}, ) print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/CheckNameAvailability.json + +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/CheckNameAvailability.json if __name__ == "__main__": main() -__main__": - main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_virtual_network_subnet_usage.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_virtual_network_subnet_usage.py index db1f53928c9b..76db417450ad 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_virtual_network_subnet_usage.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/check_virtual_network_subnet_usage.py @@ -39,6 +39,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/CheckVirtualNetworkSubnetUsage.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/CheckVirtualNetworkSubnetUsage.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/cutover_migration.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/cutover_migration.py index 866957efefe4..7beb83abe966 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/cutover_migration.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/cutover_migration.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/CutoverMigration.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/CutoverMigration.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/get_private_dns_zone_suffix.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/get_private_dns_zone_suffix.py index 49ddc55e0a06..930429fbf014 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/get_private_dns_zone_suffix.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/get_private_dns_zone_suffix.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/GetPrivateDnsZoneSuffix.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/GetPrivateDnsZoneSuffix.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_in_virtual_canary.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_in_virtual_canary.py index f81b35795af5..3b07f5602e56 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_in_virtual_canary.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_in_virtual_canary.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/MaintenancePolicyPatchOptInVirtualCanary.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/MaintenancePolicyPatchOptInVirtualCanary.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_out_virtual_canary.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_out_virtual_canary.py index 629e60cec868..231ac1af67ca 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_out_virtual_canary.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/maintenance_policy_patch_opt_out_virtual_canary.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/MaintenancePolicyPatchOptOutVirtualCanary.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/MaintenancePolicyPatchOptOutVirtualCanary.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_backup_and_export.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_backup_and_export.py index a41a6dd39619..b4c1ccb83ddf 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_backup_and_export.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_backup_and_export.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/OperationProgress_Get_BackupAndExport.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/OperationProgress_Get_BackupAndExport.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_import_from_storage.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_import_from_storage.py index f426dfc3f6a2..513d781e2fa3 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_import_from_storage.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_progress_get_import_from_storage.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/OperationProgress_Get_ImportFromStorage.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/OperationProgress_Get_ImportFromStorage.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_results_get.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_results_get.py index 0197a716d0e1..f72cbb59816e 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_results_get.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operation_results_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/OperationResults_Get.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/OperationResults_Get.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operations_list.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operations_list.py index 949edf07c241..6474b08e701a 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operations_list.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/operations_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/stable/2023-12-30/examples/OperationsList.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/ServiceOperations/preview/2024-10-01-preview/examples/OperationsList.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/replicas_list_by_server.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/replicas_list_by_server.py index 31c4ad7a92e2..5f02ed0c3b3c 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/replicas_list_by_server.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/replicas_list_by_server.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ReplicasListByServer.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ReplicasListByServer.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create.py index c5fd4111f28c..7ca55dc7d7f2 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create.py @@ -45,7 +45,7 @@ def main(): "storage": { "autoGrow": "Disabled", "iops": 600, - "storageRedundancy": "LocalRedundancy", + "storageRedundancy": "ZoneRedundancy", "storageSizeGB": 100, }, "version": "5.7", @@ -57,6 +57,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerCreate.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerCreate.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_replica.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_replica.py index 2b5ed91c45f5..cbcbe2e07fa9 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_replica.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_replica.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerCreateReplica.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerCreateReplica.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_byok.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_byok.py index 4f311a7bbf86..68bae0e57a1d 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_byok.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_byok.py @@ -70,6 +70,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerCreateWithBYOK.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerCreateWithBYOK.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_database_port.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_database_port.py index 5c7ec9990035..72f0f6d2fc32 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_database_port.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_database_port.py @@ -58,6 +58,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerCreateWithDatabasePort.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerCreateWithDatabasePort.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_point_in_time_restore.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_point_in_time_restore.py index c7b9bd89542c..c4e44b549564 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_point_in_time_restore.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_create_with_point_in_time_restore.py @@ -47,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerCreateWithPointInTimeRestore.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerCreateWithPointInTimeRestore.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_delete.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_delete.py index 6b71933589aa..06e94726e544 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_delete.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerDelete.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerDelete.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_detach_vnet.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_detach_vnet.py index a9aa5bb97316..ad0e1c3dc2fc 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_detach_vnet.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_detach_vnet.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerDetachVNet.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerDetachVNet.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_failover.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_failover.py index ad9ce5614797..0a0d7fe96d49 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_failover.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_failover.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerFailover.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerFailover.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get.py index c5eaf94a1614..d0c568e8d1d3 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerGet.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerGet.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get_with_vnet.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get_with_vnet.py index c71dfec71353..1bec4fca6579 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get_with_vnet.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_get_with_vnet.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerGetWithVnet.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerGetWithVnet.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_reset_gtid.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_reset_gtid.py index 58232ccac6ee..6196d2dfd22c 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_reset_gtid.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_reset_gtid.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerResetGtid.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerResetGtid.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_restart.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_restart.py index cde7f8f55a9c..91924cd19b85 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_restart.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_restart.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerRestart.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerRestart.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_start.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_start.py index 227b45f4f02f..c1e7e407e3ff 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_start.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_start.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerStart.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerStart.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_stop.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_stop.py index fc4945d12e46..a0ba3daec352 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_stop.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_stop.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerStop.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerStop.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update.py index 3a8e3aebbe90..384bc4a1916d 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update.py @@ -36,13 +36,19 @@ def main(): parameters={ "properties": { "network": {"publicNetworkAccess": "Disabled"}, - "storage": {"autoGrow": "Disabled", "autoIoScaling": "Disabled", "iops": 200, "storageSizeGB": 30}, + "storage": { + "autoGrow": "Disabled", + "autoIoScaling": "Disabled", + "iops": 200, + "storageRedundancy": "LocalRedundancy", + "storageSizeGB": 30, + }, } }, ).result() print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerUpdate.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerUpdate.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_byok.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_byok.py index 82f4b19b650c..5f47f1ed6bb8 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_byok.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_byok.py @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerUpdateWithBYOK.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerUpdateWithBYOK.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_customer_maintenance_window.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_customer_maintenance_window.py index c08f73da260b..25c7588d594e 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_customer_maintenance_window.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_update_with_customer_maintenance_window.py @@ -42,6 +42,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerUpdateWithCustomerMaintenanceWindow.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_validate_estimate_high_availability.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_validate_estimate_high_availability.py index b6560e6fda7f..031b0397dc7f 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_validate_estimate_high_availability.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/server_validate_estimate_high_availability.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServerValidateEstimateHighAvailability.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServerValidateEstimateHighAvailability.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list.py index 0dcb8861a700..f5ddf3a5719c 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServersList.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServersList.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list_by_resource_group.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list_by_resource_group.py index 4aeca085ff06..14e2f4ffbeed 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list_by_resource_group.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/generated_samples/servers_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-06-01-preview/examples/ServersListByResourceGroup.json +# x-ms-original-file: specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/preview/2024-10-01-preview/examples/ServersListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/setup.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/setup.py index 999bacaba6f6..5be2f56e3348 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/setup.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/setup.py @@ -22,9 +22,11 @@ # Version extraction inspired from 'requests' with open( - os.path.join(package_folder_path, "version.py") - if os.path.exists(os.path.join(package_folder_path, "version.py")) - else os.path.join(package_folder_path, "_version.py"), + ( + os.path.join(package_folder_path, "version.py") + if os.path.exists(os.path.join(package_folder_path, "version.py")) + else os.path.join(package_folder_path, "_version.py") + ), "r", ) as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/conftest.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/conftest.py index c89329c00bda..b345bf3c55f8 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/conftest.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/conftest.py @@ -21,11 +21,15 @@ # aovid record sensitive identity information in recordings @pytest.fixture(scope="session", autouse=True) def add_sanitizers(test_proxy): - mysqlflexibleservers_subscription_id = os.environ.get("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + mysqlflexibleservers_subscription_id = os.environ.get( + "AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000" + ) mysqlflexibleservers_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") mysqlflexibleservers_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") mysqlflexibleservers_client_secret = os.environ.get("AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000") - add_general_regex_sanitizer(regex=mysqlflexibleservers_subscription_id, value="00000000-0000-0000-0000-000000000000") + add_general_regex_sanitizer( + regex=mysqlflexibleservers_subscription_id, value="00000000-0000-0000-0000-000000000000" + ) add_general_regex_sanitizer(regex=mysqlflexibleservers_tenant_id, value="00000000-0000-0000-0000-000000000000") add_general_regex_sanitizer(regex=mysqlflexibleservers_client_id, value="00000000-0000-0000-0000-000000000000") add_general_regex_sanitizer(regex=mysqlflexibleservers_client_secret, value="00000000-0000-0000-0000-000000000000") diff --git a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/test_mysql_flexible_servers_operations_test.py b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/test_mysql_flexible_servers_operations_test.py index d990c3ef1c74..3d3e109fb3b5 100644 --- a/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/test_mysql_flexible_servers_operations_test.py +++ b/sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/tests/test_mysql_flexible_servers_operations_test.py @@ -1,4 +1,3 @@ - # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved.