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] [resources] update python config #3751

Closed
wants to merge 1 commit into from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions sdk/resources/azure-mgmt-resource/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "c183bb012de8e9e1d0d2e67a0994748df4747d2c",
"commit": "de6b15328b01e6dbf4a29405bbe4af3c5469b958",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.4.12",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/resources/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.12 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/resources/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.12 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"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 = "23.1.0b1"
VERSION = "0.1.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 = "23.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "23.1.0b1"
VERSION = "0.1.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 = "23.1.0b1"
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 = "23.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "23.1.0b1"
VERSION = "0.1.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 = "23.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ def __init__(self, **kwargs: Any) -> None:
class DenySettings(_serialization.Model):
"""Defines how resources deployed by the deployment stack are locked.

:ivar mode: denySettings Mode. Known values are: "denyDelete", "denyWriteAndDelete", and
"none".
All required parameters must be populated in order to send to Azure.

:ivar mode: denySettings Mode. Required. Known values are: "denyDelete", "denyWriteAndDelete",
and "none".
:vartype mode: str or
~azure.mgmt.resource.deploymentstacks.v2022_08_01_preview.models.DenySettingsMode
:ivar excluded_principals: List of AAD principal IDs excluded from the lock. Up to 5 principals
Expand All @@ -85,6 +87,10 @@ class DenySettings(_serialization.Model):
:vartype apply_to_child_scopes: bool
"""

_validation = {
"mode": {"required": True},
}

_attribute_map = {
"mode": {"key": "mode", "type": "str"},
"excluded_principals": {"key": "excludedPrincipals", "type": "[str]"},
Expand All @@ -95,15 +101,15 @@ class DenySettings(_serialization.Model):
def __init__(
self,
*,
mode: Optional[Union[str, "_models.DenySettingsMode"]] = None,
mode: Union[str, "_models.DenySettingsMode"],
excluded_principals: Optional[List[str]] = None,
excluded_actions: Optional[List[str]] = None,
apply_to_child_scopes: Optional[bool] = None,
**kwargs: Any
) -> None:
"""
:keyword mode: denySettings Mode. Known values are: "denyDelete", "denyWriteAndDelete", and
"none".
:keyword mode: denySettings Mode. Required. Known values are: "denyDelete",
"denyWriteAndDelete", and "none".
:paramtype mode: str or
~azure.mgmt.resource.deploymentstacks.v2022_08_01_preview.models.DenySettingsMode
:keyword excluded_principals: List of AAD principal IDs excluded from the lock. Up to 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "23.1.0b1"
VERSION = "0.1.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 = "23.1.0b1"
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 = "23.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "23.1.0b1"
VERSION = "0.1.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 = "23.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "23.1.0b1"
VERSION = "0.1.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 = "23.1.0b1"
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 = "23.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "23.1.0b1"
VERSION = "0.1.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 = "23.1.0b1"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class PolicyClient(MultiApiClientMixin, _SDKClient):
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
None: DEFAULT_API_VERSION,
'data_policy_manifests': '2020-09-01',
'policy_definitions': '2021-06-01',
'policy_set_definitions': '2021-06-01',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -94,9 +97,12 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 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>`
* 2020-07-01-preview: :mod:`v2020_07_01_preview.models<azure.mgmt.resource.policy.v2020_07_01_preview.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>`
* 2022-06-01: :mod:`v2022_06_01.models<azure.mgmt.resource.policy.v2022_06_01.models>`
* 2022-07-01-preview: :mod:`v2022_07_01_preview.models<azure.mgmt.resource.policy.v2022_07_01_preview.models>`
* 2022-08-01-preview: :mod:`v2022_08_01_preview.models<azure.mgmt.resource.policy.v2022_08_01_preview.models>`
"""
if api_version == '2015-10-01-preview':
from .v2015_10_01_preview import models
Expand Down Expand Up @@ -125,6 +131,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2019-09-01':
from .v2019_09_01 import models
return models
elif api_version == '2020-07-01-preview':
from .v2020_07_01_preview import models
return models
elif api_version == '2020-09-01':
from .v2020_09_01 import models
return models
Expand All @@ -134,23 +143,23 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2022-06-01':
from .v2022_06_01 import models
return models
elif api_version == '2022-07-01-preview':
from .v2022_07_01_preview import models
return models
elif api_version == '2022-08-01-preview':
from .v2022_08_01_preview 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>`
* 2022-06-01: :class:`DataPolicyManifestsOperations<azure.mgmt.resource.policy.v2022_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
elif api_version == '2022-06-01':
from .v2022_06_01.operations import DataPolicyManifestsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'data_policy_manifests'".format(api_version))
self._config.api_version = api_version
Expand Down Expand Up @@ -210,15 +219,13 @@ def policy_definitions(self):
* 2015-10-01-preview: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2015_10_01_preview.operations.PolicyDefinitionsOperations>`
* 2016-04-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2016_04_01.operations.PolicyDefinitionsOperations>`
* 2016-12-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2016_12_01.operations.PolicyDefinitionsOperations>`
* 2017-06-01-preview: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2017_06_01_preview.operations.PolicyDefinitionsOperations>`
* 2018-03-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2018_03_01.operations.PolicyDefinitionsOperations>`
* 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>`
* 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>`
* 2022-06-01: :class:`PolicyDefinitionsOperations<azure.mgmt.resource.policy.v2022_06_01.operations.PolicyDefinitionsOperations>`
"""
api_version = self._get_api_version('policy_definitions')
if api_version == '2015-10-01-preview':
Expand All @@ -227,8 +234,6 @@ def policy_definitions(self):
from .v2016_04_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2016-12-01':
from .v2016_12_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2017-06-01-preview':
from .v2017_06_01_preview.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2018-03-01':
from .v2018_03_01.operations import PolicyDefinitionsOperations as OperationClass
elif api_version == '2018-05-01':
Expand All @@ -243,8 +248,6 @@ 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 == '2022-06-01':
from .v2022_06_01.operations import PolicyDefinitionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_definitions'".format(api_version))
self._config.api_version = api_version
Expand All @@ -254,17 +257,14 @@ def policy_definitions(self):
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>`
* 2022-06-01: :class:`PolicyExemptionsOperations<azure.mgmt.resource.policy.v2022_06_01.operations.PolicyExemptionsOperations>`
* 2020-07-01-preview: :class:`PolicyExemptionsOperations<azure.mgmt.resource.policy.v2020_07_01_preview.operations.PolicyExemptionsOperations>`
* 2022-07-01-preview: :class:`PolicyExemptionsOperations<azure.mgmt.resource.policy.v2022_07_01_preview.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 == '2022-06-01':
from .v2022_06_01.operations import PolicyExemptionsOperations as OperationClass
if api_version == '2020-07-01-preview':
from .v2020_07_01_preview.operations import PolicyExemptionsOperations as OperationClass
elif api_version == '2022-07-01-preview':
from .v2022_07_01_preview.operations import PolicyExemptionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_exemptions'".format(api_version))
self._config.api_version = api_version
Expand All @@ -282,7 +282,6 @@ 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>`
* 2022-06-01: :class:`PolicySetDefinitionsOperations<azure.mgmt.resource.policy.v2022_06_01.operations.PolicySetDefinitionsOperations>`
"""
api_version = self._get_api_version('policy_set_definitions')
if api_version == '2017-06-01-preview':
Expand All @@ -301,8 +300,6 @@ 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 == '2022-06-01':
from .v2022_06_01.operations import PolicySetDefinitionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'policy_set_definitions'".format(api_version))
self._config.api_version = api_version
Expand All @@ -312,14 +309,11 @@ def policy_set_definitions(self):
def variable_values(self):
"""Instance depends on the API version:

* 2021-06-01: :class:`VariableValuesOperations<azure.mgmt.resource.policy.v2021_06_01.operations.VariableValuesOperations>`
* 2022-06-01: :class:`VariableValuesOperations<azure.mgmt.resource.policy.v2022_06_01.operations.VariableValuesOperations>`
* 2022-08-01-preview: :class:`VariableValuesOperations<azure.mgmt.resource.policy.v2022_08_01_preview.operations.VariableValuesOperations>`
"""
api_version = self._get_api_version('variable_values')
if api_version == '2021-06-01':
from .v2021_06_01.operations import VariableValuesOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import VariableValuesOperations as OperationClass
if api_version == '2022-08-01-preview':
from .v2022_08_01_preview.operations import VariableValuesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'variable_values'".format(api_version))
self._config.api_version = api_version
Expand All @@ -329,14 +323,11 @@ def variable_values(self):
def variables(self):
"""Instance depends on the API version:

* 2021-06-01: :class:`VariablesOperations<azure.mgmt.resource.policy.v2021_06_01.operations.VariablesOperations>`
* 2022-06-01: :class:`VariablesOperations<azure.mgmt.resource.policy.v2022_06_01.operations.VariablesOperations>`
* 2022-08-01-preview: :class:`VariablesOperations<azure.mgmt.resource.policy.v2022_08_01_preview.operations.VariablesOperations>`
"""
api_version = self._get_api_version('variables')
if api_version == '2021-06-01':
from .v2021_06_01.operations import VariablesOperations as OperationClass
elif api_version == '2022-06-01':
from .v2022_06_01.operations import VariablesOperations as OperationClass
if api_version == '2022-08-01-preview':
from .v2022_08_01_preview.operations import VariablesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'variables'".format(api_version))
self._config.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 = "23.1.0b1"
VERSION = "0.1.0"
Loading