Skip to content

Commit 38c3fa4

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoPR azure-mgmt-mysqlflexibleservers]-generated-from-SDK Generation - Python-5445903 (#43381)
* Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/tspconfig.yaml', API Version: 2024-12-30, SDK Release Type: stable, and CommitSHA: '91e3aca0bfa4b59a9f578959d0b214a26b90df40' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5445903 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/tspconfig.yaml', API Version: 2024-12-30, SDK Release Type: stable, and CommitSHA: '91e3aca0bfa4b59a9f578959d0b214a26b90df40' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5445944 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/tspconfig.yaml', API Version: 2024-12-30, SDK Release Type: stable, and CommitSHA: '14df0d25acfedb5aaa9927c8fe3495db04d1a4ba' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5484276 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update changelog * Update CHANGELOG.md * Update CHANGELOG.md * Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/tspconfig.yaml', API Version: 2024-12-30, SDK Release Type: stable, and CommitSHA: 'aaea49a20b10e8ab526495309e14fdfdcd23bb7e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5526794 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md', API Version: 2024-12-30, SDK Release Type: stable, and CommitSHA: '7931e3df0b3a23b5b32db9ce3fed184de841680b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5546103 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update changelog * Update changelog for breaking changes Clarified the changelog entry for the deleted model. --------- Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent be1d439 commit 38c3fa4

File tree

207 files changed

+12445
-5653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+12445
-5653
lines changed

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Release History
22

3+
## 1.0.0 (2025-11-07)
4+
5+
### Features Added
6+
7+
- Model `MySQLManagementClient` added parameter `cloud_setting` in method `__init__`
8+
- Client `MySQLManagementClient` added operation group `private_endpoint_connections`
9+
- Client `MySQLManagementClient` added operation group `private_link_resources`
10+
- Model `MaintenanceWindow` added property `batch_of_maintenance`
11+
- Model `OperationProgressResult` added property `properties`
12+
- Added enum `BatchOfMaintenance`
13+
- Added enum `Origin`
14+
- Added model `PrivateEndpointConnectionListResult`
15+
- Added model `PrivateLinkResource`
16+
- Added model `PrivateLinkResourceListResult`
17+
- Added operation group `PrivateEndpointConnectionsOperations`
18+
- Added operation group `PrivateLinkResourcesOperations`
19+
20+
### Breaking Changes
21+
22+
- Model `OperationProgressResult` instance variable `object_type` has been moved under property `properties`
23+
- Deleted unused model `Provisioning`
24+
325
## 1.0.0b3 (2024-11-18)
426

527
### Features Added
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include _meta.json
2-
recursive-include tests *.py *.json
3-
recursive-include samples *.py *.md
41
include *.md
5-
include azure/__init__.py
6-
include azure/mgmt/__init__.py
72
include LICENSE
83
include azure/mgmt/mysqlflexibleservers/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Mysqlflexibleservers Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/_meta.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"apiVersion": "2024-12-30",
3+
"commit": "7931e3df0b3a23b5b32db9ce3fed184de841680b",
4+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
5+
"typespec_src": "specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers",
6+
"emitterVersion": "0.53.1",
7+
"autorest": "3.10.2",
8+
"use": [
9+
"@autorest/python@6.42.0",
10+
"@autorest/modelerfour@4.27.0"
11+
],
12+
"autorest_command": "autorest specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.42.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
13+
"readme": "specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md"
14+
}

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/apiview-properties.json

Lines changed: 256 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._my_sql_management_client import MySQLManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._my_sql_management_client import MySQLManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"MySQLManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_configuration.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
17+
from azure.core import AzureClouds
1818
from azure.core.credentials import TokenCredential
1919

2020

21-
class MySQLManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
21+
class MySQLManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2222
"""Configuration for MySQLManagementClient.
2323
2424
Note that all parameters used to create this instance are saved as instance
@@ -28,16 +28,32 @@ class MySQLManagementClientConfiguration: # pylint: disable=too-many-instance-a
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3030
:type subscription_id: str
31+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
32+
None.
33+
:type cloud_setting: ~azure.core.AzureClouds
34+
:keyword api_version: Api Version. Default value is "2024-12-30". Note that overriding this
35+
default value may result in unsupported behavior.
36+
:paramtype api_version: str
3137
"""
3238

33-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
39+
def __init__(
40+
self,
41+
credential: "TokenCredential",
42+
subscription_id: str,
43+
cloud_setting: Optional["AzureClouds"] = None,
44+
**kwargs: Any
45+
) -> None:
46+
api_version: str = kwargs.pop("api_version", "2024-12-30")
47+
3448
if credential is None:
3549
raise ValueError("Parameter 'credential' must not be None.")
3650
if subscription_id is None:
3751
raise ValueError("Parameter 'subscription_id' must not be None.")
3852

3953
self.credential = credential
4054
self.subscription_id = subscription_id
55+
self.cloud_setting = cloud_setting
56+
self.api_version = api_version
4157
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4258
kwargs.setdefault("sdk_moniker", "mgmt-mysqlflexibleservers/{}".format(VERSION))
4359
self.polling_interval = kwargs.get("polling_interval", 30)

0 commit comments

Comments
 (0)