Skip to content

Commit b580e49

Browse files
azclibotBigCat20196msyyc
authored
[AutoRelease] t2-resource-2022-04-26-41459(Do not merge) (Azure#24179)
* code and test * Update CHANGELOG.md * update version * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Jiefeng Chen <[email protected]> Co-authored-by: Jiefeng Chen (WICRESOFT NORTH AMERICA LTD) <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent ed6e1ac commit b580e49

File tree

87 files changed

+479
-410
lines changed

Some content is hidden

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

87 files changed

+479
-410
lines changed

sdk/resources/azure-mgmt-resource/CHANGELOG.md

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

3+
## 21.1.0 (2022-04-26)
4+
5+
**Features**
6+
7+
- GA `azure.mgmt.resource.changes`
8+
9+
310
## 21.1.0b1 (2022-04-19)
411

512
**Features**

sdk/resources/azure-mgmt-resource/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "572d71d6c4134db8dd00055d9cd3f76b2d414a7b",
7+
"commit": "fb32676995912336709a2af7d7250e0b63c9333d",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/resources/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
1010
"readme": "specification/resources/resource-manager/readme.md"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "21.1.0b1"
8+
VERSION = "21.1.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/_changes_client.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ChangesClient(MultiApiClientMixin, _SDKClient):
5555
:type profile: azure.profiles.KnownProfiles
5656
"""
5757

58-
DEFAULT_API_VERSION = '2022-03-01-preview'
58+
DEFAULT_API_VERSION = '2022-05-01'
5959
_PROFILE_TAG = "azure.mgmt.resource.changes.ChangesClient"
6060
LATEST_PROFILE = ProfileDefinition({
6161
_PROFILE_TAG: {
@@ -89,21 +89,28 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8989
"""Module depends on the API version:
9090
9191
* 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.resource.changes.v2022_03_01_preview.models>`
92+
* 2022-05-01: :mod:`v2022_05_01.models<azure.mgmt.resource.changes.v2022_05_01.models>`
9293
"""
9394
if api_version == '2022-03-01-preview':
9495
from .v2022_03_01_preview import models
9596
return models
97+
elif api_version == '2022-05-01':
98+
from .v2022_05_01 import models
99+
return models
96100
raise ValueError("API version {} is not available".format(api_version))
97101

98102
@property
99103
def changes(self):
100104
"""Instance depends on the API version:
101105
102106
* 2022-03-01-preview: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_03_01_preview.operations.ChangesOperations>`
107+
* 2022-05-01: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_05_01.operations.ChangesOperations>`
103108
"""
104109
api_version = self._get_api_version('changes')
105110
if api_version == '2022-03-01-preview':
106111
from .v2022_03_01_preview.operations import ChangesOperations as OperationClass
112+
elif api_version == '2022-05-01':
113+
from .v2022_05_01.operations import ChangesOperations as OperationClass
107114
else:
108115
raise ValueError("API version {} does not have operation group 'changes'".format(api_version))
109116
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "21.1.0b1"
8+
VERSION = "21.1.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/aio/_changes_client.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ChangesClient(MultiApiClientMixin, _SDKClient):
5454
:type profile: azure.profiles.KnownProfiles
5555
"""
5656

57-
DEFAULT_API_VERSION = '2022-03-01-preview'
57+
DEFAULT_API_VERSION = '2022-05-01'
5858
_PROFILE_TAG = "azure.mgmt.resource.changes.ChangesClient"
5959
LATEST_PROFILE = ProfileDefinition({
6060
_PROFILE_TAG: {
@@ -88,21 +88,28 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8888
"""Module depends on the API version:
8989
9090
* 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.resource.changes.v2022_03_01_preview.models>`
91+
* 2022-05-01: :mod:`v2022_05_01.models<azure.mgmt.resource.changes.v2022_05_01.models>`
9192
"""
9293
if api_version == '2022-03-01-preview':
9394
from ..v2022_03_01_preview import models
9495
return models
96+
elif api_version == '2022-05-01':
97+
from ..v2022_05_01 import models
98+
return models
9599
raise ValueError("API version {} is not available".format(api_version))
96100

97101
@property
98102
def changes(self):
99103
"""Instance depends on the API version:
100104
101105
* 2022-03-01-preview: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_03_01_preview.aio.operations.ChangesOperations>`
106+
* 2022-05-01: :class:`ChangesOperations<azure.mgmt.resource.changes.v2022_05_01.aio.operations.ChangesOperations>`
102107
"""
103108
api_version = self._get_api_version('changes')
104109
if api_version == '2022-03-01-preview':
105110
from ..v2022_03_01_preview.aio.operations import ChangesOperations as OperationClass
111+
elif api_version == '2022-05-01':
112+
from ..v2022_05_01.aio.operations import ChangesOperations as OperationClass
106113
else:
107114
raise ValueError("API version {} does not have operation group 'changes'".format(api_version))
108115
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/changes/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7-
from .v2022_03_01_preview.models import *
7+
from .v2022_05_01.models import *
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ class ChangesClient:
2626
"""The Resource Changes Client.
2727
2828
:ivar changes: ChangesOperations operations
29-
:vartype changes: azure.mgmt.resource.changes.v2022_03_01_preview.operations.ChangesOperations
29+
:vartype changes: azure.mgmt.resource.changes.v2022_05_01.operations.ChangesOperations
3030
:param credential: Credential needed for the client to connect to Azure.
3131
:type credential: ~azure.core.credentials.TokenCredential
3232
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
3333
00000000-0000-0000-0000-000000000000).
3434
:type subscription_id: str
3535
:param base_url: Service URL. Default value is "https://management.azure.com".
3636
:type base_url: str
37-
:keyword api_version: Api Version. Default value is "2022-03-01-preview". Note that overriding
38-
this default value may result in unsupported behavior.
37+
:keyword api_version: Api Version. Default value is "2022-05-01". Note that overriding this
38+
default value may result in unsupported behavior.
3939
:paramtype api_version: str
4040
"""
4141

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class ChangesClientConfiguration(Configuration): # pylint: disable=too-many-ins
3030
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
3131
00000000-0000-0000-0000-000000000000).
3232
:type subscription_id: str
33-
:keyword api_version: Api Version. Default value is "2022-03-01-preview". Note that overriding
34-
this default value may result in unsupported behavior.
33+
:keyword api_version: Api Version. Default value is "2022-05-01". Note that overriding this
34+
default value may result in unsupported behavior.
3535
:paramtype api_version: str
3636
"""
3737

@@ -42,7 +42,7 @@ def __init__(
4242
**kwargs: Any
4343
) -> None:
4444
super(ChangesClientConfiguration, self).__init__(**kwargs)
45-
api_version = kwargs.pop('api_version', "2022-03-01-preview") # type: str
45+
api_version = kwargs.pop('api_version', "2022-05-01") # type: str
4646

4747
if credential is None:
4848
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)