Skip to content

Commit 026f587

Browse files
Azure CLI BotSDKAutoRAY-316
authored
[AutoRelease] t2-appconfiguration-2021-06-21-28568 (#19359)
* CodeGen from PR 14452 in Azure/azure-rest-api-specs Added missing updatable properties in ConfigurationStorePropertiesUpdateParameters (#14452) Co-authored-by: jimmypc92 <jimmypc92> * version,CHANGELOG * test * test config * test config * test config Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed <[email protected]>
1 parent 53d3f97 commit 026f587

31 files changed

+2072
-3853
lines changed

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

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

3+
## 2.0.0 (2021-06-21)
4+
5+
**Features**
6+
7+
- Model OperationDefinition has a new parameter properties
8+
- Model OperationDefinition has a new parameter is_data_action
9+
- Model OperationDefinition has a new parameter origin
10+
- Model KeyValue has a new parameter id
11+
- Model KeyValue has a new parameter type
12+
- Model KeyValue has a new parameter name
13+
- Model ConfigurationStore has a new parameter system_data
14+
- Model ConfigurationStore has a new parameter disable_local_auth
15+
- Model ConfigurationStoreUpdateParameters has a new parameter disable_local_auth
16+
- Added operation group KeyValuesOperations
17+
18+
**Breaking changes**
19+
20+
- Model Resource no longer has parameter location
21+
- Model Resource no longer has parameter tags
22+
- Removed operation ConfigurationStoresOperations.list_key_value
23+
324
## 1.0.1 (2020-09-18)
425

526
**Bug fix**

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.2",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "8295604d233d427afceff05bd5ed36d0cb7ae572",
8+
"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/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.2",
10+
"readme": "specification/appconfiguration/resource-manager/readme.md"
11+
}

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import AppConfigurationManagementClientConfiguration
2122
from .operations import ConfigurationStoresOperations
2223
from .operations import Operations
2324
from .operations import PrivateEndpointConnectionsOperations
2425
from .operations import PrivateLinkResourcesOperations
26+
from .operations import KeyValuesOperations
2527
from . import models
2628

2729

@@ -36,6 +38,8 @@ class AppConfigurationManagementClient(object):
3638
:vartype private_endpoint_connections: app_configuration_management_client.operations.PrivateEndpointConnectionsOperations
3739
:ivar private_link_resources: PrivateLinkResourcesOperations operations
3840
:vartype private_link_resources: app_configuration_management_client.operations.PrivateLinkResourcesOperations
41+
:ivar key_values: KeyValuesOperations operations
42+
:vartype key_values: app_configuration_management_client.operations.KeyValuesOperations
3943
:param credential: Credential needed for the client to connect to Azure.
4044
:type credential: ~azure.core.credentials.TokenCredential
4145
:param subscription_id: The Microsoft Azure subscription ID.
@@ -70,6 +74,26 @@ def __init__(
7074
self._client, self._config, self._serialize, self._deserialize)
7175
self.private_link_resources = PrivateLinkResourcesOperations(
7276
self._client, self._config, self._serialize, self._deserialize)
77+
self.key_values = KeyValuesOperations(
78+
self._client, self._config, self._serialize, self._deserialize)
79+
80+
def _send_request(self, http_request, **kwargs):
81+
# type: (HttpRequest, Any) -> HttpResponse
82+
"""Runs the network request through the client's chained policies.
83+
84+
:param http_request: The network request you want to make. Required.
85+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
86+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
87+
:return: The response of your network call. Does not do error handling on your response.
88+
:rtype: ~azure.core.pipeline.transport.HttpResponse
89+
"""
90+
path_format_arguments = {
91+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
92+
}
93+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
94+
stream = kwargs.pop("stream", True)
95+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
96+
return pipeline_response.http_response
7397

7498
def close(self):
7599
# type: () -> None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2020-06-01"
51+
self.api_version = "2021-03-01-preview"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION))
5454
self._configure(**kwargs)
Lines changed: 68 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,107 @@
11
{
2-
"chosen_version": "2019-11-01-preview",
3-
"total_api_version_list": ["2019-11-01-preview"],
2+
"chosen_version": "2021-03-01-preview",
3+
"total_api_version_list": ["2021-03-01-preview"],
44
"client": {
55
"name": "AppConfigurationManagementClient",
66
"filename": "_app_configuration_management_client",
7-
"description": "AppConfigurationManagementClient."
7+
"description": "AppConfigurationManagementClient.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"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\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"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\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
815
},
916
"global_parameters": {
10-
"sync_method": {
17+
"sync": {
1118
"credential": {
12-
"method_signature": "credential, # type: \"TokenCredential\"",
19+
"signature": "credential, # type: \"TokenCredential\"",
1320
"description": "Credential needed for the client to connect to Azure.",
1421
"docstring_type": "~azure.core.credentials.TokenCredential",
1522
"required": true
1623
},
1724
"subscription_id": {
18-
"method_signature": "subscription_id, # type: str",
25+
"signature": "subscription_id, # type: str",
1926
"description": "The Microsoft Azure subscription ID.",
2027
"docstring_type": "str",
2128
"required": true
2229
}
2330
},
24-
"async_method": {
31+
"async": {
2532
"credential": {
26-
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
33+
"signature": "credential: \"AsyncTokenCredential\",",
2734
"description": "Credential needed for the client to connect to Azure.",
2835
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
2936
"required": true
3037
},
3138
"subscription_id": {
32-
"method_signature": "subscription_id, # type: str",
39+
"signature": "subscription_id: str,",
3340
"description": "The Microsoft Azure subscription ID.",
3441
"docstring_type": "str",
3542
"required": true
3643
}
3744
},
3845
"constant": {
3946
},
40-
"call": "credential, subscription_id"
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
4190
},
4291
"config": {
4392
"credential": true,
44-
"credential_scopes": ["https://management.azure.com/.default"]
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
98+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
4599
},
46100
"operation_groups": {
47101
"configuration_stores": "ConfigurationStoresOperations",
48102
"operations": "Operations",
49103
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
50-
"private_link_resources": "PrivateLinkResourcesOperations"
51-
},
52-
"operation_mixins": {
53-
},
54-
"sync_imports": "None",
55-
"async_imports": "None"
104+
"private_link_resources": "PrivateLinkResourcesOperations",
105+
"key_values": "KeyValuesOperations"
106+
}
56107
}

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 = "1.0.1"
9+
VERSION = "2.0.0"

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -20,6 +21,7 @@
2021
from .operations import Operations
2122
from .operations import PrivateEndpointConnectionsOperations
2223
from .operations import PrivateLinkResourcesOperations
24+
from .operations import KeyValuesOperations
2325
from .. import models
2426

2527

@@ -34,6 +36,8 @@ class AppConfigurationManagementClient(object):
3436
:vartype private_endpoint_connections: app_configuration_management_client.aio.operations.PrivateEndpointConnectionsOperations
3537
:ivar private_link_resources: PrivateLinkResourcesOperations operations
3638
:vartype private_link_resources: app_configuration_management_client.aio.operations.PrivateLinkResourcesOperations
39+
:ivar key_values: KeyValuesOperations operations
40+
:vartype key_values: app_configuration_management_client.aio.operations.KeyValuesOperations
3741
:param credential: Credential needed for the client to connect to Azure.
3842
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3943
:param subscription_id: The Microsoft Azure subscription ID.
@@ -67,6 +71,25 @@ def __init__(
6771
self._client, self._config, self._serialize, self._deserialize)
6872
self.private_link_resources = PrivateLinkResourcesOperations(
6973
self._client, self._config, self._serialize, self._deserialize)
74+
self.key_values = KeyValuesOperations(
75+
self._client, self._config, self._serialize, self._deserialize)
76+
77+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
78+
"""Runs the network request through the client's chained policies.
79+
80+
:param http_request: The network request you want to make. Required.
81+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
82+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
83+
:return: The response of your network call. Does not do error handling on your response.
84+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
85+
"""
86+
path_format_arguments = {
87+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
88+
}
89+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
90+
stream = kwargs.pop("stream", True)
91+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
92+
return pipeline_response.http_response
7093

7194
async def close(self) -> None:
7295
await self._client.close()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2020-06-01"
48+
self.api_version = "2021-03-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
from ._operations import Operations
1111
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
1212
from ._private_link_resources_operations import PrivateLinkResourcesOperations
13+
from ._key_values_operations import KeyValuesOperations
1314

1415
__all__ = [
1516
'ConfigurationStoresOperations',
1617
'Operations',
1718
'PrivateEndpointConnectionsOperations',
1819
'PrivateLinkResourcesOperations',
20+
'KeyValuesOperations',
1921
]

0 commit comments

Comments
 (0)