Skip to content

Commit 3de65c4

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-appconfiguration-2023-03-23-97754(can only be merged by SDK owner) (Azure#29532)
* code and test * Update CHANGELOG.md --------- Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent 848256b commit 3de65c4

File tree

102 files changed

+11388
-184
lines changed

Some content is hidden

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

102 files changed

+11388
-184
lines changed

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

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

3+
## 3.0.0 (2023-03-27)
4+
5+
### Breaking Changes
6+
7+
- Removed operation KeyValuesOperations.list_by_configuration_store
8+
39
## 3.0.0b1 (2023-02-15)
410

511
### Breaking Changes

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ client = AppConfigurationManagementClient(credential=DefaultAzureCredential(), s
4545

4646
## Examples
4747

48-
49-
Code samples for this package can be found at [App Configuration Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com and [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
48+
Code samples for this package can be found at:
49+
- [Search App Configuration Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
5051

5152

5253
## Troubleshooting
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "d37b3db5ec88a9fc2afcae36bf8d2004b1c5b537",
2+
"commit": "396209531039d3e211cb1ec0982606dbbdf64ac2",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.0",
6+
"@autorest/python@6.4.3",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/appconfiguration/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 --use=@autorest/python@6.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/appconfiguration/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 --use=@autorest/python@6.4.3 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/appconfiguration/resource-manager/readme.md"
1111
}

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,11 @@ class AppConfigurationManagementClient(MultiApiClientMixin, _SDKClient):
5353
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5454
"""
5555

56-
DEFAULT_API_VERSION = '2022-05-01'
56+
DEFAULT_API_VERSION = '2023-03-01'
5757
_PROFILE_TAG = "azure.mgmt.appconfiguration.AppConfigurationManagementClient"
5858
LATEST_PROFILE = ProfileDefinition({
5959
_PROFILE_TAG: {
6060
None: DEFAULT_API_VERSION,
61-
'replicas': '2022-03-01-preview',
6261
}},
6362
_PROFILE_TAG + " latest"
6463
)
@@ -89,13 +88,17 @@ def models(cls, api_version=DEFAULT_API_VERSION):
8988
9089
* 2022-03-01-preview: :mod:`v2022_03_01_preview.models<azure.mgmt.appconfiguration.v2022_03_01_preview.models>`
9190
* 2022-05-01: :mod:`v2022_05_01.models<azure.mgmt.appconfiguration.v2022_05_01.models>`
91+
* 2023-03-01: :mod:`v2023_03_01.models<azure.mgmt.appconfiguration.v2023_03_01.models>`
9292
"""
9393
if api_version == '2022-03-01-preview':
9494
from .v2022_03_01_preview import models
9595
return models
9696
elif api_version == '2022-05-01':
9797
from .v2022_05_01 import models
9898
return models
99+
elif api_version == '2023-03-01':
100+
from .v2023_03_01 import models
101+
return models
99102
raise ValueError("API version {} is not available".format(api_version))
100103

101104
@property
@@ -104,12 +107,15 @@ def configuration_stores(self):
104107
105108
* 2022-03-01-preview: :class:`ConfigurationStoresOperations<azure.mgmt.appconfiguration.v2022_03_01_preview.operations.ConfigurationStoresOperations>`
106109
* 2022-05-01: :class:`ConfigurationStoresOperations<azure.mgmt.appconfiguration.v2022_05_01.operations.ConfigurationStoresOperations>`
110+
* 2023-03-01: :class:`ConfigurationStoresOperations<azure.mgmt.appconfiguration.v2023_03_01.operations.ConfigurationStoresOperations>`
107111
"""
108112
api_version = self._get_api_version('configuration_stores')
109113
if api_version == '2022-03-01-preview':
110114
from .v2022_03_01_preview.operations import ConfigurationStoresOperations as OperationClass
111115
elif api_version == '2022-05-01':
112116
from .v2022_05_01.operations import ConfigurationStoresOperations as OperationClass
117+
elif api_version == '2023-03-01':
118+
from .v2023_03_01.operations import ConfigurationStoresOperations as OperationClass
113119
else:
114120
raise ValueError("API version {} does not have operation group 'configuration_stores'".format(api_version))
115121
self._config.api_version = api_version
@@ -121,12 +127,15 @@ def key_values(self):
121127
122128
* 2022-03-01-preview: :class:`KeyValuesOperations<azure.mgmt.appconfiguration.v2022_03_01_preview.operations.KeyValuesOperations>`
123129
* 2022-05-01: :class:`KeyValuesOperations<azure.mgmt.appconfiguration.v2022_05_01.operations.KeyValuesOperations>`
130+
* 2023-03-01: :class:`KeyValuesOperations<azure.mgmt.appconfiguration.v2023_03_01.operations.KeyValuesOperations>`
124131
"""
125132
api_version = self._get_api_version('key_values')
126133
if api_version == '2022-03-01-preview':
127134
from .v2022_03_01_preview.operations import KeyValuesOperations as OperationClass
128135
elif api_version == '2022-05-01':
129136
from .v2022_05_01.operations import KeyValuesOperations as OperationClass
137+
elif api_version == '2023-03-01':
138+
from .v2023_03_01.operations import KeyValuesOperations as OperationClass
130139
else:
131140
raise ValueError("API version {} does not have operation group 'key_values'".format(api_version))
132141
self._config.api_version = api_version
@@ -138,12 +147,15 @@ def operations(self):
138147
139148
* 2022-03-01-preview: :class:`Operations<azure.mgmt.appconfiguration.v2022_03_01_preview.operations.Operations>`
140149
* 2022-05-01: :class:`Operations<azure.mgmt.appconfiguration.v2022_05_01.operations.Operations>`
150+
* 2023-03-01: :class:`Operations<azure.mgmt.appconfiguration.v2023_03_01.operations.Operations>`
141151
"""
142152
api_version = self._get_api_version('operations')
143153
if api_version == '2022-03-01-preview':
144154
from .v2022_03_01_preview.operations import Operations as OperationClass
145155
elif api_version == '2022-05-01':
146156
from .v2022_05_01.operations import Operations as OperationClass
157+
elif api_version == '2023-03-01':
158+
from .v2023_03_01.operations import Operations as OperationClass
147159
else:
148160
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
149161
self._config.api_version = api_version
@@ -155,12 +167,15 @@ def private_endpoint_connections(self):
155167
156168
* 2022-03-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.appconfiguration.v2022_03_01_preview.operations.PrivateEndpointConnectionsOperations>`
157169
* 2022-05-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.appconfiguration.v2022_05_01.operations.PrivateEndpointConnectionsOperations>`
170+
* 2023-03-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.appconfiguration.v2023_03_01.operations.PrivateEndpointConnectionsOperations>`
158171
"""
159172
api_version = self._get_api_version('private_endpoint_connections')
160173
if api_version == '2022-03-01-preview':
161174
from .v2022_03_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
162175
elif api_version == '2022-05-01':
163176
from .v2022_05_01.operations import PrivateEndpointConnectionsOperations as OperationClass
177+
elif api_version == '2023-03-01':
178+
from .v2023_03_01.operations import PrivateEndpointConnectionsOperations as OperationClass
164179
else:
165180
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
166181
self._config.api_version = api_version
@@ -172,12 +187,15 @@ def private_link_resources(self):
172187
173188
* 2022-03-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.appconfiguration.v2022_03_01_preview.operations.PrivateLinkResourcesOperations>`
174189
* 2022-05-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.appconfiguration.v2022_05_01.operations.PrivateLinkResourcesOperations>`
190+
* 2023-03-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.appconfiguration.v2023_03_01.operations.PrivateLinkResourcesOperations>`
175191
"""
176192
api_version = self._get_api_version('private_link_resources')
177193
if api_version == '2022-03-01-preview':
178194
from .v2022_03_01_preview.operations import PrivateLinkResourcesOperations as OperationClass
179195
elif api_version == '2022-05-01':
180196
from .v2022_05_01.operations import PrivateLinkResourcesOperations as OperationClass
197+
elif api_version == '2023-03-01':
198+
from .v2023_03_01.operations import PrivateLinkResourcesOperations as OperationClass
181199
else:
182200
raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
183201
self._config.api_version = api_version
@@ -188,10 +206,13 @@ def replicas(self):
188206
"""Instance depends on the API version:
189207
190208
* 2022-03-01-preview: :class:`ReplicasOperations<azure.mgmt.appconfiguration.v2022_03_01_preview.operations.ReplicasOperations>`
209+
* 2023-03-01: :class:`ReplicasOperations<azure.mgmt.appconfiguration.v2023_03_01.operations.ReplicasOperations>`
191210
"""
192211
api_version = self._get_api_version('replicas')
193212
if api_version == '2022-03-01-preview':
194213
from .v2022_03_01_preview.operations import ReplicasOperations as OperationClass
214+
elif api_version == '2023-03-01':
215+
from .v2023_03_01.operations import ReplicasOperations as OperationClass
195216
else:
196217
raise ValueError("API version {} does not have operation group 'replicas'".format(api_version))
197218
self._config.api_version = api_version

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_patch.py

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
6-
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
76
# --------------------------------------------------------------------------
87

9-
VERSION = "3.0.0b1"
8+
VERSION = "3.0.0"

0 commit comments

Comments
 (0)