Skip to content

Commit e36e9b6

Browse files
azclibotBigCat20196
authored andcommitted
[AutoRelease] t2-appconfiguration-2022-06-02-69007(Do not merge) (Azure#24673)
* code and test * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
1 parent 099fbcc commit e36e9b6

22 files changed

Lines changed: 1035 additions & 655 deletions

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

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

3+
## 2.1.0 (2022-06-08)
4+
5+
**Features**
6+
7+
- Added operation ConfigurationStoresOperations.begin_purge_deleted
8+
- Added operation ConfigurationStoresOperations.get_deleted
9+
- Added operation ConfigurationStoresOperations.list_deleted
10+
- Added operation Operations.regional_check_name_availability
11+
- Model ConfigurationStore has a new parameter create_mode
12+
- Model ConfigurationStore has a new parameter enable_purge_protection
13+
- Model ConfigurationStore has a new parameter soft_delete_retention_in_days
14+
- Model ConfigurationStoreUpdateParameters has a new parameter enable_purge_protection
15+
316
## 2.1.0b2 (2022-02-28)
417

518
**Features**

sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ include *.md
44
include azure/__init__.py
55
include azure/mgmt/__init__.py
66
include LICENSE
7+
include azure/mgmt/appconfiguration/py.typed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.12.0",
4+
"@autorest/python@5.13.0",
55
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "4d25a2a8e6b2f954079c91a0c3ec0d7f905220e3",
7+
"commit": "08894fa8d66cb44dc62a73f7a09530f905985fa3",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/appconfiguration/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"autorest_command": "autorest specification/appconfiguration/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/appconfiguration/resource-manager/readme.md"
1111
}

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, Optional, TYPE_CHECKING
10+
from typing import Any, TYPE_CHECKING
11+
12+
from msrest import Deserializer, Serializer
1113

1214
from azure.core.rest import HttpRequest, HttpResponse
1315
from azure.mgmt.core import ARMPipelineClient
14-
from msrest import Deserializer, Serializer
1516

1617
from . import models
1718
from ._configuration import AppConfigurationManagementClientConfiguration
@@ -26,23 +27,26 @@ class AppConfigurationManagementClient:
2627
2728
:ivar configuration_stores: ConfigurationStoresOperations operations
2829
:vartype configuration_stores:
29-
app_configuration_management_client.operations.ConfigurationStoresOperations
30+
azure.mgmt.appconfiguration.operations.ConfigurationStoresOperations
3031
:ivar operations: Operations operations
31-
:vartype operations: app_configuration_management_client.operations.Operations
32+
:vartype operations: azure.mgmt.appconfiguration.operations.Operations
3233
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
3334
:vartype private_endpoint_connections:
34-
app_configuration_management_client.operations.PrivateEndpointConnectionsOperations
35+
azure.mgmt.appconfiguration.operations.PrivateEndpointConnectionsOperations
3536
:ivar private_link_resources: PrivateLinkResourcesOperations operations
3637
:vartype private_link_resources:
37-
app_configuration_management_client.operations.PrivateLinkResourcesOperations
38+
azure.mgmt.appconfiguration.operations.PrivateLinkResourcesOperations
3839
:ivar key_values: KeyValuesOperations operations
39-
:vartype key_values: app_configuration_management_client.operations.KeyValuesOperations
40+
:vartype key_values: azure.mgmt.appconfiguration.operations.KeyValuesOperations
4041
:param credential: Credential needed for the client to connect to Azure.
4142
:type credential: ~azure.core.credentials.TokenCredential
4243
:param subscription_id: The Microsoft Azure subscription ID.
4344
:type subscription_id: str
44-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
45+
:param base_url: Service URL. Default value is "https://management.azure.com".
4546
:type base_url: str
47+
:keyword api_version: Api Version. Default value is "2022-05-01". Note that overriding this
48+
default value may result in unsupported behavior.
49+
:paramtype api_version: str
4650
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4751
Retry-After header is present.
4852
"""
@@ -70,7 +74,7 @@ def __init__(
7074

7175
def _send_request(
7276
self,
73-
request, # type: HttpRequest
77+
request: HttpRequest,
7478
**kwargs: Any
7579
) -> HttpResponse:
7680
"""Runs the network request through the client's chained policies.

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from azure.core.credentials import TokenCredential
2020

2121

22-
class AppConfigurationManagementClientConfiguration(Configuration):
22+
class AppConfigurationManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for AppConfigurationManagementClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
@@ -29,6 +29,9 @@ class AppConfigurationManagementClientConfiguration(Configuration):
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The Microsoft Azure subscription ID.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2022-05-01". Note that overriding this
33+
default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(
@@ -38,14 +41,16 @@ def __init__(
3841
**kwargs: Any
3942
) -> None:
4043
super(AppConfigurationManagementClientConfiguration, self).__init__(**kwargs)
44+
api_version = kwargs.pop('api_version', "2022-05-01") # type: str
45+
4146
if credential is None:
4247
raise ValueError("Parameter 'credential' must not be None.")
4348
if subscription_id is None:
4449
raise ValueError("Parameter 'subscription_id' must not be None.")
4550

4651
self.credential = credential
4752
self.subscription_id = subscription_id
48-
self.api_version = "2021-10-01-preview"
53+
self.api_version = api_version
4954
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5055
kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION))
5156
self._configure(**kwargs)

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-10-01-preview",
3-
"total_api_version_list": ["2021-10-01-preview"],
2+
"chosen_version": "2022-05-01",
3+
"total_api_version_list": ["2022-05-01"],
44
"client": {
55
"name": "AppConfigurationManagementClient",
66
"filename": "_app_configuration_management_client",
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppConfigurationManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppConfigurationManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppConfigurationManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppConfigurationManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {

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

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

9-
VERSION = "2.1.0b2"
9+
VERSION = "2.1.0"

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, Awaitable, Optional, TYPE_CHECKING
10+
from typing import Any, Awaitable, TYPE_CHECKING
11+
12+
from msrest import Deserializer, Serializer
1113

1214
from azure.core.rest import AsyncHttpResponse, HttpRequest
1315
from azure.mgmt.core import AsyncARMPipelineClient
14-
from msrest import Deserializer, Serializer
1516

1617
from .. import models
1718
from ._configuration import AppConfigurationManagementClientConfiguration
@@ -26,23 +27,26 @@ class AppConfigurationManagementClient:
2627
2728
:ivar configuration_stores: ConfigurationStoresOperations operations
2829
:vartype configuration_stores:
29-
app_configuration_management_client.aio.operations.ConfigurationStoresOperations
30+
azure.mgmt.appconfiguration.aio.operations.ConfigurationStoresOperations
3031
:ivar operations: Operations operations
31-
:vartype operations: app_configuration_management_client.aio.operations.Operations
32+
:vartype operations: azure.mgmt.appconfiguration.aio.operations.Operations
3233
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
3334
:vartype private_endpoint_connections:
34-
app_configuration_management_client.aio.operations.PrivateEndpointConnectionsOperations
35+
azure.mgmt.appconfiguration.aio.operations.PrivateEndpointConnectionsOperations
3536
:ivar private_link_resources: PrivateLinkResourcesOperations operations
3637
:vartype private_link_resources:
37-
app_configuration_management_client.aio.operations.PrivateLinkResourcesOperations
38+
azure.mgmt.appconfiguration.aio.operations.PrivateLinkResourcesOperations
3839
:ivar key_values: KeyValuesOperations operations
39-
:vartype key_values: app_configuration_management_client.aio.operations.KeyValuesOperations
40+
:vartype key_values: azure.mgmt.appconfiguration.aio.operations.KeyValuesOperations
4041
:param credential: Credential needed for the client to connect to Azure.
4142
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
4243
:param subscription_id: The Microsoft Azure subscription ID.
4344
:type subscription_id: str
44-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
45+
:param base_url: Service URL. Default value is "https://management.azure.com".
4546
:type base_url: str
47+
:keyword api_version: Api Version. Default value is "2022-05-01". Note that overriding this
48+
default value may result in unsupported behavior.
49+
:paramtype api_version: str
4650
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4751
Retry-After header is present.
4852
"""

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from azure.core.credentials_async import AsyncTokenCredential
2020

2121

22-
class AppConfigurationManagementClientConfiguration(Configuration):
22+
class AppConfigurationManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for AppConfigurationManagementClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
@@ -29,6 +29,9 @@ class AppConfigurationManagementClientConfiguration(Configuration):
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The Microsoft Azure subscription ID.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2022-05-01". Note that overriding this
33+
default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(
@@ -38,14 +41,16 @@ def __init__(
3841
**kwargs: Any
3942
) -> None:
4043
super(AppConfigurationManagementClientConfiguration, self).__init__(**kwargs)
44+
api_version = kwargs.pop('api_version', "2022-05-01") # type: str
45+
4146
if credential is None:
4247
raise ValueError("Parameter 'credential' must not be None.")
4348
if subscription_id is None:
4449
raise ValueError("Parameter 'subscription_id' must not be None.")
4550

4651
self.credential = credential
4752
self.subscription_id = subscription_id
48-
self.api_version = "2021-10-01-preview"
53+
self.api_version = api_version
4954
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5055
kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION))
5156
self._configure(**kwargs)

0 commit comments

Comments
 (0)