Skip to content

Commit f08609c

Browse files
Azure CLI BotSDKAutojianyexi
authored
[AutoRelease] t2-resource-2021-07-19-61255 (#19863)
* CodeGen from PR 13945 in Azure/azure-rest-api-specs Private links (#13945) * remove name validation from client side * remove name check from deploymentScripts swagger * create privateLinks swagger * add all private link commands * add PLA and RMPL capabilities to swagger * update privateLink swagger * add rmpl to custom words * fix semantic validation errors * update resourcemanager readme * fix semanticvalidation errors * add correct resourceGroupName param * add examples for privateLink * fix prettier errors * Update specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json Co-authored-by: JianyeXi <[email protected]> * fix ModelValidation Errors * fix prettier errors * fix prettier errors * add read only to properties * add resource extension * add example to privateLink * fix some prettier issues * ran prettiercheck * fix errors * semanticValidation errors * add suppression to readme * add 204 delete operation * MissingType Object fix * add suppresion for list operation * fix prettier errors * fix package tag for privatelinks Co-authored-by: JianyeXi <[email protected]> * version,CHANGELOG * test Co-authored-by: SDKAuto <[email protected]> Co-authored-by: JianyeXi <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 85ce0e9 commit f08609c

File tree

70 files changed

+328
-295
lines changed

Some content is hidden

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

70 files changed

+328
-295
lines changed

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

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

3+
## 19.0.0 (2021-07-19)
4+
5+
**Breaking changes**
6+
7+
- Operation SubscriptionFeatureRegistrationsOperations.create_or_update has a new signature
8+
- Operation SubscriptionFeatureRegistrationsOperations.delete has a new signature
9+
- Operation SubscriptionFeatureRegistrationsOperations.get has a new signature
10+
- Operation SubscriptionFeatureRegistrationsOperations.list_by_subscription has a new signature
11+
312
## 18.1.0 (2021-07-13)
413

514
**Features**
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.2",
2+
"autorest": "3.4.5",
33
"use": [
4-
"@autorest/[email protected].1",
4+
"@autorest/[email protected].4",
55
"@autorest/[email protected]"
66
],
7-
"commit": "67edac68c3362c820786f650333b731a4ad0da57",
7+
"commit": "19707b7e63b29c7b89335f832a4eea104c64aebf",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/resources/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].1 --use=@autorest/[email protected] --version=3.4.2",
9+
"autorest_command": "autorest specification/resources/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].4 --use=@autorest/[email protected] --version=3.4.5",
1010
"readme": "specification/resources/resource-manager/readme.md"
1111
}

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 = "18.1.0"
8+
VERSION = "19.0.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/_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 = "18.1.0"
8+
VERSION = "19.0.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2019_10_01_preview/_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 = "18.1.0"
9+
VERSION = "19.0.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts/v2020_10_01/_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 = "18.1.0"
9+
VERSION = "19.0.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_configuration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,23 @@ class FeatureClientConfiguration(Configuration):
3232
:type credential: ~azure.core.credentials.TokenCredential
3333
:param subscription_id: The Azure subscription ID.
3434
:type subscription_id: str
35-
:param provider_namespace: The provider namespace.
36-
:type provider_namespace: str
3735
"""
3836

3937
def __init__(
4038
self,
4139
credential, # type: "TokenCredential"
4240
subscription_id, # type: str
43-
provider_namespace, # type: str
4441
**kwargs # type: Any
4542
):
4643
# type: (...) -> None
4744
if credential is None:
4845
raise ValueError("Parameter 'credential' must not be None.")
4946
if subscription_id is None:
5047
raise ValueError("Parameter 'subscription_id' must not be None.")
51-
if provider_namespace is None:
52-
raise ValueError("Parameter 'provider_namespace' must not be None.")
5348
super(FeatureClientConfiguration, self).__init__(**kwargs)
5449

5550
self.credential = credential
5651
self.subscription_id = subscription_id
57-
self.provider_namespace = provider_namespace
5852
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5953
kwargs.setdefault('sdk_moniker', 'azure-mgmt-resource/{}'.format(VERSION))
6054
self._configure(**kwargs)

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_feature_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ class FeatureClient(FeatureClientOperationsMixin, MultiApiClientMixin, _SDKClien
4848
:type credential: ~azure.core.credentials.TokenCredential
4949
:param subscription_id: The Azure subscription ID.
5050
:type subscription_id: str
51-
:param provider_namespace: The provider namespace.
52-
:type provider_namespace: str
5351
:param api_version: API version to use if no profile is provided, or if missing in profile.
5452
:type api_version: str
5553
:param base_url: Service URL
@@ -71,15 +69,14 @@ def __init__(
7169
self,
7270
credential, # type: "TokenCredential"
7371
subscription_id, # type: str
74-
provider_namespace, # type: str
7572
api_version=None, # type: Optional[str]
7673
base_url=None, # type: Optional[str]
7774
profile=KnownProfiles.default, # type: KnownProfiles
7875
**kwargs # type: Any
7976
):
8077
if not base_url:
8178
base_url = 'https://management.azure.com'
82-
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
79+
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
8380
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8481
super(FeatureClient, self).__init__(
8582
api_version=api_version,

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_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 = "18.1.0"
8+
VERSION = "19.0.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/aio/_configuration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,22 @@ class FeatureClientConfiguration(Configuration):
3030
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3131
:param subscription_id: The Azure subscription ID.
3232
:type subscription_id: str
33-
:param provider_namespace: The provider namespace.
34-
:type provider_namespace: str
3533
"""
3634

3735
def __init__(
3836
self,
3937
credential: "AsyncTokenCredential",
4038
subscription_id: str,
41-
provider_namespace: str,
4239
**kwargs # type: Any
4340
) -> None:
4441
if credential is None:
4542
raise ValueError("Parameter 'credential' must not be None.")
4643
if subscription_id is None:
4744
raise ValueError("Parameter 'subscription_id' must not be None.")
48-
if provider_namespace is None:
49-
raise ValueError("Parameter 'provider_namespace' must not be None.")
5045
super(FeatureClientConfiguration, self).__init__(**kwargs)
5146

5247
self.credential = credential
5348
self.subscription_id = subscription_id
54-
self.provider_namespace = provider_namespace
5549
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5650
kwargs.setdefault('sdk_moniker', 'azure-mgmt-resource/{}'.format(VERSION))
5751
self._configure(**kwargs)

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/aio/_feature_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class FeatureClient(FeatureClientOperationsMixin, MultiApiClientMixin, _SDKClien
4646
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
4747
:param subscription_id: The Azure subscription ID.
4848
:type subscription_id: str
49-
:param provider_namespace: The provider namespace.
50-
:type provider_namespace: str
5149
:param api_version: API version to use if no profile is provided, or if missing in profile.
5250
:type api_version: str
5351
:param base_url: Service URL
@@ -69,15 +67,14 @@ def __init__(
6967
self,
7068
credential: "AsyncTokenCredential",
7169
subscription_id: str,
72-
provider_namespace: str,
7370
api_version: Optional[str] = None,
7471
base_url: Optional[str] = None,
7572
profile: KnownProfiles = KnownProfiles.default,
7673
**kwargs # type: Any
7774
) -> None:
7875
if not base_url:
7976
base_url = 'https://management.azure.com'
80-
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
77+
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
8178
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
8279
super(FeatureClient, self).__init__(
8380
api_version=api_version,

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_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 = "18.1.0"
9+
VERSION = "19.0.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/_configuration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,23 @@ class FeatureClientConfiguration(Configuration):
3131
:type credential: ~azure.core.credentials.TokenCredential
3232
:param subscription_id: The Azure subscription ID.
3333
:type subscription_id: str
34-
:param provider_namespace: The provider namespace.
35-
:type provider_namespace: str
3634
"""
3735

3836
def __init__(
3937
self,
4038
credential, # type: "TokenCredential"
4139
subscription_id, # type: str
42-
provider_namespace, # type: str
4340
**kwargs # type: Any
4441
):
4542
# type: (...) -> None
4643
if credential is None:
4744
raise ValueError("Parameter 'credential' must not be None.")
4845
if subscription_id is None:
4946
raise ValueError("Parameter 'subscription_id' must not be None.")
50-
if provider_namespace is None:
51-
raise ValueError("Parameter 'provider_namespace' must not be None.")
5247
super(FeatureClientConfiguration, self).__init__(**kwargs)
5348

5449
self.credential = credential
5550
self.subscription_id = subscription_id
56-
self.provider_namespace = provider_namespace
5751
self.api_version = "2021-07-01"
5852
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5953
kwargs.setdefault('sdk_moniker', 'mgmt-resource/{}'.format(VERSION))

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/_feature_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,20 @@ class FeatureClient(FeatureClientOperationsMixin):
3636
:type credential: ~azure.core.credentials.TokenCredential
3737
:param subscription_id: The Azure subscription ID.
3838
:type subscription_id: str
39-
:param provider_namespace: The provider namespace.
40-
:type provider_namespace: str
4139
:param str base_url: Service URL
4240
"""
4341

4442
def __init__(
4543
self,
4644
credential, # type: "TokenCredential"
4745
subscription_id, # type: str
48-
provider_namespace, # type: str
4946
base_url=None, # type: Optional[str]
5047
**kwargs # type: Any
5148
):
5249
# type: (...) -> None
5350
if not base_url:
5451
base_url = 'https://management.azure.com'
55-
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
52+
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
5653
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5754

5855
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
@@ -77,7 +74,6 @@ def _send_request(self, http_request, **kwargs):
7774
"""
7875
path_format_arguments = {
7976
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
80-
'providerNamespace': self._serialize.url("self._config.provider_namespace", self._config.provider_namespace, 'str'),
8177
}
8278
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
8379
stream = kwargs.pop("stream", True)

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/_metadata.json

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@
2626
"description": "The Azure subscription ID.",
2727
"docstring_type": "str",
2828
"required": true
29-
},
30-
"provider_namespace": {
31-
"signature": "provider_namespace, # type: str",
32-
"description": "The provider namespace.",
33-
"docstring_type": "str",
34-
"required": true
3529
}
3630
},
3731
"async": {
@@ -46,17 +40,11 @@
4640
"description": "The Azure subscription ID.",
4741
"docstring_type": "str",
4842
"required": true
49-
},
50-
"provider_namespace": {
51-
"signature": "provider_namespace: str,",
52-
"description": "The provider namespace.",
53-
"docstring_type": "str",
54-
"required": true
5543
}
5644
},
5745
"constant": {
5846
},
59-
"call": "credential, subscription_id, provider_namespace",
47+
"call": "credential, subscription_id",
6048
"service_client_specific": {
6149
"sync": {
6250
"api_version": {

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/_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 = "18.1.0"
9+
VERSION = "19.0.0"

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/aio/_configuration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,22 @@ class FeatureClientConfiguration(Configuration):
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The Azure subscription ID.
3131
:type subscription_id: str
32-
:param provider_namespace: The provider namespace.
33-
:type provider_namespace: str
3432
"""
3533

3634
def __init__(
3735
self,
3836
credential: "AsyncTokenCredential",
3937
subscription_id: str,
40-
provider_namespace: str,
4138
**kwargs: Any
4239
) -> None:
4340
if credential is None:
4441
raise ValueError("Parameter 'credential' must not be None.")
4542
if subscription_id is None:
4643
raise ValueError("Parameter 'subscription_id' must not be None.")
47-
if provider_namespace is None:
48-
raise ValueError("Parameter 'provider_namespace' must not be None.")
4944
super(FeatureClientConfiguration, self).__init__(**kwargs)
5045

5146
self.credential = credential
5247
self.subscription_id = subscription_id
53-
self.provider_namespace = provider_namespace
5448
self.api_version = "2021-07-01"
5549
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5650
kwargs.setdefault('sdk_moniker', 'mgmt-resource/{}'.format(VERSION))

sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2021_07_01/aio/_feature_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,19 @@ class FeatureClient(FeatureClientOperationsMixin):
3434
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3535
:param subscription_id: The Azure subscription ID.
3636
:type subscription_id: str
37-
:param provider_namespace: The provider namespace.
38-
:type provider_namespace: str
3937
:param str base_url: Service URL
4038
"""
4139

4240
def __init__(
4341
self,
4442
credential: "AsyncTokenCredential",
4543
subscription_id: str,
46-
provider_namespace: str,
4744
base_url: Optional[str] = None,
4845
**kwargs: Any
4946
) -> None:
5047
if not base_url:
5148
base_url = 'https://management.azure.com'
52-
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
49+
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
5350
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
5451

5552
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
@@ -73,7 +70,6 @@ async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> Async
7370
"""
7471
path_format_arguments = {
7572
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
76-
'providerNamespace': self._serialize.url("self._config.provider_namespace", self._config.provider_namespace, 'str'),
7773
}
7874
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
7975
stream = kwargs.pop("stream", True)

0 commit comments

Comments
 (0)