Skip to content

Commit

Permalink
[AutoPR] resources/resource-manager (#8801)
Browse files Browse the repository at this point in the history
* Generated from 364d83c662c2e60c49f6655ee89095a4eb33385e (#8452)

update filter description for list resources

* [AutoPR resources/resource-manager] Swagger specifications for 2019-10-01 Tags API for resources and subscriptions (#8800)

* Generated from e4929b3363813f62714b406ce017135e34ecf362

Execute prettier to reorganize the file.

* Generated from 562d32f6526c82502630620571acb3d6bb1ce6ae

Pull request comments related fixes.

* Generated from fb809c0c595515c7bc0dbf4e1e0411dd16db17e5

Use scope to support nested resources for tags.

* Generated from 7ca5f733ae37ff79d588cd20a8a0c115115ac15e

Combine tracked resource and subscription apis for tags.

* Generated from a256604e04531c072d85e971092f7dd1e1ce970b

Utilize the shared parameters, and update the examples.

* Generated from 96c0059cc3c6a54103875adb8f5fcf0efb2f2dea

Removing "required" from TagPatchRequest as getting R2016 error.

* Generated from d12d04614b83411331445ee6a43404cca03d62f5

Collapse TagRequest and TagResponse into TagsResource.

* Generated from 21886c6890f451f9ad4c90881f5a197ea50ebed1

Removed 404 response as covered in default scenario, as well updated corresponding examples.

* Generated from 21886c6890f451f9ad4c90881f5a197ea50ebed1

Removed 404 response as covered in default scenario, as well updated corresponding examples.

* regenerated

* history and version

* rerecorded one of the tests

* rerecorded

* regenerated last test

* rerecorded

* rerecorded again

* rerecorded again and again

* fixed test
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Dec 7, 2019
1 parent dd61ed2 commit 055031a
Show file tree
Hide file tree
Showing 41 changed files with 16,183 additions and 3,522 deletions.
23 changes: 23 additions & 0 deletions sdk/resources/azure-mgmt-resource/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@
Release History
===============

7.0.0 (2019-12-07)
++++++++++++++++++

**Features**

- Model TenantIdDescription has a new parameter display_name
- Model TenantIdDescription has a new parameter domains
- Model Application has a new parameter ui_definition_uri
- Model ApplicationPatchable has a new parameter ui_definition_uri

**Breaking changes**

- Operation DeploymentsOperations.create_or_update_at_tenant_scope has a new signature
- Operation DeploymentsOperations.create_or_update_at_management_group_scope has a new signature
- Operation DeploymentsOperations.validate_at_management_group_scope has a new signature
- Operation DeploymentsOperations.validate_at_tenant_scope has a new signature
- Model PolicySetDefinition no longer has parameter policy_definition_groups
- Model Subscription no longer has parameter managed_by_tenants
- Model DeploymentValidateResult no longer has parameter error
- Removed operation DeploymentsOperations.what_if
- Removed operation DeploymentsOperations.what_if_at_subscription_scope
- Model PolicyDefinitionReference has a new signature

6.0.0 (2019-11-01)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ def list_operations(self, custom_headers=None, raw=False, **operation_config):
mixin_instance.config = self.config
mixin_instance._serialize = Serializer(self._models_dict(api_version))
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
mixin_instance.api_version = api_version
return mixin_instance.list_operations(custom_headers, raw, **operation_config)
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PolicyClient(MultiApiClientMixin, SDKClient):
:type profile: azure.profiles.KnownProfiles
"""

DEFAULT_API_VERSION = '2019-09-01'
DEFAULT_API_VERSION = '2019-06-01'
_PROFILE_TAG = "azure.mgmt.resource.policy.PolicyClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
Expand Down Expand Up @@ -80,7 +80,6 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2018-05-01: :mod:`v2018_05_01.models<azure.mgmt.resource.policy.v2018_05_01.models>`
* 2019-01-01: :mod:`v2019_01_01.models<azure.mgmt.resource.policy.v2019_01_01.models>`
* 2019-06-01: :mod:`v2019_06_01.models<azure.mgmt.resource.policy.v2019_06_01.models>`
* 2019-09-01: :mod:`v2019_09_01.models<azure.mgmt.resource.policy.v2019_09_01.models>`
"""
if api_version == '2015-10-01-preview':
from .v2015_10_01_preview import models
Expand All @@ -106,9 +105,6 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2019-06-01':
from .v2019_06_01 import models
return models
elif api_version == '2019-09-01':
from .v2019_09_01 import models
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))

@property
Expand All @@ -123,7 +119,6 @@ def policy_assignments(self):
* 2018-05-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2018_05_01.operations.PolicyAssignmentsOperations>`
* 2019-01-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2019_01_01.operations.PolicyAssignmentsOperations>`
* 2019-06-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2019_06_01.operations.PolicyAssignmentsOperations>`
* 2019-09-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicyAssignmentsOperations>`
"""
api_version = self._get_api_version('policy_assignments')
if api_version == '2015-10-01-preview':
Expand All @@ -142,8 +137,6 @@ def policy_assignments(self):
from .v2019_01_01.operations import PolicyAssignmentsOperations as OperationClass
elif api_version == '2019-06-01':
from .v2019_06_01.operations import PolicyAssignmentsOperations as OperationClass
elif api_version == '2019-09-01':
from .v2019_09_01.operations import PolicyAssignmentsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -160,7 +153,6 @@ def policy_definitions(self):
* 2018-05-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2018_05_01.operations.PolicyDefinitionsOperations>`
* 2019-01-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2019_01_01.operations.PolicyDefinitionsOperations>`
* 2019-06-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2019_06_01.operations.PolicyDefinitionsOperations>`
* 2019-09-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicyDefinitionsOperations>`
"""
api_version = self._get_api_version('policy_definitions')
if api_version == '2015-10-01-preview':
Expand All @@ -179,8 +171,6 @@ def policy_definitions(self):
from .v2019_01_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2019-06-01':
from .v2019_06_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2019-09-01':
from .v2019_09_01.operations import PolicyDefinitionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -194,7 +184,6 @@ def policy_set_definitions(self):
* 2018-05-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2018_05_01.operations.PolicySetDefinitionsOperations>`
* 2019-01-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2019_01_01.operations.PolicySetDefinitionsOperations>`
* 2019-06-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2019_06_01.operations.PolicySetDefinitionsOperations>`
* 2019-09-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicySetDefinitionsOperations>`
"""
api_version = self._get_api_version('policy_set_definitions')
if api_version == '2017-06-01-preview':
Expand All @@ -207,8 +196,6 @@ def policy_set_definitions(self):
from .v2019_01_01.operations import PolicySetDefinitionsOperations as OperationClass
elif api_version == '2019-06-01':
from .v2019_06_01.operations import PolicySetDefinitionsOperations as OperationClass
elif api_version == '2019-09-01':
from .v2019_09_01.operations import PolicySetDefinitionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from .v2019_09_01.models import *
from .v2019_06_01.models import *
Loading

0 comments on commit 055031a

Please sign in to comment.