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

[AutoPR track2_azure-mgmt-resource] [Deployment Scripts] Swagger KPI fix: Make DS swagger match service side #7086

Closed
Closed
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
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/[email protected]",
"@autorest/[email protected]"
],
"commit": "19707b7e63b29c7b89335f832a4eea104c64aebf",
"commit": "78f788b3d3368ce07a7174f228a62e3d1f19a2ab",
"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/[email protected] --use=@autorest/[email protected] --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 = "19.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 = "19.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ class AzureCliScript(DeploymentScript):
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'outputs': {'readonly': True},
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'az_cli_version': {'required': True},
}
Expand Down Expand Up @@ -280,7 +279,6 @@ class ScriptConfigurationBase(msrest.serialization.Model):
"""

_validation = {
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
}

Expand Down Expand Up @@ -419,7 +417,6 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati
"""

_validation = {
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
Expand Down Expand Up @@ -551,7 +548,6 @@ class AzurePowerShellScript(DeploymentScript):
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'outputs': {'readonly': True},
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'az_power_shell_version': {'required': True},
}
Expand Down Expand Up @@ -659,7 +655,6 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf
"""

_validation = {
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ class AzureCliScript(DeploymentScript):
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'outputs': {'readonly': True},
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'az_cli_version': {'required': True},
}
Expand Down Expand Up @@ -305,7 +304,6 @@ class ScriptConfigurationBase(msrest.serialization.Model):
"""

_validation = {
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
}

Expand Down Expand Up @@ -457,7 +455,6 @@ class AzureCliScriptProperties(DeploymentScriptPropertiesBase, ScriptConfigurati
"""

_validation = {
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
Expand Down Expand Up @@ -602,7 +599,6 @@ class AzurePowerShellScript(DeploymentScript):
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
'outputs': {'readonly': True},
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'az_power_shell_version': {'required': True},
}
Expand Down Expand Up @@ -726,7 +722,6 @@ class AzurePowerShellScriptProperties(DeploymentScriptPropertiesBase, ScriptConf
"""

_validation = {
'script_content': {'max_length': 32000, 'min_length': 0},
'retention_interval': {'required': True},
'provisioning_state': {'readonly': True},
'status': {'readonly': True},
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 = "19.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 = "19.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 = "19.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 = "19.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 = "19.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 = "19.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class PolicyClient(MultiApiClientMixin, _SDKClient):
:type profile: azure.profiles.KnownProfiles
"""

DEFAULT_API_VERSION = '2020-09-01'
DEFAULT_API_VERSION = '2021-06-01'
_PROFILE_TAG = "azure.mgmt.resource.policy.PolicyClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
Expand Down Expand Up @@ -100,6 +100,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 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>`
* 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>`
"""
if api_version == '2015-10-01-preview':
from .v2015_10_01_preview import models
Expand Down Expand Up @@ -131,17 +132,23 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2020-09-01':
from .v2020_09_01 import models
return models
elif api_version == '2021-06-01':
from .v2021_06_01 import models
return models
raise ValueError("API version {} is not available".format(api_version))

@property
def data_policy_manifests(self):
"""Instance depends on the API version:

* 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>`
"""
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
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 @@ -160,6 +167,7 @@ def policy_assignments(self):
* 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>`
* 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>`
"""
api_version = self._get_api_version('policy_assignments')
if api_version == '2015-10-01-preview':
Expand All @@ -182,6 +190,8 @@ def policy_assignments(self):
from .v2019_09_01.operations import PolicyAssignmentsOperations as OperationClass
elif api_version == '2020-09-01':
from .v2020_09_01.operations import PolicyAssignmentsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_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 @@ -200,6 +210,7 @@ def policy_definitions(self):
* 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>`
* 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>`
"""
api_version = self._get_api_version('policy_definitions')
if api_version == '2015-10-01-preview':
Expand All @@ -222,6 +233,8 @@ def policy_definitions(self):
from .v2019_09_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2020-09-01':
from .v2020_09_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_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 @@ -231,10 +244,13 @@ def policy_exemptions(self):
"""Instance depends on the API version:

* 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>`
"""
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
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)))
Expand All @@ -250,6 +266,7 @@ def policy_set_definitions(self):
* 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>`
* 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>`
"""
api_version = self._get_api_version('policy_set_definitions')
if api_version == '2017-06-01-preview':
Expand All @@ -266,6 +283,8 @@ def policy_set_definitions(self):
from .v2019_09_01.operations import PolicySetDefinitionsOperations as OperationClass
elif api_version == '2020-09-01':
from .v2020_09_01.operations import PolicySetDefinitionsOperations as OperationClass
elif api_version == '2021-06-01':
from .v2021_06_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