Skip to content

Commit

Permalink
CodeGen from PR 16273 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Nguyentim/resources list top update (Azure#16273)

* removed support for `filter` + `top`

* rolled back `top` definition on resources_list

Co-authored-by: Tim Nguyen <you@example.com>
  • Loading branch information
SDKAuto and Tim Nguyen committed Oct 8, 2021
1 parent bd9a0ce commit ea9d7f8
Show file tree
Hide file tree
Showing 103 changed files with 11,349 additions and 120 deletions.
2 changes: 1 addition & 1 deletion sdk/resources/azure-mgmt-resource/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "c52d1e5eb3aae274b1fb7ebe1b16cabe233879e5",
"commit": "23b8c3e5ecc0a90bc89f93517d7f45ca0b6881d5",
"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.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/resources/resource-manager/readme.md"
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 = "20.0.0"
VERSION = "1.0.0b1"
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 = "20.0.0"
VERSION = "1.0.0b1"
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 = "20.0.0"
VERSION = "1.0.0b1"
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 = "20.0.0"
VERSION = "1.0.0b1"
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 = "20.0.0"
VERSION = "1.0.0b1"
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 = "20.0.0"
VERSION = "1.0.0b1"
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 = "20.0.0"
VERSION = "1.0.0b1"
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 = "20.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ class PolicyClient(MultiApiClientMixin, _SDKClient):
:type base_url: str
:param profile: A profile definition, from KnownProfiles to dict.
:type profile: azure.profiles.KnownProfiles
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""

DEFAULT_API_VERSION = '2021-06-01'
DEFAULT_API_VERSION = '2021-07-01'
_PROFILE_TAG = "azure.mgmt.resource.policy.PolicyClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
Expand Down Expand Up @@ -101,6 +102,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2019-09-01: :mod:`v2019_09_01.models<azure.mgmt.resource.policy.v2019_09_01.models>`
* 2020-09-01: :mod:`v2020_09_01.models<azure.mgmt.resource.policy.v2020_09_01.models>`
* 2021-06-01: :mod:`v2021_06_01.models<azure.mgmt.resource.policy.v2021_06_01.models>`
* 2021-07-01: :mod:`v2021_07_01.models<azure.mgmt.resource.policy.v2021_07_01.models>`
"""
if api_version == '2015-10-01-preview':
from .v2015_10_01_preview import models
Expand Down Expand Up @@ -135,6 +137,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2021-06-01':
from .v2021_06_01 import models
return models
elif api_version == '2021-07-01':
from .v2021_07_01 import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
Expand All @@ -143,12 +148,15 @@ def data_policy_manifests(self):
* 2020-09-01: :class:`DataPolicyManifestsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.DataPolicyManifestsOperations>`
* 2021-06-01: :class:`DataPolicyManifestsOperations<azure.mgmt.resource.policy.v2021_06_01.operations.DataPolicyManifestsOperations>`
* 2021-07-01: :class:`DataPolicyManifestsOperations<azure.mgmt.resource.policy.v2021_07_01.operations.DataPolicyManifestsOperations>`
"""
api_version = self._get_api_version('data_policy_manifests')
if api_version == '2020-09-01':
from .v2020_09_01.operations import DataPolicyManifestsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_01.operations import DataPolicyManifestsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import DataPolicyManifestsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'data_policy_manifests'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -168,6 +176,7 @@ def policy_assignments(self):
* 2019-09-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicyAssignmentsOperations>`
* 2020-09-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.PolicyAssignmentsOperations>`
* 2021-06-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2021_06_01.operations.PolicyAssignmentsOperations>`
* 2021-07-01: :class:`PolicyAssignmentsOperations<azure.mgmt.resource.policy.v2021_07_01.operations.PolicyAssignmentsOperations>`
"""
api_version = self._get_api_version('policy_assignments')
if api_version == '2015-10-01-preview':
Expand All @@ -192,6 +201,8 @@ def policy_assignments(self):
from .v2020_09_01.operations import PolicyAssignmentsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_01.operations import PolicyAssignmentsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import PolicyAssignmentsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_assignments'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -211,6 +222,7 @@ def policy_definitions(self):
* 2019-09-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicyDefinitionsOperations>`
* 2020-09-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.PolicyDefinitionsOperations>`
* 2021-06-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2021_06_01.operations.PolicyDefinitionsOperations>`
* 2021-07-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2021_07_01.operations.PolicyDefinitionsOperations>`
"""
api_version = self._get_api_version('policy_definitions')
if api_version == '2015-10-01-preview':
Expand All @@ -235,6 +247,8 @@ def policy_definitions(self):
from .v2020_09_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import PolicyDefinitionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_definitions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -245,16 +259,32 @@ def policy_exemptions(self):
* 2020-09-01: :class:`PolicyExemptionsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.PolicyExemptionsOperations>`
* 2021-06-01: :class:`PolicyExemptionsOperations<azure.mgmt.resource.policy.v2021_06_01.operations.PolicyExemptionsOperations>`
* 2021-07-01: :class:`PolicyExemptionsOperations<azure.mgmt.resource.policy.v2021_07_01.operations.PolicyExemptionsOperations>`
"""
api_version = self._get_api_version('policy_exemptions')
if api_version == '2020-09-01':
from .v2020_09_01.operations import PolicyExemptionsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_01.operations import PolicyExemptionsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import PolicyExemptionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_exemptions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def policy_pricings(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`PolicyPricingsOperations<azure.mgmt.resource.policy.v2021_07_01.operations.PolicyPricingsOperations>`
"""
api_version = self._get_api_version('policy_pricings')
if api_version == '2021-07-01':
from .v2021_07_01.operations import PolicyPricingsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_pricings'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def policy_set_definitions(self):
"""Instance depends on the API version:
Expand All @@ -267,6 +297,7 @@ def policy_set_definitions(self):
* 2019-09-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2019_09_01.operations.PolicySetDefinitionsOperations>`
* 2020-09-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2020_09_01.operations.PolicySetDefinitionsOperations>`
* 2021-06-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2021_06_01.operations.PolicySetDefinitionsOperations>`
* 2021-07-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2021_07_01.operations.PolicySetDefinitionsOperations>`
"""
api_version = self._get_api_version('policy_set_definitions')
if api_version == '2017-06-01-preview':
Expand All @@ -285,6 +316,8 @@ def policy_set_definitions(self):
from .v2020_09_01.operations import PolicySetDefinitionsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_01.operations import PolicySetDefinitionsOperations as OperationClass
elif api_version == '2021-07-01':
from .v2021_07_01.operations import PolicySetDefinitionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_set_definitions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Loading

0 comments on commit ea9d7f8

Please sign in to comment.