Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoRelease] t2-resource-2021-07-19-61255 #19863

Merged
merged 3 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions sdk/resources/azure-mgmt-resource/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release History

## 19.0.0 (2021-07-19)

**Breaking changes**

- Operation SubscriptionFeatureRegistrationsOperations.create_or_update has a new signature
- Operation SubscriptionFeatureRegistrationsOperations.delete has a new signature
- Operation SubscriptionFeatureRegistrationsOperations.get has a new signature
- Operation SubscriptionFeatureRegistrationsOperations.list_by_subscription has a new signature

## 18.1.0 (2021-07-13)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/resources/azure-mgmt-resource/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.1",
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "67edac68c3362c820786f650333b731a4ad0da57",
"commit": "19707b7e63b29c7b89335f832a4eea104c64aebf",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"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/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/resources/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "19.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "19.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "19.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "19.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,23 @@ class FeatureClientConfiguration(Configuration):
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
"""

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
provider_namespace, # type: str
**kwargs # type: Any
):
# type: (...) -> None
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if provider_namespace is None:
raise ValueError("Parameter 'provider_namespace' must not be None.")
super(FeatureClientConfiguration, self).__init__(**kwargs)

self.credential = credential
self.subscription_id = subscription_id
self.provider_namespace = provider_namespace
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'azure-mgmt-resource/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class FeatureClient(FeatureClientOperationsMixin, MultiApiClientMixin, _SDKClien
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
:param api_version: API version to use if no profile is provided, or if missing in profile.
:type api_version: str
:param base_url: Service URL
Expand All @@ -71,15 +69,14 @@ def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
provider_namespace, # type: str
api_version=None, # type: Optional[str]
base_url=None, # type: Optional[str]
profile=KnownProfiles.default, # type: KnownProfiles
**kwargs # type: Any
):
if not base_url:
base_url = 'https://management.azure.com'
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
super(FeatureClient, self).__init__(
api_version=api_version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "19.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,22 @@ class FeatureClientConfiguration(Configuration):
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
"""

def __init__(
self,
credential: "AsyncTokenCredential",
subscription_id: str,
provider_namespace: str,
**kwargs # type: Any
) -> None:
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if provider_namespace is None:
raise ValueError("Parameter 'provider_namespace' must not be None.")
super(FeatureClientConfiguration, self).__init__(**kwargs)

self.credential = credential
self.subscription_id = subscription_id
self.provider_namespace = provider_namespace
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'azure-mgmt-resource/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class FeatureClient(FeatureClientOperationsMixin, MultiApiClientMixin, _SDKClien
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
:param api_version: API version to use if no profile is provided, or if missing in profile.
:type api_version: str
:param base_url: Service URL
Expand All @@ -69,15 +67,14 @@ def __init__(
self,
credential: "AsyncTokenCredential",
subscription_id: str,
provider_namespace: str,
api_version: Optional[str] = None,
base_url: Optional[str] = None,
profile: KnownProfiles = KnownProfiles.default,
**kwargs # type: Any
) -> None:
if not base_url:
base_url = 'https://management.azure.com'
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
super(FeatureClient, self).__init__(
api_version=api_version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "19.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,23 @@ class FeatureClientConfiguration(Configuration):
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
"""

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
provider_namespace, # type: str
**kwargs # type: Any
):
# type: (...) -> None
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if provider_namespace is None:
raise ValueError("Parameter 'provider_namespace' must not be None.")
super(FeatureClientConfiguration, self).__init__(**kwargs)

self.credential = credential
self.subscription_id = subscription_id
self.provider_namespace = provider_namespace
self.api_version = "2021-07-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-resource/{}'.format(VERSION))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,20 @@ class FeatureClient(FeatureClientOperationsMixin):
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
:param str base_url: Service URL
"""

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
provider_namespace, # type: str
base_url=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
if not base_url:
base_url = 'https://management.azure.com'
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
Expand All @@ -77,7 +74,6 @@ def _send_request(self, http_request, **kwargs):
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
'providerNamespace': self._serialize.url("self._config.provider_namespace", self._config.provider_namespace, 'str'),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
"description": "The Azure subscription ID.",
"docstring_type": "str",
"required": true
},
"provider_namespace": {
"signature": "provider_namespace, # type: str",
"description": "The provider namespace.",
"docstring_type": "str",
"required": true
}
},
"async": {
Expand All @@ -46,17 +40,11 @@
"description": "The Azure subscription ID.",
"docstring_type": "str",
"required": true
},
"provider_namespace": {
"signature": "provider_namespace: str,",
"description": "The provider namespace.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id, provider_namespace",
"call": "credential, subscription_id",
"service_client_specific": {
"sync": {
"api_version": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "18.1.0"
VERSION = "19.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,22 @@ class FeatureClientConfiguration(Configuration):
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
"""

def __init__(
self,
credential: "AsyncTokenCredential",
subscription_id: str,
provider_namespace: str,
**kwargs: Any
) -> None:
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if provider_namespace is None:
raise ValueError("Parameter 'provider_namespace' must not be None.")
super(FeatureClientConfiguration, self).__init__(**kwargs)

self.credential = credential
self.subscription_id = subscription_id
self.provider_namespace = provider_namespace
self.api_version = "2021-07-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-resource/{}'.format(VERSION))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,19 @@ class FeatureClient(FeatureClientOperationsMixin):
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The Azure subscription ID.
:type subscription_id: str
:param provider_namespace: The provider namespace.
:type provider_namespace: str
:param str base_url: Service URL
"""

def __init__(
self,
credential: "AsyncTokenCredential",
subscription_id: str,
provider_namespace: str,
base_url: Optional[str] = None,
**kwargs: Any
) -> None:
if not base_url:
base_url = 'https://management.azure.com'
self._config = FeatureClientConfiguration(credential, subscription_id, provider_namespace, **kwargs)
self._config = FeatureClientConfiguration(credential, subscription_id, **kwargs)
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

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