diff --git a/scripts/multiapi_init_gen.py b/scripts/multiapi_init_gen.py index 6962c93708b7..e14b05d1ed2c 100644 --- a/scripts/multiapi_init_gen.py +++ b/scripts/multiapi_init_gen.py @@ -9,7 +9,7 @@ import shutil from pathlib import Path -from typing import List, Tuple, Any +from typing import List, Tuple, Any, Union try: import msrestazure @@ -341,7 +341,33 @@ def find_client_file(package_name, module_name): return next(module_path.glob("*_client.py")) +def patch_import(file_path: Union[str, Path]) -> None: + """If multi-client package, we need to patch import to be + from ..version + and not + from .version + + That should probably means those files should become a template, but since right now + it's literally one dot, let's do it the raw way. + """ + # That's a dirty hack, maybe it's worth making configuration a template? + with open(file_path, "rb") as read_fd: + conf_bytes: bytes = read_fd.read() + conf_bytes = conf_bytes.replace( + b" .version", b" ..version" + ) # Just a dot right? Worth its own template for that? :) + with open(file_path, "wb") as write_fd: + write_fd.write(conf_bytes) + + +def has_subscription_id(client_class): + return "subscription_id" in inspect.signature(client_class).parameters + + def main(input_str): + # The only known multi-client package right now is azure-mgmt-resource + is_multi_client_package = "#" in input_str + package_name, module_name = parse_input(input_str) versioned_modules = get_versioned_modules(package_name, module_name) versioned_operations_dict, mod_to_api_version = build_operation_meta( @@ -359,6 +385,10 @@ def main(input_str): shutil.copy( client_folder / last_api_version / "__init__.py", client_folder / "__init__.py" ) + if is_multi_client_package: + _LOGGER.warning("Patching multi-api client basic files") + patch_import(client_folder / "_configuration.py") + patch_import(client_folder / "__init__.py") versionned_mod = versioned_modules[last_api_version] client_name = get_client_class_name_from_module(versionned_mod) @@ -401,6 +431,7 @@ def main(input_str): conf = { "api_version_modules": sorted(mod_to_api_version.keys()), "client_name": client_name, + "has_subscription_id": has_subscription_id(client_class), "module_name": module_name, "operations": versioned_operations_dict, "mixin_operations": mixin_operations, diff --git a/scripts/templates/_multiapi_client.py b/scripts/templates/_multiapi_client.py index 42d673b26ba8..0fecb6379ef9 100644 --- a/scripts/templates/_multiapi_client.py +++ b/scripts/templates/_multiapi_client.py @@ -14,7 +14,6 @@ from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from .version import VERSION from ._configuration import {{ client_name }}Configuration {% if mixin_operations %}from ._operations_mixin import {{ client_name }}OperationsMixin{% endif %} @@ -36,10 +35,12 @@ class {{ client_name }}({% if mixin_operations %}{{ client_name }}OperationsMixi :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object` +{%- if has_subscription_id %} :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str +{%- endif %} :param str api_version: API version to use if no profile is provided, or if missing in profile. :param str base_url: Service URL @@ -59,8 +60,8 @@ class {{ client_name }}({% if mixin_operations %}{{ client_name }}OperationsMixi _PROFILE_TAG + " latest" ) - def __init__(self, credentials, subscription_id, api_version=None, base_url=None, profile=KnownProfiles.default): - self.config = {{ client_name }}Configuration(credentials, subscription_id, base_url) + def __init__(self, credentials{%- if has_subscription_id %}, subscription_id{% endif %}, api_version=None, base_url=None, profile=KnownProfiles.default): + self.config = {{ client_name }}Configuration(credentials{%- if has_subscription_id %}, subscription_id{% endif %}, base_url) super({{ client_name }}, self).__init__( credentials, self.config, diff --git a/sdk/resources/azure-mgmt-resource/HISTORY.rst b/sdk/resources/azure-mgmt-resource/HISTORY.rst index 2d50b76387d6..b7637b579745 100644 --- a/sdk/resources/azure-mgmt-resource/HISTORY.rst +++ b/sdk/resources/azure-mgmt-resource/HISTORY.rst @@ -3,6 +3,41 @@ Release History =============== +3.0.0 (2019-06-13) +++++++++++++++++++ + +**Features** + +- Model Provider has a new parameter registration_policy +- Model ProviderResourceType has a new parameter capabilities +- Model DeploymentOperationProperties has a new parameter duration +- Model DeploymentPropertiesExtended has a new parameter duration +- Added operation DeploymentOperations.get_at_management_group_scope +- Added operation DeploymentOperations.list_at_management_group_scope +- Added operation DeploymentsOperations.export_template_at_management_group_scope +- Added operation DeploymentsOperations.create_or_update_at_management_group_scope +- Added operation DeploymentsOperations.list_at_management_group_scope +- Added operation DeploymentsOperations.get_at_management_group_scope +- Added operation DeploymentsOperations.check_existence_at_management_group_scope +- Added operation DeploymentsOperations.cancel_at_management_group_scope +- Added operation DeploymentsOperations.delete_at_management_group_scope +- Added operation DeploymentsOperations.validate_at_management_group_scope + +- Policy default API version is now 2018-05-01 + +**General Breaking changes** + +This version uses a next-generation code generator that *might* introduce breaking changes if you were importing from the v20xx_yy_zz API folders. +In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place. + +The following applies for all client and namespaces, we take ResourceManagementClient and "resources" as example: +- ResourceManagementClient cannot be imported from `azure.mgmt.resource.resources.v20xx_yy_zz.resource_management_client` anymore (import from `azure.mgmt.resource.resources.v20xx_yy_zz` works like before) +- ResourceManagementClientConfiguration import has been moved from `azure.mgmt.resource.resources.v20xx_yy_zz.resource_management_client` to `azure.mgmt.resource.resources.v20xx_yy_zz` +- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.resource.resources.v20xx_yy_zz.models.my_class` (import from `azure.mgmt.resource.resources.v20xx_yy_zz.models` works like before) +- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.resource.resources.v20xx_yy_zz.operations.my_class_operations` (import from `azure.mgmt.resource.resources.v20xx_yy_zz.operations` works like before) + +Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process. + 2.2.0 (2019-05-23) ++++++++++++++++++ diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/__init__.py index 3271f15b5102..157f52c400a9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/__init__.py @@ -1,10 +1,19 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- -from .feature_client import FeatureClient +from ._configuration import FeatureClientConfiguration +from ._feature_client import FeatureClient +__all__ = ['FeatureClient', 'FeatureClientConfiguration'] + +from ..version import VERSION + +__version__ = VERSION -__all__ = ['FeatureClient'] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_configuration.py new file mode 100644 index 000000000000..bc16306c5ed3 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from ..version import VERSION + + +class FeatureClientConfiguration(AzureConfiguration): + """Configuration for FeatureClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(FeatureClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/feature_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_feature_client.py similarity index 65% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/feature_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_feature_client.py index 7da03829ab59..64198241d461 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/feature_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_feature_client.py @@ -11,60 +11,33 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from ..version import VERSION +from ._configuration import FeatureClientConfiguration +from ._operations_mixin import FeatureClientOperationsMixin -class FeatureClientConfiguration(AzureConfiguration): - """Configuration for FeatureClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param api_version: The API version to use for this operation. - :type api_version: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, api_version='2015-12-01', base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if api_version is not None and not isinstance(api_version, str): - raise TypeError("Optional parameter 'api_version' must be str.") - if not base_url: - base_url = 'https://management.azure.com' - - super(FeatureClientConfiguration, self).__init__(base_url) - - self.add_user_agent('featureclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - self.api_version = api_version - - -class FeatureClient(MultiApiClientMixin, SDKClient): +class FeatureClient(FeatureClientOperationsMixin, MultiApiClientMixin, SDKClient): """Azure Feature Exposure Control (AFEC) provides a mechanism for the resource providers to control feature exposure to users. Resource providers typically use this mechanism to provide public/private preview for new features prior to making them generally available. Users need to explicitly register for AFEC features to get access to such functionality. + This ready contains multiple API versions, to help you deal with all Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, uses latest API version available on public Azure. + For production, you should stick a particular api-version and/or profile. + The profile sets a mapping between the operation group and an API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + :ivar config: Configuration for client. :vartype config: FeatureClientConfiguration :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object` - :param subscription_id: The ID of the target subscription. + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. :type subscription_id: str :param str api_version: API version to use if no profile is provided, or if missing in profile. @@ -77,13 +50,13 @@ class FeatureClient(MultiApiClientMixin, SDKClient): _PROFILE_TAG = "azure.mgmt.resource.features.FeatureClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { - None: DEFAULT_API_VERSION + None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) def __init__(self, credentials, subscription_id, api_version=None, base_url=None, profile=KnownProfiles.default): - self.config = FeatureClientConfiguration(credentials, subscription_id, api_version, base_url) + self.config = FeatureClientConfiguration(credentials, subscription_id, base_url) super(FeatureClient, self).__init__( credentials, self.config, @@ -91,8 +64,6 @@ def __init__(self, credentials, subscription_id, api_version=None, base_url=None profile=profile ) -############ Generated from here ############ - @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_operations_mixin.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_operations_mixin.py new file mode 100644 index 000000000000..daab37000fc0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/_operations_mixin.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrest import Serializer, Deserializer + + +class FeatureClientOperationsMixin(object): + + + def list_operations(self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available Microsoft.Features REST API operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.resource.features.v2015_12_01.models.OperationPaged[~azure.mgmt.resource.features.v2015_12_01.models.Operation] + :raises: :class:`CloudError` + + """ + api_version = self._get_api_version('list_operations') + if api_version == '2015-12-01': + from .v2015_12_01.operations import FeatureClientOperationsMixin as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance.config = self.config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.list_operations(custom_headers, raw, **operation_config) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/models.py index ddecf161385e..8a6d29fb65b2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/models.py @@ -1,7 +1,7 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2015_12_01.models import * \ No newline at end of file +from .v2015_12_01.models import * diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/__init__.py index 86d47896f5c7..83dc0a5cdaf4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .feature_client import FeatureClient -from .version import VERSION +from ._configuration import FeatureClientConfiguration +from ._feature_client import FeatureClient +__all__ = ['FeatureClient', 'FeatureClientConfiguration'] -__all__ = ['FeatureClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_configuration.py new file mode 100644 index 000000000000..aa6a76b3eeb4 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class FeatureClientConfiguration(AzureConfiguration): + """Configuration for FeatureClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(FeatureClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_feature_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_feature_client.py new file mode 100644 index 000000000000..2b18fd27d253 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/_feature_client.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer + +from ._configuration import FeatureClientConfiguration +from .operations import FeatureClientOperationsMixin +from .operations import FeaturesOperations +from . import models + + +class FeatureClient(FeatureClientOperationsMixin, SDKClient): + """Azure Feature Exposure Control (AFEC) provides a mechanism for the resource providers to control feature exposure to users. Resource providers typically use this mechanism to provide public/private preview for new features prior to making them generally available. Users need to explicitly register for AFEC features to get access to such functionality. + + :ivar config: Configuration for client. + :vartype config: FeatureClientConfiguration + + :ivar features: Features operations + :vartype features: azure.mgmt.resource.features.v2015_12_01.operations.FeaturesOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = FeatureClientConfiguration(credentials, subscription_id, base_url) + super(FeatureClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2015-12-01' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.features = FeaturesOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/feature_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/feature_client.py deleted file mode 100644 index 874b8d7d0248..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/feature_client.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import SDKClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -import uuid -from .operations.features_operations import FeaturesOperations -from . import models - - -class FeatureClientConfiguration(AzureConfiguration): - """Configuration for FeatureClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(FeatureClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class FeatureClient(SDKClient): - """Azure Feature Exposure Control (AFEC) provides a mechanism for the resource providers to control feature exposure to users. Resource providers typically use this mechanism to provide public/private preview for new features prior to making them generally available. Users need to explicitly register for AFEC features to get access to such functionality. - - :ivar config: Configuration for client. - :vartype config: FeatureClientConfiguration - - :ivar features: Features operations - :vartype features: azure.mgmt.resource.features.v2015_12_01.operations.FeaturesOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = FeatureClientConfiguration(credentials, subscription_id, base_url) - super(FeatureClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2015-12-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.features = FeaturesOperations( - self._client, self.config, self._serialize, self._deserialize) - - def list_operations( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available Microsoft.Features REST API operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.resource.features.v2015_12_01.models.OperationPaged[~azure.mgmt.resource.features.v2015_12_01.models.Operation] - :raises: :class:`CloudError` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_operations.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_operations.metadata = {'url': '/providers/Microsoft.Features/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/__init__.py index 534a16d30c90..e952ff71fa61 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/__init__.py @@ -10,23 +10,23 @@ # -------------------------------------------------------------------------- try: - from .feature_properties_py3 import FeatureProperties - from .feature_result_py3 import FeatureResult - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation + from ._models_py3 import FeatureProperties + from ._models_py3 import FeatureResult + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay except (SyntaxError, ImportError): - from .feature_properties import FeatureProperties - from .feature_result import FeatureResult - from .operation_display import OperationDisplay - from .operation import Operation -from .operation_paged import OperationPaged -from .feature_result_paged import FeatureResultPaged + from ._models import FeatureProperties + from ._models import FeatureResult + from ._models import Operation + from ._models import OperationDisplay +from ._paged_models import FeatureResultPaged +from ._paged_models import OperationPaged __all__ = [ 'FeatureProperties', 'FeatureResult', - 'OperationDisplay', 'Operation', + 'OperationDisplay', 'OperationPaged', 'FeatureResultPaged', ] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_models.py new file mode 100644 index 000000000000..c931068653b7 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_models.py @@ -0,0 +1,111 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class FeatureProperties(Model): + """Information about feature. + + :param state: The registration state of the feature for the subscription. + :type state: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FeatureProperties, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + + +class FeatureResult(Model): + """Previewed feature information. + + :param name: The name of the feature. + :type name: str + :param properties: Properties of the previewed feature. + :type properties: + ~azure.mgmt.resource.features.v2015_12_01.models.FeatureProperties + :param id: The resource ID of the feature. + :type id: str + :param type: The resource type of the feature. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'FeatureProperties'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FeatureResult, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.id = kwargs.get('id', None) + self.type = kwargs.get('type', None) + + +class Operation(Model): + """Microsoft.Features operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.features.v2015_12_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Features + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_models_py3.py new file mode 100644 index 000000000000..3d12ba008d25 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_models_py3.py @@ -0,0 +1,111 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class FeatureProperties(Model): + """Information about feature. + + :param state: The registration state of the feature for the subscription. + :type state: str + """ + + _attribute_map = { + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__(self, *, state: str=None, **kwargs) -> None: + super(FeatureProperties, self).__init__(**kwargs) + self.state = state + + +class FeatureResult(Model): + """Previewed feature information. + + :param name: The name of the feature. + :type name: str + :param properties: Properties of the previewed feature. + :type properties: + ~azure.mgmt.resource.features.v2015_12_01.models.FeatureProperties + :param id: The resource ID of the feature. + :type id: str + :param type: The resource type of the feature. + :type type: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'FeatureProperties'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, properties=None, id: str=None, type: str=None, **kwargs) -> None: + super(FeatureResult, self).__init__(**kwargs) + self.name = name + self.properties = properties + self.id = id + self.type = type + + +class Operation(Model): + """Microsoft.Features operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.features.v2015_12_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Features + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_paged_models.py similarity index 68% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_paged_models.py index 086851f21678..7d57c51b86f3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/_paged_models.py @@ -12,6 +12,19 @@ from msrest.paging import Paged +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) class FeatureResultPaged(Paged): """ A paging container for iterating over a list of :class:`FeatureResult ` object diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_properties.py deleted file mode 100644 index 63421212ff4b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_properties.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FeatureProperties(Model): - """Information about feature. - - :param state: The registration state of the feature for the subscription. - :type state: str - """ - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FeatureProperties, self).__init__(**kwargs) - self.state = kwargs.get('state', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_properties_py3.py deleted file mode 100644 index 9779ede3f50d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_properties_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FeatureProperties(Model): - """Information about feature. - - :param state: The registration state of the feature for the subscription. - :type state: str - """ - - _attribute_map = { - 'state': {'key': 'state', 'type': 'str'}, - } - - def __init__(self, *, state: str=None, **kwargs) -> None: - super(FeatureProperties, self).__init__(**kwargs) - self.state = state diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result.py deleted file mode 100644 index 60f25ee88ee4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FeatureResult(Model): - """Previewed feature information. - - :param name: The name of the feature. - :type name: str - :param properties: Properties of the previewed feature. - :type properties: - ~azure.mgmt.resource.features.v2015_12_01.models.FeatureProperties - :param id: The resource ID of the feature. - :type id: str - :param type: The resource type of the feature. - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'FeatureProperties'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FeatureResult, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.id = kwargs.get('id', None) - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result_py3.py deleted file mode 100644 index cd27b1a43316..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/feature_result_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FeatureResult(Model): - """Previewed feature information. - - :param name: The name of the feature. - :type name: str - :param properties: Properties of the previewed feature. - :type properties: - ~azure.mgmt.resource.features.v2015_12_01.models.FeatureProperties - :param id: The resource ID of the feature. - :type id: str - :param type: The resource type of the feature. - :type type: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'FeatureProperties'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, properties=None, id: str=None, type: str=None, **kwargs) -> None: - super(FeatureResult, self).__init__(**kwargs) - self.name = name - self.properties = properties - self.id = id - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation.py deleted file mode 100644 index 458e37b3bd90..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Features operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.features.v2015_12_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_display.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_display.py deleted file mode 100644 index 96c5847dd02d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_display.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Features - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_display_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_display_py3.py deleted file mode 100644 index 500ca2ade894..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_display_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Features - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_paged.py deleted file mode 100644 index 3205c43a4b5f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_py3.py deleted file mode 100644 index 0768baa3c0e6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/models/operation_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Features operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.features.v2015_12_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/__init__.py index 3b8be8793171..eca886af9bce 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/__init__.py @@ -9,8 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- -from .features_operations import FeaturesOperations +from ._features_operations import FeaturesOperations +from ._feature_client_operations import FeatureClientOperationsMixin __all__ = [ 'FeaturesOperations', + 'FeatureClientOperationsMixin', ] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/_feature_client_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/_feature_client_operations.py new file mode 100644 index 000000000000..a504d7a43f18 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/_feature_client_operations.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from .. import models +import uuid + + +class FeatureClientOperationsMixin(object): + + def list_operations( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available Microsoft.Features REST API operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.resource.features.v2015_12_01.models.OperationPaged[~azure.mgmt.resource.features.v2015_12_01.models.Operation] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_operations.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_operations.metadata = {'url': '/providers/Microsoft.Features/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/features_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/_features_operations.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/features_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/_features_operations.py index 9e67c6673cea..c8dc6cb9039d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/features_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/features/v2015_12_01/operations/_features_operations.py @@ -19,6 +19,8 @@ class FeaturesOperations(object): """FeaturesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -52,8 +54,7 @@ def list_all( ~azure.mgmt.resource.features.v2015_12_01.models.FeatureResultPaged[~azure.mgmt.resource.features.v2015_12_01.models.FeatureResult] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_all.metadata['url'] @@ -82,6 +83,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -92,12 +98,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.FeatureResultPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.FeatureResultPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FeatureResultPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/features'} @@ -120,8 +124,7 @@ def list( ~azure.mgmt.resource.features.v2015_12_01.models.FeatureResultPaged[~azure.mgmt.resource.features.v2015_12_01.models.FeatureResult] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -151,6 +154,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -161,12 +169,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.FeatureResultPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.FeatureResultPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FeatureResultPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features'} @@ -223,7 +229,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FeatureResult', response) @@ -286,7 +291,6 @@ def register( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FeatureResult', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/__init__.py index 2a1441268911..5161076429d6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/__init__.py @@ -1,10 +1,19 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- -from .management_link_client import ManagementLinkClient +from ._configuration import ManagementLinkClientConfiguration +from ._management_link_client import ManagementLinkClient +__all__ = ['ManagementLinkClient', 'ManagementLinkClientConfiguration'] + +from ..version import VERSION + +__version__ = VERSION -__all__ = ['ManagementLinkClient'] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/_configuration.py new file mode 100644 index 000000000000..7ac9fd40fbdd --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from ..version import VERSION + + +class ManagementLinkClientConfiguration(AzureConfiguration): + """Configuration for ManagementLinkClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ManagementLinkClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/management_link_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/_management_link_client.py similarity index 74% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/management_link_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/_management_link_client.py index 91c4687fe5f1..6c50b3d2dfc6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/management_link_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/_management_link_client.py @@ -11,55 +11,33 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from ..version import VERSION +from ._configuration import ManagementLinkClientConfiguration -class ManagementLinkClientConfiguration(AzureConfiguration): - """Configuration for ManagementLinkClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ManagementLinkClientConfiguration, self).__init__(base_url) - - self.add_user_agent('managementlinkclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - class ManagementLinkClient(MultiApiClientMixin, SDKClient): """Azure resources can be linked together to form logical relationships. You can establish links between resources belonging to different resource groups. However, all the linked resources must belong to the same subscription. Each resource can be linked to 50 other resources. If any of the linked resources are deleted or moved, the link owner must clean up the remaining link. + This ready contains multiple API versions, to help you deal with all Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, uses latest API version available on public Azure. + For production, you should stick a particular api-version and/or profile. + The profile sets a mapping between the operation group and an API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + :ivar config: Configuration for client. :vartype config: ManagementLinkClientConfiguration :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object` - :param subscription_id: The ID of the target subscription. + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. :type subscription_id: str :param str api_version: API version to use if no profile is provided, or if missing in profile. @@ -72,7 +50,7 @@ class ManagementLinkClient(MultiApiClientMixin, SDKClient): _PROFILE_TAG = "azure.mgmt.resource.links.ManagementLinkClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { - None: DEFAULT_API_VERSION + None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) @@ -86,8 +64,6 @@ def __init__(self, credentials, subscription_id, api_version=None, base_url=None profile=profile ) -############ Generated from here ############ - @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/models.py index 5b67846c7585..b87ed631d36c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/models.py @@ -1,7 +1,7 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2016_09_01.models import * \ No newline at end of file +from .v2016_09_01.models import * diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/__init__.py index 156d7d871db7..04aebfce159e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .management_link_client import ManagementLinkClient -from .version import VERSION +from ._configuration import ManagementLinkClientConfiguration +from ._management_link_client import ManagementLinkClient +__all__ = ['ManagementLinkClient', 'ManagementLinkClientConfiguration'] -__all__ = ['ManagementLinkClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_configuration.py new file mode 100644 index 000000000000..ec99c613fdc2 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ManagementLinkClientConfiguration(AzureConfiguration): + """Configuration for ManagementLinkClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ManagementLinkClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/management_link_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_management_link_client.py similarity index 64% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/management_link_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_management_link_client.py index 398d9f9d208d..44e66a353ae6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/management_link_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/_management_link_client.py @@ -11,43 +11,11 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.resource_links_operations import ResourceLinksOperations -from . import models - - -class ManagementLinkClientConfiguration(AzureConfiguration): - """Configuration for ManagementLinkClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ManagementLinkClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ManagementLinkClientConfiguration +from .operations import Operations +from .operations import ResourceLinksOperations +from . import models class ManagementLinkClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/__init__.py index c7f4a210c5cf..03f0bacde7b3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/__init__.py @@ -10,29 +10,29 @@ # -------------------------------------------------------------------------- try: - from .resource_link_filter_py3 import ResourceLinkFilter - from .resource_link_properties_py3 import ResourceLinkProperties - from .resource_link_py3 import ResourceLink - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import ResourceLink + from ._models_py3 import ResourceLinkFilter + from ._models_py3 import ResourceLinkProperties except (SyntaxError, ImportError): - from .resource_link_filter import ResourceLinkFilter - from .resource_link_properties import ResourceLinkProperties - from .resource_link import ResourceLink - from .operation_display import OperationDisplay - from .operation import Operation -from .operation_paged import OperationPaged -from .resource_link_paged import ResourceLinkPaged -from .management_link_client_enums import ( + from ._models import Operation + from ._models import OperationDisplay + from ._models import ResourceLink + from ._models import ResourceLinkFilter + from ._models import ResourceLinkProperties +from ._paged_models import OperationPaged +from ._paged_models import ResourceLinkPaged +from ._management_link_client_enums import ( Filter, ) __all__ = [ + 'Operation', + 'OperationDisplay', + 'ResourceLink', 'ResourceLinkFilter', 'ResourceLinkProperties', - 'ResourceLink', - 'OperationDisplay', - 'Operation', 'OperationPaged', 'ResourceLinkPaged', 'Filter', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/management_link_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_management_link_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/management_link_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_management_link_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models.py new file mode 100644 index 000000000000..8ff2fec82f8a --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models.py @@ -0,0 +1,166 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.links.v2016_09_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ResourceLink(Model): + """The resource link. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the resource link. + :vartype id: str + :ivar name: The name of the resource link. + :vartype name: str + :ivar type: The resource link object. + :vartype type: object + :param properties: Properties for resource link. + :type properties: + ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'ResourceLinkProperties'}, + } + + def __init__(self, **kwargs): + super(ResourceLink, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.properties = kwargs.get('properties', None) + + +class ResourceLinkFilter(Model): + """Resource link filter. + + All required parameters must be populated in order to send to Azure. + + :param target_id: Required. The ID of the target resource. + :type target_id: str + """ + + _validation = { + 'target_id': {'required': True}, + } + + _attribute_map = { + 'target_id': {'key': 'targetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceLinkFilter, self).__init__(**kwargs) + self.target_id = kwargs.get('target_id', None) + + +class ResourceLinkProperties(Model): + """The resource link properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar source_id: The fully qualified ID of the source resource in the + link. + :vartype source_id: str + :param target_id: Required. The fully qualified ID of the target resource + in the link. + :type target_id: str + :param notes: Notes about the resource link. + :type notes: str + """ + + _validation = { + 'source_id': {'readonly': True}, + 'target_id': {'required': True}, + } + + _attribute_map = { + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'target_id': {'key': 'targetId', 'type': 'str'}, + 'notes': {'key': 'notes', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceLinkProperties, self).__init__(**kwargs) + self.source_id = None + self.target_id = kwargs.get('target_id', None) + self.notes = kwargs.get('notes', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py new file mode 100644 index 000000000000..c5cbd11d2a54 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_models_py3.py @@ -0,0 +1,166 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.links.v2016_09_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ResourceLink(Model): + """The resource link. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the resource link. + :vartype id: str + :ivar name: The name of the resource link. + :vartype name: str + :ivar type: The resource link object. + :vartype type: object + :param properties: Properties for resource link. + :type properties: + ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'object'}, + 'properties': {'key': 'properties', 'type': 'ResourceLinkProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(ResourceLink, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.properties = properties + + +class ResourceLinkFilter(Model): + """Resource link filter. + + All required parameters must be populated in order to send to Azure. + + :param target_id: Required. The ID of the target resource. + :type target_id: str + """ + + _validation = { + 'target_id': {'required': True}, + } + + _attribute_map = { + 'target_id': {'key': 'targetId', 'type': 'str'}, + } + + def __init__(self, *, target_id: str, **kwargs) -> None: + super(ResourceLinkFilter, self).__init__(**kwargs) + self.target_id = target_id + + +class ResourceLinkProperties(Model): + """The resource link properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar source_id: The fully qualified ID of the source resource in the + link. + :vartype source_id: str + :param target_id: Required. The fully qualified ID of the target resource + in the link. + :type target_id: str + :param notes: Notes about the resource link. + :type notes: str + """ + + _validation = { + 'source_id': {'readonly': True}, + 'target_id': {'required': True}, + } + + _attribute_map = { + 'source_id': {'key': 'sourceId', 'type': 'str'}, + 'target_id': {'key': 'targetId', 'type': 'str'}, + 'notes': {'key': 'notes', 'type': 'str'}, + } + + def __init__(self, *, target_id: str, notes: str=None, **kwargs) -> None: + super(ResourceLinkProperties, self).__init__(**kwargs) + self.source_id = None + self.target_id = target_id + self.notes = notes diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_paged_models.py similarity index 68% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_paged_models.py index 701821cb0495..c62f909a4076 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/_paged_models.py @@ -12,6 +12,19 @@ from msrest.paging import Paged +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) class ResourceLinkPaged(Paged): """ A paging container for iterating over a list of :class:`ResourceLink ` object diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation.py deleted file mode 100644 index 6f99ca831b0b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.links.v2016_09_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_display.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_display.py deleted file mode 100644 index 98e3ef7e561c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_display_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_display_py3.py deleted file mode 100644 index 9579860dfd81..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_paged.py deleted file mode 100644 index 21d8ee08cc45..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_py3.py deleted file mode 100644 index a81d9586d98d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/operation_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.links.v2016_09_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link.py deleted file mode 100644 index b0a65c24ac61..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceLink(Model): - """The resource link. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the resource link. - :vartype id: str - :ivar name: The name of the resource link. - :vartype name: str - :ivar type: The resource link object. - :vartype type: object - :param properties: Properties for resource link. - :type properties: - ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'properties': {'key': 'properties', 'type': 'ResourceLinkProperties'}, - } - - def __init__(self, **kwargs): - super(ResourceLink, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_filter.py deleted file mode 100644 index 0af23f0e704b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_filter.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceLinkFilter(Model): - """Resource link filter. - - All required parameters must be populated in order to send to Azure. - - :param target_id: Required. The ID of the target resource. - :type target_id: str - """ - - _validation = { - 'target_id': {'required': True}, - } - - _attribute_map = { - 'target_id': {'key': 'targetId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceLinkFilter, self).__init__(**kwargs) - self.target_id = kwargs.get('target_id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_filter_py3.py deleted file mode 100644 index b74ebd346c03..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_filter_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceLinkFilter(Model): - """Resource link filter. - - All required parameters must be populated in order to send to Azure. - - :param target_id: Required. The ID of the target resource. - :type target_id: str - """ - - _validation = { - 'target_id': {'required': True}, - } - - _attribute_map = { - 'target_id': {'key': 'targetId', 'type': 'str'}, - } - - def __init__(self, *, target_id: str, **kwargs) -> None: - super(ResourceLinkFilter, self).__init__(**kwargs) - self.target_id = target_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_properties.py deleted file mode 100644 index a97018ee74ab..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_properties.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceLinkProperties(Model): - """The resource link properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar source_id: The fully qualified ID of the source resource in the - link. - :vartype source_id: str - :param target_id: Required. The fully qualified ID of the target resource - in the link. - :type target_id: str - :param notes: Notes about the resource link. - :type notes: str - """ - - _validation = { - 'source_id': {'readonly': True}, - 'target_id': {'required': True}, - } - - _attribute_map = { - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'target_id': {'key': 'targetId', 'type': 'str'}, - 'notes': {'key': 'notes', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceLinkProperties, self).__init__(**kwargs) - self.source_id = None - self.target_id = kwargs.get('target_id', None) - self.notes = kwargs.get('notes', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_properties_py3.py deleted file mode 100644 index 4540e6ca4d07..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_properties_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceLinkProperties(Model): - """The resource link properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar source_id: The fully qualified ID of the source resource in the - link. - :vartype source_id: str - :param target_id: Required. The fully qualified ID of the target resource - in the link. - :type target_id: str - :param notes: Notes about the resource link. - :type notes: str - """ - - _validation = { - 'source_id': {'readonly': True}, - 'target_id': {'required': True}, - } - - _attribute_map = { - 'source_id': {'key': 'sourceId', 'type': 'str'}, - 'target_id': {'key': 'targetId', 'type': 'str'}, - 'notes': {'key': 'notes', 'type': 'str'}, - } - - def __init__(self, *, target_id: str, notes: str=None, **kwargs) -> None: - super(ResourceLinkProperties, self).__init__(**kwargs) - self.source_id = None - self.target_id = target_id - self.notes = notes diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_py3.py deleted file mode 100644 index f4fa3544608c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/models/resource_link_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceLink(Model): - """The resource link. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the resource link. - :vartype id: str - :ivar name: The name of the resource link. - :vartype name: str - :ivar type: The resource link object. - :vartype type: object - :param properties: Properties for resource link. - :type properties: - ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'object'}, - 'properties': {'key': 'properties', 'type': 'ResourceLinkProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(ResourceLink, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/__init__.py index 9fd0cda7f4c4..a7653aaee4f2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/__init__.py @@ -9,8 +9,8 @@ # regenerated. # -------------------------------------------------------------------------- -from .operations import Operations -from .resource_links_operations import ResourceLinksOperations +from ._operations import Operations +from ._resource_links_operations import ResourceLinksOperations __all__ = [ 'Operations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_operations.py similarity index 90% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_operations.py index e85ad6f21fe9..793e617c3524 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_operations.py @@ -19,6 +19,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.resource.links.v2016_09_01.models.OperationPaged[~azure.mgmt.resource.links.v2016_09_01.models.Operation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.Resources/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/resource_links_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_resource_links_operations.py similarity index 96% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/resource_links_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_resource_links_operations.py index 395f8a8a6572..dedc38985a1b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/resource_links_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/operations/_resource_links_operations.py @@ -19,6 +19,8 @@ class ResourceLinksOperations(object): """ResourceLinksOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -150,7 +152,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceLink', response) if response.status_code == 201: @@ -212,7 +213,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceLink', response) @@ -241,8 +241,7 @@ def list_at_subscription( ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkPaged[~azure.mgmt.resource.links.v2016_09_01.models.ResourceLink] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_subscription.metadata['url'] @@ -273,6 +272,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -283,12 +287,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceLinkPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceLinkPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceLinkPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links'} @@ -316,8 +318,7 @@ def list_at_source_scope( ~azure.mgmt.resource.links.v2016_09_01.models.ResourceLinkPaged[~azure.mgmt.resource.links.v2016_09_01.models.ResourceLink] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_source_scope.metadata['url'] @@ -348,6 +349,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -358,12 +364,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceLinkPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceLinkPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceLinkPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_source_scope.metadata = {'url': '/{scope}/providers/Microsoft.Resources/links'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/__init__.py index 58f0fa620314..5378dfa2cef6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/__init__.py @@ -1,10 +1,19 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- -from .management_lock_client import ManagementLockClient +from ._configuration import ManagementLockClientConfiguration +from ._management_lock_client import ManagementLockClient +__all__ = ['ManagementLockClient', 'ManagementLockClientConfiguration'] + +from ..version import VERSION + +__version__ = VERSION -__all__ = ['ManagementLockClient'] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/_configuration.py new file mode 100644 index 000000000000..d074a79033bd --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from ..version import VERSION + + +class ManagementLockClientConfiguration(AzureConfiguration): + """Configuration for ManagementLockClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ManagementLockClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/management_lock_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/_management_lock_client.py similarity index 74% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/management_lock_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/_management_lock_client.py index b07286a7e4d9..4af6445c630e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/management_lock_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/_management_lock_client.py @@ -11,68 +11,46 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from ..version import VERSION +from ._configuration import ManagementLockClientConfiguration -class ManagementLockClientConfiguration(AzureConfiguration): - """Configuration for ManagementLockClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ManagementLockClientConfiguration, self).__init__(base_url) - - self.add_user_agent('managementlockclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - class ManagementLockClient(MultiApiClientMixin, SDKClient): """Azure resources can be locked to prevent other users in your organization from deleting or modifying resources. + This ready contains multiple API versions, to help you deal with all Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, uses latest API version available on public Azure. + For production, you should stick a particular api-version and/or profile. + The profile sets a mapping between the operation group and an API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + :ivar config: Configuration for client. :vartype config: ManagementLockClientConfiguration :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object` - :param subscription_id: The ID of the target subscription. + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. :type subscription_id: str :param str api_version: API version to use if no profile is provided, or if missing in profile. :param str base_url: Service URL - :param profile: A dict using operation group name to API version. - :type profile: dict[str, str] + :param profile: A profile definition, from KnownProfiles to dict. + :type profile: azure.profiles.KnownProfiles """ DEFAULT_API_VERSION = '2016-09-01' _PROFILE_TAG = "azure.mgmt.resource.locks.ManagementLockClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { - None: DEFAULT_API_VERSION + None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) @@ -86,8 +64,6 @@ def __init__(self, credentials, subscription_id, api_version=None, base_url=None profile=profile ) -############ Generated from here ############ - @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/models.py index 5b67846c7585..6da7d5a9c3a8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/models.py @@ -1,7 +1,8 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2016_09_01.models import * \ No newline at end of file +from .v2015_01_01.models import * +from .v2016_09_01.models import * diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/__init__.py index 38bd47041c44..8ca04c22123b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .management_lock_client import ManagementLockClient -from .version import VERSION +from ._configuration import ManagementLockClientConfiguration +from ._management_lock_client import ManagementLockClient +__all__ = ['ManagementLockClient', 'ManagementLockClientConfiguration'] -__all__ = ['ManagementLockClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_configuration.py new file mode 100644 index 000000000000..c3b09e729386 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ManagementLockClientConfiguration(AzureConfiguration): + """Configuration for ManagementLockClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ManagementLockClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/management_lock_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_management_lock_client.py similarity index 58% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/management_lock_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_management_lock_client.py index 2b481a5bb2c3..5ae586075e2e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/management_lock_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/_management_lock_client.py @@ -11,42 +11,10 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.management_locks_operations import ManagementLocksOperations -from . import models - - -class ManagementLockClientConfiguration(AzureConfiguration): - """Configuration for ManagementLockClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ManagementLockClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ManagementLockClientConfiguration +from .operations import ManagementLocksOperations +from . import models class ManagementLockClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/__init__.py index 476ef2c36ec1..d76ef58de059 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/__init__.py @@ -10,11 +10,11 @@ # -------------------------------------------------------------------------- try: - from .management_lock_object_py3 import ManagementLockObject + from ._models_py3 import ManagementLockObject except (SyntaxError, ImportError): - from .management_lock_object import ManagementLockObject -from .management_lock_object_paged import ManagementLockObjectPaged -from .management_lock_client_enums import ( + from ._models import ManagementLockObject +from ._paged_models import ManagementLockObjectPaged +from ._management_lock_client_enums import ( LockLevel, ) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_management_lock_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_management_lock_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_models.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_models.py index 16e83fa3c348..f5995cc826f5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_models.py @@ -12,6 +12,14 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + class ManagementLockObject(Model): """Management lock information. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_models_py3.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object_py3.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_models_py3.py index b4bf4f8016b3..f57e8ed7b8c2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_models_py3.py @@ -12,6 +12,14 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + class ManagementLockObject(Model): """Management lock information. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_paged_models.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/management_lock_object_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/models/_paged_models.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/__init__.py index 2bffd473ac4b..17e19bf55118 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/__init__.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from .management_locks_operations import ManagementLocksOperations +from ._management_locks_operations import ManagementLocksOperations __all__ = [ 'ManagementLocksOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/management_locks_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/_management_locks_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/management_locks_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/_management_locks_operations.py index 588df1adf9c0..e7e6241ecf38 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/management_locks_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2015_01_01/operations/_management_locks_operations.py @@ -19,6 +19,8 @@ class ManagementLocksOperations(object): """ManagementLocksOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -96,7 +98,6 @@ def create_or_update_at_resource_group_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) if response.status_code == 201: @@ -214,7 +215,6 @@ def get_at_resource_group_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) @@ -297,7 +297,6 @@ def create_or_update_at_resource_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) if response.status_code == 201: @@ -431,7 +430,6 @@ def create_or_update_at_subscription_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) if response.status_code == 201: @@ -543,7 +541,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) @@ -572,8 +569,7 @@ def list_at_resource_group_level( ~azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObjectPaged[~azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObject] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_resource_group_level.metadata['url'] @@ -605,6 +601,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -615,12 +616,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks'} @@ -653,8 +652,7 @@ def list_at_resource_level( ~azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObjectPaged[~azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObject] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_resource_level.metadata['url'] @@ -690,6 +688,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -700,12 +703,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks'} @@ -726,8 +727,7 @@ def list_at_subscription_level( ~azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObjectPaged[~azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObject] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_subscription_level.metadata['url'] @@ -758,6 +758,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -768,12 +773,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/__init__.py index 38bd47041c44..8ca04c22123b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .management_lock_client import ManagementLockClient -from .version import VERSION +from ._configuration import ManagementLockClientConfiguration +from ._management_lock_client import ManagementLockClient +__all__ = ['ManagementLockClient', 'ManagementLockClientConfiguration'] -__all__ = ['ManagementLockClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_configuration.py new file mode 100644 index 000000000000..c3b09e729386 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ManagementLockClientConfiguration(AzureConfiguration): + """Configuration for ManagementLockClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ManagementLockClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/management_lock_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_management_lock_client.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/management_lock_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_management_lock_client.py index 5489aa865263..60842d7ec0ba 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/management_lock_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/_management_lock_client.py @@ -11,43 +11,11 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.authorization_operations import AuthorizationOperations -from .operations.management_locks_operations import ManagementLocksOperations -from . import models - - -class ManagementLockClientConfiguration(AzureConfiguration): - """Configuration for ManagementLockClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ManagementLockClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ManagementLockClientConfiguration +from .operations import AuthorizationOperations +from .operations import ManagementLocksOperations +from . import models class ManagementLockClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/__init__.py index 001c54a2cfb0..496faee140a6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/__init__.py @@ -10,26 +10,26 @@ # -------------------------------------------------------------------------- try: - from .management_lock_owner_py3 import ManagementLockOwner - from .management_lock_object_py3 import ManagementLockObject - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation + from ._models_py3 import ManagementLockObject + from ._models_py3 import ManagementLockOwner + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay except (SyntaxError, ImportError): - from .management_lock_owner import ManagementLockOwner - from .management_lock_object import ManagementLockObject - from .operation_display import OperationDisplay - from .operation import Operation -from .operation_paged import OperationPaged -from .management_lock_object_paged import ManagementLockObjectPaged -from .management_lock_client_enums import ( + from ._models import ManagementLockObject + from ._models import ManagementLockOwner + from ._models import Operation + from ._models import OperationDisplay +from ._paged_models import ManagementLockObjectPaged +from ._paged_models import OperationPaged +from ._management_lock_client_enums import ( LockLevel, ) __all__ = [ - 'ManagementLockOwner', 'ManagementLockObject', - 'OperationDisplay', + 'ManagementLockOwner', 'Operation', + 'OperationDisplay', 'OperationPaged', 'ManagementLockObjectPaged', 'LockLevel', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_management_lock_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_management_lock_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_models.py similarity index 56% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_models.py index 2b29b5b02365..cd74807963c5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_models.py @@ -12,6 +12,14 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + class ManagementLockObject(Model): """The lock information. @@ -65,3 +73,65 @@ def __init__(self, **kwargs): self.id = None self.type = None self.name = None + + +class ManagementLockOwner(Model): + """Lock owner properties. + + :param application_id: The application ID of the lock owner. + :type application_id: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagementLockOwner, self).__init__(**kwargs) + self.application_id = kwargs.get('application_id', None) + + +class Operation(Model): + """Microsoft.Authorization operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.locks.v2016_09_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Authorization + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_models_py3.py similarity index 55% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object_py3.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_models_py3.py index 92a13bb73229..f7f689344886 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_models_py3.py @@ -12,6 +12,14 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + class ManagementLockObject(Model): """The lock information. @@ -65,3 +73,65 @@ def __init__(self, *, level, notes: str=None, owners=None, **kwargs) -> None: self.id = None self.type = None self.name = None + + +class ManagementLockOwner(Model): + """Lock owner properties. + + :param application_id: The application ID of the lock owner. + :type application_id: str + """ + + _attribute_map = { + 'application_id': {'key': 'applicationId', 'type': 'str'}, + } + + def __init__(self, *, application_id: str=None, **kwargs) -> None: + super(ManagementLockOwner, self).__init__(**kwargs) + self.application_id = application_id + + +class Operation(Model): + """Microsoft.Authorization operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.locks.v2016_09_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Authorization + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_paged_models.py similarity index 69% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_paged_models.py index 33b8c2b1186c..0ff404120735 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_object_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/_paged_models.py @@ -12,6 +12,19 @@ from msrest.paging import Paged +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) class ManagementLockObjectPaged(Paged): """ A paging container for iterating over a list of :class:`ManagementLockObject ` object diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_owner.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_owner.py deleted file mode 100644 index 370b52740c4e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_owner.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagementLockOwner(Model): - """Lock owner properties. - - :param application_id: The application ID of the lock owner. - :type application_id: str - """ - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ManagementLockOwner, self).__init__(**kwargs) - self.application_id = kwargs.get('application_id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_owner_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_owner_py3.py deleted file mode 100644 index 130b54fefc52..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/management_lock_owner_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ManagementLockOwner(Model): - """Lock owner properties. - - :param application_id: The application ID of the lock owner. - :type application_id: str - """ - - _attribute_map = { - 'application_id': {'key': 'applicationId', 'type': 'str'}, - } - - def __init__(self, *, application_id: str=None, **kwargs) -> None: - super(ManagementLockOwner, self).__init__(**kwargs) - self.application_id = application_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation.py deleted file mode 100644 index a4cb256669d1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Authorization operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.locks.v2016_09_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_display.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_display.py deleted file mode 100644 index 7cf0ae94ff01..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_display.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Authorization - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_display_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_display_py3.py deleted file mode 100644 index ae5c37f7298c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_display_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Authorization - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_paged.py deleted file mode 100644 index 5c9933f1f6ad..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_py3.py deleted file mode 100644 index 275cb1fe02c4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/models/operation_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Authorization operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.locks.v2016_09_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/__init__.py index 89a0150a09b7..8eee96a3fccb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/__init__.py @@ -9,8 +9,8 @@ # regenerated. # -------------------------------------------------------------------------- -from .authorization_operations import AuthorizationOperations -from .management_locks_operations import ManagementLocksOperations +from ._authorization_operations import AuthorizationOperations +from ._management_locks_operations import ManagementLocksOperations __all__ = [ 'AuthorizationOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/authorization_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/_authorization_operations.py similarity index 90% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/authorization_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/_authorization_operations.py index e5c8f3d65d55..126ed6ebc01a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/authorization_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/_authorization_operations.py @@ -19,6 +19,8 @@ class AuthorizationOperations(object): """AuthorizationOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.resource.locks.v2016_09_01.models.OperationPaged[~azure.mgmt.resource.locks.v2016_09_01.models.Operation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.Authorization/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/management_locks_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/_management_locks_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/management_locks_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/_management_locks_operations.py index c5ac40d4b4cb..9b2aba989d1d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/management_locks_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/operations/_management_locks_operations.py @@ -19,6 +19,8 @@ class ManagementLocksOperations(object): """ManagementLocksOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -104,7 +106,6 @@ def create_or_update_at_resource_group_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) if response.status_code == 201: @@ -228,7 +229,6 @@ def get_at_resource_group_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) @@ -302,7 +302,6 @@ def create_or_update_by_scope( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) if response.status_code == 201: @@ -418,7 +417,6 @@ def get_by_scope( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) @@ -512,7 +510,6 @@ def create_or_update_at_resource_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) if response.status_code == 201: @@ -666,7 +663,6 @@ def get_at_resource_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) @@ -741,7 +737,6 @@ def create_or_update_at_subscription_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) if response.status_code == 201: @@ -858,7 +853,6 @@ def get_at_subscription_level( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ManagementLockObject', response) @@ -888,8 +882,7 @@ def list_at_resource_group_level( ~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObjectPaged[~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObject] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_resource_group_level.metadata['url'] @@ -921,6 +914,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -931,12 +929,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_resource_group_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks'} @@ -970,8 +966,7 @@ def list_at_resource_level( ~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObjectPaged[~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObject] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_resource_level.metadata['url'] @@ -1007,6 +1002,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -1017,12 +1017,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_resource_level.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks'} @@ -1043,8 +1041,7 @@ def list_at_subscription_level( ~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObjectPaged[~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObject] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_subscription_level.metadata['url'] @@ -1075,6 +1072,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -1085,12 +1087,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_subscription_level.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks'} @@ -1118,8 +1118,7 @@ def list_by_scope( ~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObjectPaged[~azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockObject] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_scope.metadata['url'] @@ -1150,6 +1149,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -1160,12 +1164,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ManagementLockObjectPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_scope.metadata = {'url': '/{scope}/providers/Microsoft.Authorization/locks'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/__init__.py index 3eda50756f11..4e3a0e21fa28 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .application_client import ApplicationClient -from .version import VERSION +from ._configuration import ApplicationClientConfiguration +from ._application_client import ApplicationClient +__all__ = ['ApplicationClient', 'ApplicationClientConfiguration'] -__all__ = ['ApplicationClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/application_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_application_client.py similarity index 60% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/application_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_application_client.py index 93562e98da94..f1c32c83f39d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/application_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_application_client.py @@ -11,43 +11,11 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.applications_operations import ApplicationsOperations -from .operations.application_definitions_operations import ApplicationDefinitionsOperations -from . import models - - -class ApplicationClientConfiguration(AzureConfiguration): - """Configuration for ApplicationClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ApplicationClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ApplicationClientConfiguration +from .operations import ApplicationsOperations +from .operations import ApplicationDefinitionsOperations +from . import models class ApplicationClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_configuration.py new file mode 100644 index 000000000000..426157c31d5e --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ApplicationClientConfiguration(AzureConfiguration): + """Configuration for ApplicationClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ApplicationClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/__init__.py index 4cb32a1f8c85..fe77a86199f0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/__init__.py @@ -10,34 +10,34 @@ # -------------------------------------------------------------------------- try: - from .plan_py3 import Plan - from .application_py3 import Application - from .plan_patchable_py3 import PlanPatchable - from .application_patchable_py3 import ApplicationPatchable - from .application_provider_authorization_py3 import ApplicationProviderAuthorization - from .application_artifact_py3 import ApplicationArtifact - from .application_definition_py3 import ApplicationDefinition - from .sku_py3 import Sku - from .identity_py3 import Identity - from .generic_resource_py3 import GenericResource - from .resource_py3 import Resource - from .error_response_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import Application + from ._models_py3 import ApplicationArtifact + from ._models_py3 import ApplicationDefinition + from ._models_py3 import ApplicationPatchable + from ._models_py3 import ApplicationProviderAuthorization + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import GenericResource + from ._models_py3 import Identity + from ._models_py3 import Plan + from ._models_py3 import PlanPatchable + from ._models_py3 import Resource + from ._models_py3 import Sku except (SyntaxError, ImportError): - from .plan import Plan - from .application import Application - from .plan_patchable import PlanPatchable - from .application_patchable import ApplicationPatchable - from .application_provider_authorization import ApplicationProviderAuthorization - from .application_artifact import ApplicationArtifact - from .application_definition import ApplicationDefinition - from .sku import Sku - from .identity import Identity - from .generic_resource import GenericResource - from .resource import Resource - from .error_response import ErrorResponse, ErrorResponseException -from .application_paged import ApplicationPaged -from .application_definition_paged import ApplicationDefinitionPaged -from .application_client_enums import ( + from ._models import Application + from ._models import ApplicationArtifact + from ._models import ApplicationDefinition + from ._models import ApplicationPatchable + from ._models import ApplicationProviderAuthorization + from ._models import ErrorResponse, ErrorResponseException + from ._models import GenericResource + from ._models import Identity + from ._models import Plan + from ._models import PlanPatchable + from ._models import Resource + from ._models import Sku +from ._paged_models import ApplicationDefinitionPaged +from ._paged_models import ApplicationPaged +from ._application_client_enums import ( ProvisioningState, ApplicationLockLevel, ApplicationArtifactType, @@ -45,18 +45,18 @@ ) __all__ = [ - 'Plan', 'Application', - 'PlanPatchable', - 'ApplicationPatchable', - 'ApplicationProviderAuthorization', 'ApplicationArtifact', 'ApplicationDefinition', - 'Sku', - 'Identity', + 'ApplicationPatchable', + 'ApplicationProviderAuthorization', + 'ErrorResponse', 'ErrorResponseException', 'GenericResource', + 'Identity', + 'Plan', + 'PlanPatchable', 'Resource', - 'ErrorResponse', 'ErrorResponseException', + 'Sku', 'ApplicationPaged', 'ApplicationDefinitionPaged', 'ProvisioningState', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_application_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_application_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models.py new file mode 100644 index 000000000000..5672bc26a8db --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models.py @@ -0,0 +1,632 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(GenericResource, self).__init__(**kwargs) + self.managed_by = kwargs.get('managed_by', None) + self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) + + +class Application(GenericResource): + """Information about managed application. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + :param managed_resource_group_id: Required. The managed resource group Id. + :type managed_resource_group_id: str + :param application_definition_id: The fully qualified path of managed + application definition Id. + :type application_definition_id: str + :param parameters: Name and value pairs that define the managed + application parameters. It can be a JObject or a well formed JSON string. + :type parameters: object + :ivar outputs: Name and value pairs that define the managed application + outputs. + :vartype outputs: object + :ivar provisioning_state: The managed application provisioning state. + Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', + 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + 'Updating' + :vartype provisioning_state: str or + ~azure.mgmt.resource.managedapplications.models.ProvisioningState + :param ui_definition_uri: The blob URI where the UI definition file is + located. + :type ui_definition_uri: str + :param plan: The plan information. + :type plan: ~azure.mgmt.resource.managedapplications.models.Plan + :param kind: Required. The kind of the managed application. Allowed values + are MarketPlace and ServiceCatalog. + :type kind: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'managed_resource_group_id': {'required': True}, + 'outputs': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True, 'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, + 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Application, self).__init__(**kwargs) + self.managed_resource_group_id = kwargs.get('managed_resource_group_id', None) + self.application_definition_id = kwargs.get('application_definition_id', None) + self.parameters = kwargs.get('parameters', None) + self.outputs = None + self.provisioning_state = None + self.ui_definition_uri = kwargs.get('ui_definition_uri', None) + self.plan = kwargs.get('plan', None) + self.kind = kwargs.get('kind', None) + + +class ApplicationArtifact(Model): + """Managed application artifact. + + :param name: The managed application artifact name. + :type name: str + :param uri: The managed application artifact blob uri. + :type uri: str + :param type: The managed application artifact type. Possible values + include: 'Template', 'Custom' + :type type: str or + ~azure.mgmt.resource.managedapplications.models.ApplicationArtifactType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ApplicationArtifactType'}, + } + + def __init__(self, **kwargs): + super(ApplicationArtifact, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.uri = kwargs.get('uri', None) + self.type = kwargs.get('type', None) + + +class ApplicationDefinition(GenericResource): + """Information about managed application definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + :param lock_level: Required. The managed application lock level. Possible + values include: 'CanNotDelete', 'ReadOnly', 'None' + :type lock_level: str or + ~azure.mgmt.resource.managedapplications.models.ApplicationLockLevel + :param display_name: The managed application definition display name. + :type display_name: str + :param is_enabled: A value indicating whether the package is enabled or + not. + :type is_enabled: str + :param authorizations: Required. The managed application provider + authorizations. + :type authorizations: + list[~azure.mgmt.resource.managedapplications.models.ApplicationProviderAuthorization] + :param artifacts: The collection of managed application artifacts. The + portal will use the files specified as artifacts to construct the user + experience of creating a managed application from a managed application + definition. + :type artifacts: + list[~azure.mgmt.resource.managedapplications.models.ApplicationArtifact] + :param description: The managed application definition description. + :type description: str + :param package_file_uri: The managed application definition package file + Uri. Use this element + :type package_file_uri: str + :param main_template: The inline main template json which has resources to + be provisioned. It can be a JObject or well-formed JSON string. + :type main_template: object + :param create_ui_definition: The createUiDefinition json for the backing + template with Microsoft.Solutions/applications resource. It can be a + JObject or well-formed JSON string. + :type create_ui_definition: object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'lock_level': {'required': True}, + 'authorizations': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'lock_level': {'key': 'properties.lockLevel', 'type': 'ApplicationLockLevel'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'is_enabled': {'key': 'properties.isEnabled', 'type': 'str'}, + 'authorizations': {'key': 'properties.authorizations', 'type': '[ApplicationProviderAuthorization]'}, + 'artifacts': {'key': 'properties.artifacts', 'type': '[ApplicationArtifact]'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'package_file_uri': {'key': 'properties.packageFileUri', 'type': 'str'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(ApplicationDefinition, self).__init__(**kwargs) + self.lock_level = kwargs.get('lock_level', None) + self.display_name = kwargs.get('display_name', None) + self.is_enabled = kwargs.get('is_enabled', None) + self.authorizations = kwargs.get('authorizations', None) + self.artifacts = kwargs.get('artifacts', None) + self.description = kwargs.get('description', None) + self.package_file_uri = kwargs.get('package_file_uri', None) + self.main_template = kwargs.get('main_template', None) + self.create_ui_definition = kwargs.get('create_ui_definition', None) + + +class ApplicationPatchable(GenericResource): + """Information about managed application. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + :param managed_resource_group_id: The managed resource group Id. + :type managed_resource_group_id: str + :param application_definition_id: The fully qualified path of managed + application definition Id. + :type application_definition_id: str + :param parameters: Name and value pairs that define the managed + application parameters. It can be a JObject or a well formed JSON string. + :type parameters: object + :ivar outputs: Name and value pairs that define the managed application + outputs. + :vartype outputs: object + :ivar provisioning_state: The managed application provisioning state. + Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', + 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + 'Updating' + :vartype provisioning_state: str or + ~azure.mgmt.resource.managedapplications.models.ProvisioningState + :param ui_definition_uri: The blob URI where the UI definition file is + located. + :type ui_definition_uri: str + :param plan: The plan information. + :type plan: ~azure.mgmt.resource.managedapplications.models.PlanPatchable + :param kind: The kind of the managed application. Allowed values are + MarketPlace and ServiceCatalog. + :type kind: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'outputs': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, + 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'PlanPatchable'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationPatchable, self).__init__(**kwargs) + self.managed_resource_group_id = kwargs.get('managed_resource_group_id', None) + self.application_definition_id = kwargs.get('application_definition_id', None) + self.parameters = kwargs.get('parameters', None) + self.outputs = None + self.provisioning_state = None + self.ui_definition_uri = kwargs.get('ui_definition_uri', None) + self.plan = kwargs.get('plan', None) + self.kind = kwargs.get('kind', None) + + +class ApplicationProviderAuthorization(Model): + """The managed application provider authorization. + + All required parameters must be populated in order to send to Azure. + + :param principal_id: Required. The provider's principal identifier. This + is the identity that the provider will use to call ARM to manage the + managed application resources. + :type principal_id: str + :param role_definition_id: Required. The provider's role definition + identifier. This role will define all the permissions that the provider + must have on the managed application's container resource group. This role + definition cannot have permission to delete the resource group. + :type role_definition_id: str + """ + + _validation = { + 'principal_id': {'required': True}, + 'role_definition_id': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationProviderAuthorization, self).__init__(**kwargs) + self.principal_id = kwargs.get('principal_id', None) + self.role_definition_id = kwargs.get('role_definition_id', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates managed application is not able to process the + incoming request. The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = kwargs.get('http_status', None) + self.error_code = kwargs.get('error_code', None) + self.error_message = kwargs.get('error_message', None) + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.managedapplications.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +class Plan(Model): + """Plan for the managed application. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The plan name. + :type name: str + :param publisher: Required. The publisher ID. + :type publisher: str + :param product: Required. The product code. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: Required. The plan's version. + :type version: str + """ + + _validation = { + 'name': {'required': True}, + 'publisher': {'required': True}, + 'product': {'required': True}, + 'version': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + self.version = kwargs.get('version', None) + + +class PlanPatchable(Model): + """Plan for the managed application. + + :param name: The plan name. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The product code. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PlanPatchable, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + self.version = kwargs.get('version', None) + + +class Sku(Model): + """SKU for the resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + self.model = kwargs.get('model', None) + self.capacity = kwargs.get('capacity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models_py3.py new file mode 100644 index 000000000000..54a204d95088 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_models_py3.py @@ -0,0 +1,632 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: + super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) + self.managed_by = managed_by + self.sku = sku + self.identity = identity + + +class Application(GenericResource): + """Information about managed application. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + :param managed_resource_group_id: Required. The managed resource group Id. + :type managed_resource_group_id: str + :param application_definition_id: The fully qualified path of managed + application definition Id. + :type application_definition_id: str + :param parameters: Name and value pairs that define the managed + application parameters. It can be a JObject or a well formed JSON string. + :type parameters: object + :ivar outputs: Name and value pairs that define the managed application + outputs. + :vartype outputs: object + :ivar provisioning_state: The managed application provisioning state. + Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', + 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + 'Updating' + :vartype provisioning_state: str or + ~azure.mgmt.resource.managedapplications.models.ProvisioningState + :param ui_definition_uri: The blob URI where the UI definition file is + located. + :type ui_definition_uri: str + :param plan: The plan information. + :type plan: ~azure.mgmt.resource.managedapplications.models.Plan + :param kind: Required. The kind of the managed application. Allowed values + are MarketPlace and ServiceCatalog. + :type kind: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'managed_resource_group_id': {'required': True}, + 'outputs': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'kind': {'required': True, 'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, + 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + def __init__(self, *, managed_resource_group_id: str, kind: str, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, application_definition_id: str=None, parameters=None, ui_definition_uri: str=None, plan=None, **kwargs) -> None: + super(Application, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) + self.managed_resource_group_id = managed_resource_group_id + self.application_definition_id = application_definition_id + self.parameters = parameters + self.outputs = None + self.provisioning_state = None + self.ui_definition_uri = ui_definition_uri + self.plan = plan + self.kind = kind + + +class ApplicationArtifact(Model): + """Managed application artifact. + + :param name: The managed application artifact name. + :type name: str + :param uri: The managed application artifact blob uri. + :type uri: str + :param type: The managed application artifact type. Possible values + include: 'Template', 'Custom' + :type type: str or + ~azure.mgmt.resource.managedapplications.models.ApplicationArtifactType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ApplicationArtifactType'}, + } + + def __init__(self, *, name: str=None, uri: str=None, type=None, **kwargs) -> None: + super(ApplicationArtifact, self).__init__(**kwargs) + self.name = name + self.uri = uri + self.type = type + + +class ApplicationDefinition(GenericResource): + """Information about managed application definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + :param lock_level: Required. The managed application lock level. Possible + values include: 'CanNotDelete', 'ReadOnly', 'None' + :type lock_level: str or + ~azure.mgmt.resource.managedapplications.models.ApplicationLockLevel + :param display_name: The managed application definition display name. + :type display_name: str + :param is_enabled: A value indicating whether the package is enabled or + not. + :type is_enabled: str + :param authorizations: Required. The managed application provider + authorizations. + :type authorizations: + list[~azure.mgmt.resource.managedapplications.models.ApplicationProviderAuthorization] + :param artifacts: The collection of managed application artifacts. The + portal will use the files specified as artifacts to construct the user + experience of creating a managed application from a managed application + definition. + :type artifacts: + list[~azure.mgmt.resource.managedapplications.models.ApplicationArtifact] + :param description: The managed application definition description. + :type description: str + :param package_file_uri: The managed application definition package file + Uri. Use this element + :type package_file_uri: str + :param main_template: The inline main template json which has resources to + be provisioned. It can be a JObject or well-formed JSON string. + :type main_template: object + :param create_ui_definition: The createUiDefinition json for the backing + template with Microsoft.Solutions/applications resource. It can be a + JObject or well-formed JSON string. + :type create_ui_definition: object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'lock_level': {'required': True}, + 'authorizations': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'lock_level': {'key': 'properties.lockLevel', 'type': 'ApplicationLockLevel'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'is_enabled': {'key': 'properties.isEnabled', 'type': 'str'}, + 'authorizations': {'key': 'properties.authorizations', 'type': '[ApplicationProviderAuthorization]'}, + 'artifacts': {'key': 'properties.artifacts', 'type': '[ApplicationArtifact]'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'package_file_uri': {'key': 'properties.packageFileUri', 'type': 'str'}, + 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, + 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'object'}, + } + + def __init__(self, *, lock_level, authorizations, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, display_name: str=None, is_enabled: str=None, artifacts=None, description: str=None, package_file_uri: str=None, main_template=None, create_ui_definition=None, **kwargs) -> None: + super(ApplicationDefinition, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) + self.lock_level = lock_level + self.display_name = display_name + self.is_enabled = is_enabled + self.authorizations = authorizations + self.artifacts = artifacts + self.description = description + self.package_file_uri = package_file_uri + self.main_template = main_template + self.create_ui_definition = create_ui_definition + + +class ApplicationPatchable(GenericResource): + """Information about managed application. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.managedapplications.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.managedapplications.models.Identity + :param managed_resource_group_id: The managed resource group Id. + :type managed_resource_group_id: str + :param application_definition_id: The fully qualified path of managed + application definition Id. + :type application_definition_id: str + :param parameters: Name and value pairs that define the managed + application parameters. It can be a JObject or a well formed JSON string. + :type parameters: object + :ivar outputs: Name and value pairs that define the managed application + outputs. + :vartype outputs: object + :ivar provisioning_state: The managed application provisioning state. + Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', + 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', + 'Updating' + :vartype provisioning_state: str or + ~azure.mgmt.resource.managedapplications.models.ProvisioningState + :param ui_definition_uri: The blob URI where the UI definition file is + located. + :type ui_definition_uri: str + :param plan: The plan information. + :type plan: ~azure.mgmt.resource.managedapplications.models.PlanPatchable + :param kind: The kind of the managed application. Allowed values are + MarketPlace and ServiceCatalog. + :type kind: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'outputs': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, + 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'outputs': {'key': 'properties.outputs', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, + 'plan': {'key': 'plan', 'type': 'PlanPatchable'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, managed_resource_group_id: str=None, application_definition_id: str=None, parameters=None, ui_definition_uri: str=None, plan=None, kind: str=None, **kwargs) -> None: + super(ApplicationPatchable, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) + self.managed_resource_group_id = managed_resource_group_id + self.application_definition_id = application_definition_id + self.parameters = parameters + self.outputs = None + self.provisioning_state = None + self.ui_definition_uri = ui_definition_uri + self.plan = plan + self.kind = kind + + +class ApplicationProviderAuthorization(Model): + """The managed application provider authorization. + + All required parameters must be populated in order to send to Azure. + + :param principal_id: Required. The provider's principal identifier. This + is the identity that the provider will use to call ARM to manage the + managed application resources. + :type principal_id: str + :param role_definition_id: Required. The provider's role definition + identifier. This role will define all the permissions that the provider + must have on the managed application's container resource group. This role + definition cannot have permission to delete the resource group. + :type role_definition_id: str + """ + + _validation = { + 'principal_id': {'required': True}, + 'role_definition_id': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, + } + + def __init__(self, *, principal_id: str, role_definition_id: str, **kwargs) -> None: + super(ApplicationProviderAuthorization, self).__init__(**kwargs) + self.principal_id = principal_id + self.role_definition_id = role_definition_id + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates managed application is not able to process the + incoming request. The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = http_status + self.error_code = error_code + self.error_message = error_message + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.managedapplications.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class Plan(Model): + """Plan for the managed application. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The plan name. + :type name: str + :param publisher: Required. The publisher ID. + :type publisher: str + :param product: Required. The product code. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: Required. The plan's version. + :type version: str + """ + + _validation = { + 'name': {'required': True}, + 'publisher': {'required': True}, + 'product': {'required': True}, + 'version': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, name: str, publisher: str, product: str, version: str, promotion_code: str=None, **kwargs) -> None: + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + self.version = version + + +class PlanPatchable(Model): + """Plan for the managed application. + + :param name: The plan name. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The product code. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: + super(PlanPatchable, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + self.version = version + + +class Sku(Model): + """SKU for the resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.size = size + self.family = family + self.model = model + self.capacity = capacity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_paged_models.py similarity index 69% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_paged_models.py index 1d976e9beff0..f043675463e2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/_paged_models.py @@ -12,6 +12,19 @@ from msrest.paging import Paged +class ApplicationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Application ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Application]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationPaged, self).__init__(*args, **kwargs) class ApplicationDefinitionPaged(Paged): """ A paging container for iterating over a list of :class:`ApplicationDefinition ` object diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application.py deleted file mode 100644 index ff019c504316..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .generic_resource import GenericResource - - -class Application(GenericResource): - """Information about managed application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - :param managed_resource_group_id: Required. The managed resource group Id. - :type managed_resource_group_id: str - :param application_definition_id: The fully qualified path of managed - application definition Id. - :type application_definition_id: str - :param parameters: Name and value pairs that define the managed - application parameters. It can be a JObject or a well formed JSON string. - :type parameters: object - :ivar outputs: Name and value pairs that define the managed application - outputs. - :vartype outputs: object - :ivar provisioning_state: The managed application provisioning state. - Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', - 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', - 'Updating' - :vartype provisioning_state: str or - ~azure.mgmt.resource.managedapplications.models.ProvisioningState - :param ui_definition_uri: The blob URI where the UI definition file is - located. - :type ui_definition_uri: str - :param plan: The plan information. - :type plan: ~azure.mgmt.resource.managedapplications.models.Plan - :param kind: Required. The kind of the managed application. Allowed values - are MarketPlace and ServiceCatalog. - :type kind: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'managed_resource_group_id': {'required': True}, - 'outputs': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'kind': {'required': True, 'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, - 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'outputs': {'key': 'properties.outputs', 'type': 'object'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Application, self).__init__(**kwargs) - self.managed_resource_group_id = kwargs.get('managed_resource_group_id', None) - self.application_definition_id = kwargs.get('application_definition_id', None) - self.parameters = kwargs.get('parameters', None) - self.outputs = None - self.provisioning_state = None - self.ui_definition_uri = kwargs.get('ui_definition_uri', None) - self.plan = kwargs.get('plan', None) - self.kind = kwargs.get('kind', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_artifact.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_artifact.py deleted file mode 100644 index 6caa8c256b27..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_artifact.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplicationArtifact(Model): - """Managed application artifact. - - :param name: The managed application artifact name. - :type name: str - :param uri: The managed application artifact blob uri. - :type uri: str - :param type: The managed application artifact type. Possible values - include: 'Template', 'Custom' - :type type: str or - ~azure.mgmt.resource.managedapplications.models.ApplicationArtifactType - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ApplicationArtifactType'}, - } - - def __init__(self, **kwargs): - super(ApplicationArtifact, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.uri = kwargs.get('uri', None) - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_artifact_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_artifact_py3.py deleted file mode 100644 index cac6dc7961ae..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_artifact_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplicationArtifact(Model): - """Managed application artifact. - - :param name: The managed application artifact name. - :type name: str - :param uri: The managed application artifact blob uri. - :type uri: str - :param type: The managed application artifact type. Possible values - include: 'Template', 'Custom' - :type type: str or - ~azure.mgmt.resource.managedapplications.models.ApplicationArtifactType - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ApplicationArtifactType'}, - } - - def __init__(self, *, name: str=None, uri: str=None, type=None, **kwargs) -> None: - super(ApplicationArtifact, self).__init__(**kwargs) - self.name = name - self.uri = uri - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition.py deleted file mode 100644 index 140082a806c6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .generic_resource import GenericResource - - -class ApplicationDefinition(GenericResource): - """Information about managed application definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - :param lock_level: Required. The managed application lock level. Possible - values include: 'CanNotDelete', 'ReadOnly', 'None' - :type lock_level: str or - ~azure.mgmt.resource.managedapplications.models.ApplicationLockLevel - :param display_name: The managed application definition display name. - :type display_name: str - :param is_enabled: A value indicating whether the package is enabled or - not. - :type is_enabled: str - :param authorizations: Required. The managed application provider - authorizations. - :type authorizations: - list[~azure.mgmt.resource.managedapplications.models.ApplicationProviderAuthorization] - :param artifacts: The collection of managed application artifacts. The - portal will use the files specified as artifacts to construct the user - experience of creating a managed application from a managed application - definition. - :type artifacts: - list[~azure.mgmt.resource.managedapplications.models.ApplicationArtifact] - :param description: The managed application definition description. - :type description: str - :param package_file_uri: The managed application definition package file - Uri. Use this element - :type package_file_uri: str - :param main_template: The inline main template json which has resources to - be provisioned. It can be a JObject or well-formed JSON string. - :type main_template: object - :param create_ui_definition: The createUiDefinition json for the backing - template with Microsoft.Solutions/applications resource. It can be a - JObject or well-formed JSON string. - :type create_ui_definition: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'lock_level': {'required': True}, - 'authorizations': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'lock_level': {'key': 'properties.lockLevel', 'type': 'ApplicationLockLevel'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'is_enabled': {'key': 'properties.isEnabled', 'type': 'str'}, - 'authorizations': {'key': 'properties.authorizations', 'type': '[ApplicationProviderAuthorization]'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ApplicationArtifact]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'package_file_uri': {'key': 'properties.packageFileUri', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, - 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ApplicationDefinition, self).__init__(**kwargs) - self.lock_level = kwargs.get('lock_level', None) - self.display_name = kwargs.get('display_name', None) - self.is_enabled = kwargs.get('is_enabled', None) - self.authorizations = kwargs.get('authorizations', None) - self.artifacts = kwargs.get('artifacts', None) - self.description = kwargs.get('description', None) - self.package_file_uri = kwargs.get('package_file_uri', None) - self.main_template = kwargs.get('main_template', None) - self.create_ui_definition = kwargs.get('create_ui_definition', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition_py3.py deleted file mode 100644 index c3f1237a8f16..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_definition_py3.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .generic_resource_py3 import GenericResource - - -class ApplicationDefinition(GenericResource): - """Information about managed application definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - :param lock_level: Required. The managed application lock level. Possible - values include: 'CanNotDelete', 'ReadOnly', 'None' - :type lock_level: str or - ~azure.mgmt.resource.managedapplications.models.ApplicationLockLevel - :param display_name: The managed application definition display name. - :type display_name: str - :param is_enabled: A value indicating whether the package is enabled or - not. - :type is_enabled: str - :param authorizations: Required. The managed application provider - authorizations. - :type authorizations: - list[~azure.mgmt.resource.managedapplications.models.ApplicationProviderAuthorization] - :param artifacts: The collection of managed application artifacts. The - portal will use the files specified as artifacts to construct the user - experience of creating a managed application from a managed application - definition. - :type artifacts: - list[~azure.mgmt.resource.managedapplications.models.ApplicationArtifact] - :param description: The managed application definition description. - :type description: str - :param package_file_uri: The managed application definition package file - Uri. Use this element - :type package_file_uri: str - :param main_template: The inline main template json which has resources to - be provisioned. It can be a JObject or well-formed JSON string. - :type main_template: object - :param create_ui_definition: The createUiDefinition json for the backing - template with Microsoft.Solutions/applications resource. It can be a - JObject or well-formed JSON string. - :type create_ui_definition: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'lock_level': {'required': True}, - 'authorizations': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'lock_level': {'key': 'properties.lockLevel', 'type': 'ApplicationLockLevel'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'is_enabled': {'key': 'properties.isEnabled', 'type': 'str'}, - 'authorizations': {'key': 'properties.authorizations', 'type': '[ApplicationProviderAuthorization]'}, - 'artifacts': {'key': 'properties.artifacts', 'type': '[ApplicationArtifact]'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'package_file_uri': {'key': 'properties.packageFileUri', 'type': 'str'}, - 'main_template': {'key': 'properties.mainTemplate', 'type': 'object'}, - 'create_ui_definition': {'key': 'properties.createUiDefinition', 'type': 'object'}, - } - - def __init__(self, *, lock_level, authorizations, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, display_name: str=None, is_enabled: str=None, artifacts=None, description: str=None, package_file_uri: str=None, main_template=None, create_ui_definition=None, **kwargs) -> None: - super(ApplicationDefinition, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) - self.lock_level = lock_level - self.display_name = display_name - self.is_enabled = is_enabled - self.authorizations = authorizations - self.artifacts = artifacts - self.description = description - self.package_file_uri = package_file_uri - self.main_template = main_template - self.create_ui_definition = create_ui_definition diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_paged.py deleted file mode 100644 index d03162783563..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ApplicationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Application ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Application]'} - } - - def __init__(self, *args, **kwargs): - - super(ApplicationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_patchable.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_patchable.py deleted file mode 100644 index 2aa0d3f4ab8a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_patchable.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .generic_resource import GenericResource - - -class ApplicationPatchable(GenericResource): - """Information about managed application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - :param managed_resource_group_id: The managed resource group Id. - :type managed_resource_group_id: str - :param application_definition_id: The fully qualified path of managed - application definition Id. - :type application_definition_id: str - :param parameters: Name and value pairs that define the managed - application parameters. It can be a JObject or a well formed JSON string. - :type parameters: object - :ivar outputs: Name and value pairs that define the managed application - outputs. - :vartype outputs: object - :ivar provisioning_state: The managed application provisioning state. - Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', - 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', - 'Updating' - :vartype provisioning_state: str or - ~azure.mgmt.resource.managedapplications.models.ProvisioningState - :param ui_definition_uri: The blob URI where the UI definition file is - located. - :type ui_definition_uri: str - :param plan: The plan information. - :type plan: ~azure.mgmt.resource.managedapplications.models.PlanPatchable - :param kind: The kind of the managed application. Allowed values are - MarketPlace and ServiceCatalog. - :type kind: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'outputs': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, - 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'outputs': {'key': 'properties.outputs', 'type': 'object'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, - 'plan': {'key': 'plan', 'type': 'PlanPatchable'}, - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationPatchable, self).__init__(**kwargs) - self.managed_resource_group_id = kwargs.get('managed_resource_group_id', None) - self.application_definition_id = kwargs.get('application_definition_id', None) - self.parameters = kwargs.get('parameters', None) - self.outputs = None - self.provisioning_state = None - self.ui_definition_uri = kwargs.get('ui_definition_uri', None) - self.plan = kwargs.get('plan', None) - self.kind = kwargs.get('kind', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_patchable_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_patchable_py3.py deleted file mode 100644 index db7739f95851..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_patchable_py3.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .generic_resource_py3 import GenericResource - - -class ApplicationPatchable(GenericResource): - """Information about managed application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - :param managed_resource_group_id: The managed resource group Id. - :type managed_resource_group_id: str - :param application_definition_id: The fully qualified path of managed - application definition Id. - :type application_definition_id: str - :param parameters: Name and value pairs that define the managed - application parameters. It can be a JObject or a well formed JSON string. - :type parameters: object - :ivar outputs: Name and value pairs that define the managed application - outputs. - :vartype outputs: object - :ivar provisioning_state: The managed application provisioning state. - Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', - 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', - 'Updating' - :vartype provisioning_state: str or - ~azure.mgmt.resource.managedapplications.models.ProvisioningState - :param ui_definition_uri: The blob URI where the UI definition file is - located. - :type ui_definition_uri: str - :param plan: The plan information. - :type plan: ~azure.mgmt.resource.managedapplications.models.PlanPatchable - :param kind: The kind of the managed application. Allowed values are - MarketPlace and ServiceCatalog. - :type kind: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'outputs': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, - 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'outputs': {'key': 'properties.outputs', 'type': 'object'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, - 'plan': {'key': 'plan', 'type': 'PlanPatchable'}, - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, *, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, managed_resource_group_id: str=None, application_definition_id: str=None, parameters=None, ui_definition_uri: str=None, plan=None, kind: str=None, **kwargs) -> None: - super(ApplicationPatchable, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) - self.managed_resource_group_id = managed_resource_group_id - self.application_definition_id = application_definition_id - self.parameters = parameters - self.outputs = None - self.provisioning_state = None - self.ui_definition_uri = ui_definition_uri - self.plan = plan - self.kind = kind diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_provider_authorization.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_provider_authorization.py deleted file mode 100644 index 24efef4adb19..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_provider_authorization.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplicationProviderAuthorization(Model): - """The managed application provider authorization. - - All required parameters must be populated in order to send to Azure. - - :param principal_id: Required. The provider's principal identifier. This - is the identity that the provider will use to call ARM to manage the - managed application resources. - :type principal_id: str - :param role_definition_id: Required. The provider's role definition - identifier. This role will define all the permissions that the provider - must have on the managed application's container resource group. This role - definition cannot have permission to delete the resource group. - :type role_definition_id: str - """ - - _validation = { - 'principal_id': {'required': True}, - 'role_definition_id': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationProviderAuthorization, self).__init__(**kwargs) - self.principal_id = kwargs.get('principal_id', None) - self.role_definition_id = kwargs.get('role_definition_id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_provider_authorization_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_provider_authorization_py3.py deleted file mode 100644 index 98cbd662faa9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_provider_authorization_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplicationProviderAuthorization(Model): - """The managed application provider authorization. - - All required parameters must be populated in order to send to Azure. - - :param principal_id: Required. The provider's principal identifier. This - is the identity that the provider will use to call ARM to manage the - managed application resources. - :type principal_id: str - :param role_definition_id: Required. The provider's role definition - identifier. This role will define all the permissions that the provider - must have on the managed application's container resource group. This role - definition cannot have permission to delete the resource group. - :type role_definition_id: str - """ - - _validation = { - 'principal_id': {'required': True}, - 'role_definition_id': {'required': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'role_definition_id': {'key': 'roleDefinitionId', 'type': 'str'}, - } - - def __init__(self, *, principal_id: str, role_definition_id: str, **kwargs) -> None: - super(ApplicationProviderAuthorization, self).__init__(**kwargs) - self.principal_id = principal_id - self.role_definition_id = role_definition_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_py3.py deleted file mode 100644 index 2fb9024ea960..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/application_py3.py +++ /dev/null @@ -1,104 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .generic_resource_py3 import GenericResource - - -class Application(GenericResource): - """Information about managed application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - :param managed_resource_group_id: Required. The managed resource group Id. - :type managed_resource_group_id: str - :param application_definition_id: The fully qualified path of managed - application definition Id. - :type application_definition_id: str - :param parameters: Name and value pairs that define the managed - application parameters. It can be a JObject or a well formed JSON string. - :type parameters: object - :ivar outputs: Name and value pairs that define the managed application - outputs. - :vartype outputs: object - :ivar provisioning_state: The managed application provisioning state. - Possible values include: 'Accepted', 'Running', 'Ready', 'Creating', - 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', - 'Updating' - :vartype provisioning_state: str or - ~azure.mgmt.resource.managedapplications.models.ProvisioningState - :param ui_definition_uri: The blob URI where the UI definition file is - located. - :type ui_definition_uri: str - :param plan: The plan information. - :type plan: ~azure.mgmt.resource.managedapplications.models.Plan - :param kind: Required. The kind of the managed application. Allowed values - are MarketPlace and ServiceCatalog. - :type kind: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'managed_resource_group_id': {'required': True}, - 'outputs': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'kind': {'required': True, 'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'managed_resource_group_id': {'key': 'properties.managedResourceGroupId', 'type': 'str'}, - 'application_definition_id': {'key': 'properties.applicationDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'outputs': {'key': 'properties.outputs', 'type': 'object'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'ui_definition_uri': {'key': 'properties.uiDefinitionUri', 'type': 'str'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'kind': {'key': 'kind', 'type': 'str'}, - } - - def __init__(self, *, managed_resource_group_id: str, kind: str, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, application_definition_id: str=None, parameters=None, ui_definition_uri: str=None, plan=None, **kwargs) -> None: - super(Application, self).__init__(location=location, tags=tags, managed_by=managed_by, sku=sku, identity=identity, **kwargs) - self.managed_resource_group_id = managed_resource_group_id - self.application_definition_id = application_definition_id - self.parameters = parameters - self.outputs = None - self.provisioning_state = None - self.ui_definition_uri = ui_definition_uri - self.plan = plan - self.kind = kind diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/error_response.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/error_response.py deleted file mode 100644 index 48db644b6852..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/error_response.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates managed application is not able to process the - incoming request. The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = kwargs.get('http_status', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/error_response_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/error_response_py3.py deleted file mode 100644 index 272d91c7d721..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/error_response_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates managed application is not able to process the - incoming request. The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = http_status - self.error_code = error_code - self.error_message = error_message - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/generic_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/generic_resource.py deleted file mode 100644 index 6fe832dadb70..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/generic_resource.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, **kwargs): - super(GenericResource, self).__init__(**kwargs) - self.managed_by = kwargs.get('managed_by', None) - self.sku = kwargs.get('sku', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/generic_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/generic_resource_py3.py deleted file mode 100644 index 9ad415ef239f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/generic_resource_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.managedapplications.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.managedapplications.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, *, location: str=None, tags=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: - super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) - self.managed_by = managed_by - self.sku = sku - self.identity = identity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/identity.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/identity.py deleted file mode 100644 index 30f30cfa6871..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/identity.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.managedapplications.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/identity_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/identity_py3.py deleted file mode 100644 index 9d8a734fdd16..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/identity_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.managedapplications.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan.py deleted file mode 100644 index c204fe4f234f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the managed application. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The plan name. - :type name: str - :param publisher: Required. The publisher ID. - :type publisher: str - :param product: Required. The product code. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: Required. The plan's version. - :type version: str - """ - - _validation = { - 'name': {'required': True}, - 'publisher': {'required': True}, - 'product': {'required': True}, - 'version': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Plan, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.publisher = kwargs.get('publisher', None) - self.product = kwargs.get('product', None) - self.promotion_code = kwargs.get('promotion_code', None) - self.version = kwargs.get('version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_patchable.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_patchable.py deleted file mode 100644 index 1b1a3c6299fd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_patchable.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PlanPatchable(Model): - """Plan for the managed application. - - :param name: The plan name. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The product code. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PlanPatchable, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.publisher = kwargs.get('publisher', None) - self.product = kwargs.get('product', None) - self.promotion_code = kwargs.get('promotion_code', None) - self.version = kwargs.get('version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_patchable_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_patchable_py3.py deleted file mode 100644 index cf52c56e8077..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_patchable_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PlanPatchable(Model): - """Plan for the managed application. - - :param name: The plan name. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The product code. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: - super(PlanPatchable, self).__init__(**kwargs) - self.name = name - self.publisher = publisher - self.product = product - self.promotion_code = promotion_code - self.version = version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_py3.py deleted file mode 100644 index 9ba487214887..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/plan_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the managed application. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The plan name. - :type name: str - :param publisher: Required. The publisher ID. - :type publisher: str - :param product: Required. The product code. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: Required. The plan's version. - :type version: str - """ - - _validation = { - 'name': {'required': True}, - 'publisher': {'required': True}, - 'product': {'required': True}, - 'version': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, *, name: str, publisher: str, product: str, version: str, promotion_code: str=None, **kwargs) -> None: - super(Plan, self).__init__(**kwargs) - self.name = name - self.publisher = publisher - self.product = product - self.promotion_code = promotion_code - self.version = version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource.py deleted file mode 100644 index 59731b2803cc..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource_py3.py deleted file mode 100644 index 5de1d2d3bb94..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/sku.py deleted file mode 100644 index 24866582a6c6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/sku.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - self.size = kwargs.get('size', None) - self.family = kwargs.get('family', None) - self.model = kwargs.get('model', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/sku_py3.py deleted file mode 100644 index ce9a39a37a8d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/sku_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, *, name: str, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.model = model - self.capacity = capacity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/__init__.py index 8dde81835052..60ebab061654 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/__init__.py @@ -9,8 +9,8 @@ # regenerated. # -------------------------------------------------------------------------- -from .applications_operations import ApplicationsOperations -from .application_definitions_operations import ApplicationDefinitionsOperations +from ._applications_operations import ApplicationsOperations +from ._application_definitions_operations import ApplicationDefinitionsOperations __all__ = [ 'ApplicationsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_application_definitions_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_application_definitions_operations.py index 1646b9cb2db0..24e057349b5b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_application_definitions_operations.py @@ -20,6 +20,8 @@ class ApplicationDefinitionsOperations(object): """ApplicationDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -91,7 +93,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationDefinition', response) @@ -305,8 +306,7 @@ def list_by_resource_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -336,6 +336,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -344,12 +349,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ApplicationDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ApplicationDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ApplicationDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions'} @@ -404,7 +407,6 @@ def get_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ApplicationDefinition', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/applications_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_applications_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/applications_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_applications_operations.py index 9ec07ececf91..0f578ea9cbac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/applications_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/_applications_operations.py @@ -20,6 +20,8 @@ class ApplicationsOperations(object): """ApplicationsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -89,7 +91,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Application', response) @@ -346,7 +347,6 @@ def update( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Application', response) @@ -375,8 +375,7 @@ def list_by_resource_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -406,6 +405,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -414,12 +418,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ApplicationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ApplicationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ApplicationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications'} @@ -439,8 +441,7 @@ def list_by_subscription( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_subscription.metadata['url'] @@ -469,6 +470,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -477,12 +483,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ApplicationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ApplicationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ApplicationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Solutions/applications'} @@ -536,7 +540,6 @@ def get_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Application', response) @@ -785,7 +788,6 @@ def update_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Application', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/__init__.py index 37ff50de3fa1..969c52599990 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/__init__.py @@ -1,10 +1,19 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- -from .policy_client import PolicyClient +from ._configuration import PolicyClientConfiguration +from ._policy_client import PolicyClient +__all__ = ['PolicyClient', 'PolicyClientConfiguration'] + +from ..version import VERSION + +__version__ = VERSION -__all__ = ['PolicyClient'] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/_configuration.py new file mode 100644 index 000000000000..24a0790a53e9 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from ..version import VERSION + + +class PolicyClientConfiguration(AzureConfiguration): + """Configuration for PolicyClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(PolicyClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/policy_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/_policy_client.py similarity index 86% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/policy_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/_policy_client.py index a28a82798f56..aff0c7f49d10 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/policy_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/_policy_client.py @@ -11,55 +11,33 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from ..version import VERSION +from ._configuration import PolicyClientConfiguration -class PolicyClientConfiguration(AzureConfiguration): - """Configuration for PolicyClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(PolicyClientConfiguration, self).__init__(base_url) - - self.add_user_agent('policyclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - class PolicyClient(MultiApiClientMixin, SDKClient): """To manage and control access to your resources, you can define customized policies and assign them at a scope. + This ready contains multiple API versions, to help you deal with all Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, uses latest API version available on public Azure. + For production, you should stick a particular api-version and/or profile. + The profile sets a mapping between the operation group and an API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + :ivar config: Configuration for client. :vartype config: PolicyClientConfiguration :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object` - :param subscription_id: The ID of the target subscription. + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. :type subscription_id: str :param str api_version: API version to use if no profile is provided, or if missing in profile. @@ -68,11 +46,11 @@ class PolicyClient(MultiApiClientMixin, SDKClient): :type profile: azure.profiles.KnownProfiles """ - DEFAULT_API_VERSION='2018-03-01' + DEFAULT_API_VERSION = '2018-05-01' _PROFILE_TAG = "azure.mgmt.resource.policy.PolicyClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { - None: DEFAULT_API_VERSION + None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) @@ -86,8 +64,6 @@ def __init__(self, credentials, subscription_id, api_version=None, base_url=None profile=profile ) -############ Generated from here ############ - @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/models.py index bf08bae23587..137390d90dff 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/models.py @@ -1,7 +1,12 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2016_12_01.models import * \ No newline at end of file +from .v2015_10_01_preview.models import * +from .v2016_04_01.models import * +from .v2016_12_01.models import * +from .v2017_06_01_preview.models import * +from .v2018_03_01.models import * +from .v2018_05_01.models import * diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/__init__.py index 2564f85cc82c..56bf47bfb9e4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_client import PolicyClient -from .version import VERSION +from ._configuration import PolicyClientConfiguration +from ._policy_client import PolicyClient +__all__ = ['PolicyClient', 'PolicyClientConfiguration'] -__all__ = ['PolicyClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_configuration.py new file mode 100644 index 000000000000..ede4f42045d0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class PolicyClientConfiguration(AzureConfiguration): + """Configuration for PolicyClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(PolicyClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/policy_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_policy_client.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/policy_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_policy_client.py index 3ba02a11d719..2dfec399fdaa 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/policy_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/_policy_client.py @@ -11,43 +11,11 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.policy_assignments_operations import PolicyAssignmentsOperations -from .operations.policy_definitions_operations import PolicyDefinitionsOperations -from . import models - - -class PolicyClientConfiguration(AzureConfiguration): - """Configuration for PolicyClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(PolicyClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import PolicyClientConfiguration +from .operations import PolicyAssignmentsOperations +from .operations import PolicyDefinitionsOperations +from . import models class PolicyClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/__init__.py index d911de39e82d..09123683300d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/__init__.py @@ -10,20 +10,20 @@ # -------------------------------------------------------------------------- try: - from .policy_definition_py3 import PolicyDefinition - from .policy_assignment_py3 import PolicyAssignment + from ._models_py3 import PolicyAssignment + from ._models_py3 import PolicyDefinition except (SyntaxError, ImportError): - from .policy_definition import PolicyDefinition - from .policy_assignment import PolicyAssignment -from .policy_assignment_paged import PolicyAssignmentPaged -from .policy_definition_paged import PolicyDefinitionPaged -from .policy_client_enums import ( + from ._models import PolicyAssignment + from ._models import PolicyDefinition +from ._paged_models import PolicyAssignmentPaged +from ._paged_models import PolicyDefinitionPaged +from ._policy_client_enums import ( PolicyType, ) __all__ = [ - 'PolicyDefinition', 'PolicyAssignment', + 'PolicyDefinition', 'PolicyAssignmentPaged', 'PolicyDefinitionPaged', 'PolicyType', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models.py index 660b4691373d..558bbfee84ca 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models.py @@ -12,6 +12,50 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class PolicyAssignment(Model): + """The policy assignment. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param id: The ID of the policy assignment. + :type id: str + :param type: The type of the policy assignment. + :type type: str + :param name: The name of the policy assignment. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.scope = kwargs.get('scope', None) + self.id = kwargs.get('id', None) + self.type = kwargs.get('type', None) + self.name = kwargs.get('name', None) + + class PolicyDefinition(Model): """The policy definition. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models_py3.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition_py3.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models_py3.py index 1e9be8b0e919..c4894b54cc90 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_models_py3.py @@ -12,6 +12,50 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class PolicyAssignment(Model): + """The policy assignment. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param id: The ID of the policy assignment. + :type id: str + :param type: The type of the policy assignment. + :type type: str + :param name: The name of the policy assignment. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, id: str=None, type: str=None, name: str=None, **kwargs) -> None: + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = display_name + self.policy_definition_id = policy_definition_id + self.scope = scope + self.id = id + self.type = type + self.name = name + + class PolicyDefinition(Model): """The policy definition. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_paged_models.py similarity index 67% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_paged_models.py index 95be909e9044..5915c2e75c4a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_paged_models.py @@ -25,3 +25,16 @@ class PolicyAssignmentPaged(Paged): def __init__(self, *args, **kwargs): super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) +class PolicyDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_policy_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/_policy_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment.py deleted file mode 100644 index 24c27b17db71..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param id: The ID of the policy assignment. - :type id: str - :param type: The type of the policy assignment. - :type type: str - :param name: The name of the policy assignment. - :type name: str - """ - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.scope = kwargs.get('scope', None) - self.id = kwargs.get('id', None) - self.type = kwargs.get('type', None) - self.name = kwargs.get('name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment_py3.py deleted file mode 100644 index cf34cb502d7c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_assignment_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param id: The ID of the policy assignment. - :type id: str - :param type: The type of the policy assignment. - :type type: str - :param name: The name of the policy assignment. - :type name: str - """ - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, id: str=None, type: str=None, name: str=None, **kwargs) -> None: - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = display_name - self.policy_definition_id = policy_definition_id - self.scope = scope - self.id = id - self.type = type - self.name = name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition_paged.py deleted file mode 100644 index 827fe7c91d4e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/models/policy_definition_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyDefinitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyDefinition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/__init__.py index 95d3a3d86bda..2bae0e10444d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/__init__.py @@ -9,8 +9,8 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_assignments_operations import PolicyAssignmentsOperations -from .policy_definitions_operations import PolicyDefinitionsOperations +from ._policy_assignments_operations import PolicyAssignmentsOperations +from ._policy_definitions_operations import PolicyDefinitionsOperations __all__ = [ 'PolicyAssignmentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/_policy_assignments_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_assignments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/_policy_assignments_operations.py index 49f701a37353..3c8dc016dc06 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/_policy_assignments_operations.py @@ -19,6 +19,8 @@ class PolicyAssignmentsOperations(object): """PolicyAssignmentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -89,7 +91,6 @@ def delete( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -162,7 +163,6 @@ def create( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -225,7 +225,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -255,8 +254,7 @@ def list_for_resource_group( ~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource_group.metadata['url'] @@ -288,6 +286,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -298,12 +301,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} @@ -337,8 +338,7 @@ def list_for_resource( ~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource.metadata['url'] @@ -374,6 +374,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -384,12 +389,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments'} @@ -410,8 +413,7 @@ def list( ~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -442,6 +444,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -452,12 +459,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments'} @@ -519,7 +524,6 @@ def delete_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -596,7 +600,6 @@ def create_by_id( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -664,7 +667,6 @@ def get_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/_policy_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/_policy_definitions_operations.py index 17c661067f4e..254227e67e04 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2015_10_01_preview/operations/_policy_definitions_operations.py @@ -19,6 +19,8 @@ class PolicyDefinitionsOperations(object): """PolicyDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -94,7 +96,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -206,7 +207,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -233,8 +233,7 @@ def list( ~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2015_10_01_preview.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -265,6 +264,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -275,12 +279,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/__init__.py index 2564f85cc82c..56bf47bfb9e4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_client import PolicyClient -from .version import VERSION +from ._configuration import PolicyClientConfiguration +from ._policy_client import PolicyClient +__all__ = ['PolicyClient', 'PolicyClientConfiguration'] -__all__ = ['PolicyClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_configuration.py new file mode 100644 index 000000000000..ede4f42045d0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class PolicyClientConfiguration(AzureConfiguration): + """Configuration for PolicyClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(PolicyClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/policy_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_policy_client.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/policy_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_policy_client.py index c136e74d1831..cedfb2dbeb95 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/policy_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/_policy_client.py @@ -11,43 +11,11 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.policy_assignments_operations import PolicyAssignmentsOperations -from .operations.policy_definitions_operations import PolicyDefinitionsOperations -from . import models - - -class PolicyClientConfiguration(AzureConfiguration): - """Configuration for PolicyClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(PolicyClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import PolicyClientConfiguration +from .operations import PolicyAssignmentsOperations +from .operations import PolicyDefinitionsOperations +from . import models class PolicyClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/__init__.py index d911de39e82d..09123683300d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/__init__.py @@ -10,20 +10,20 @@ # -------------------------------------------------------------------------- try: - from .policy_definition_py3 import PolicyDefinition - from .policy_assignment_py3 import PolicyAssignment + from ._models_py3 import PolicyAssignment + from ._models_py3 import PolicyDefinition except (SyntaxError, ImportError): - from .policy_definition import PolicyDefinition - from .policy_assignment import PolicyAssignment -from .policy_assignment_paged import PolicyAssignmentPaged -from .policy_definition_paged import PolicyDefinitionPaged -from .policy_client_enums import ( + from ._models import PolicyAssignment + from ._models import PolicyDefinition +from ._paged_models import PolicyAssignmentPaged +from ._paged_models import PolicyDefinitionPaged +from ._policy_client_enums import ( PolicyType, ) __all__ = [ - 'PolicyDefinition', 'PolicyAssignment', + 'PolicyDefinition', 'PolicyAssignmentPaged', 'PolicyDefinitionPaged', 'PolicyType', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models.py index 5cb7ecff7590..e1e7a613a531 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models.py @@ -12,6 +12,50 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class PolicyAssignment(Model): + """The policy assignment. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param id: The ID of the policy assignment. + :type id: str + :param type: The type of the policy assignment. + :type type: str + :param name: The name of the policy assignment. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.scope = kwargs.get('scope', None) + self.id = kwargs.get('id', None) + self.type = kwargs.get('type', None) + self.name = kwargs.get('name', None) + + class PolicyDefinition(Model): """The policy definition. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models_py3.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition_py3.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models_py3.py index d5905119d3cc..2dbbb7f60952 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_models_py3.py @@ -12,6 +12,50 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class PolicyAssignment(Model): + """The policy assignment. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param id: The ID of the policy assignment. + :type id: str + :param type: The type of the policy assignment. + :type type: str + :param name: The name of the policy assignment. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, id: str=None, type: str=None, name: str=None, **kwargs) -> None: + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = display_name + self.policy_definition_id = policy_definition_id + self.scope = scope + self.id = id + self.type = type + self.name = name + + class PolicyDefinition(Model): """The policy definition. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_paged_models.py similarity index 67% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_paged_models.py index d12609681c13..48f651cb865c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_paged_models.py @@ -25,3 +25,16 @@ class PolicyAssignmentPaged(Paged): def __init__(self, *args, **kwargs): super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) +class PolicyDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_policy_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/_policy_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment.py deleted file mode 100644 index 24c27b17db71..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param id: The ID of the policy assignment. - :type id: str - :param type: The type of the policy assignment. - :type type: str - :param name: The name of the policy assignment. - :type name: str - """ - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.scope = kwargs.get('scope', None) - self.id = kwargs.get('id', None) - self.type = kwargs.get('type', None) - self.name = kwargs.get('name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment_py3.py deleted file mode 100644 index cf34cb502d7c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_assignment_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param id: The ID of the policy assignment. - :type id: str - :param type: The type of the policy assignment. - :type type: str - :param name: The name of the policy assignment. - :type name: str - """ - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, id: str=None, type: str=None, name: str=None, **kwargs) -> None: - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = display_name - self.policy_definition_id = policy_definition_id - self.scope = scope - self.id = id - self.type = type - self.name = name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition_paged.py deleted file mode 100644 index 5e80d3c4a177..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/models/policy_definition_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyDefinitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyDefinition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/__init__.py index 95d3a3d86bda..2bae0e10444d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/__init__.py @@ -9,8 +9,8 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_assignments_operations import PolicyAssignmentsOperations -from .policy_definitions_operations import PolicyDefinitionsOperations +from ._policy_assignments_operations import PolicyAssignmentsOperations +from ._policy_definitions_operations import PolicyDefinitionsOperations __all__ = [ 'PolicyAssignmentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/_policy_assignments_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_assignments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/_policy_assignments_operations.py index e8024dcb5f4c..670e64b02432 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/_policy_assignments_operations.py @@ -19,6 +19,8 @@ class PolicyAssignmentsOperations(object): """PolicyAssignmentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -89,7 +91,6 @@ def delete( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -162,7 +163,6 @@ def create( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -225,7 +225,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -255,8 +254,7 @@ def list_for_resource_group( ~azure.mgmt.resource.policy.v2016_04_01.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2016_04_01.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource_group.metadata['url'] @@ -288,6 +286,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -298,12 +301,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} @@ -337,8 +338,7 @@ def list_for_resource( ~azure.mgmt.resource.policy.v2016_04_01.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2016_04_01.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource.metadata['url'] @@ -374,6 +374,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -384,12 +389,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments'} @@ -410,8 +413,7 @@ def list( ~azure.mgmt.resource.policy.v2016_04_01.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2016_04_01.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -442,6 +444,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -452,12 +459,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments'} @@ -519,7 +524,6 @@ def delete_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -596,7 +600,6 @@ def create_by_id( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -664,7 +667,6 @@ def get_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/_policy_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/_policy_definitions_operations.py index fddc13c4d91f..6512160fdafb 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_04_01/operations/_policy_definitions_operations.py @@ -19,6 +19,8 @@ class PolicyDefinitionsOperations(object): """PolicyDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -94,7 +96,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -206,7 +207,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -233,8 +233,7 @@ def list( ~azure.mgmt.resource.policy.v2016_04_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2016_04_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -265,6 +264,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -275,12 +279,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/__init__.py index 2564f85cc82c..56bf47bfb9e4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_client import PolicyClient -from .version import VERSION +from ._configuration import PolicyClientConfiguration +from ._policy_client import PolicyClient +__all__ = ['PolicyClient', 'PolicyClientConfiguration'] -__all__ = ['PolicyClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_configuration.py new file mode 100644 index 000000000000..ede4f42045d0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class PolicyClientConfiguration(AzureConfiguration): + """Configuration for PolicyClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(PolicyClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/policy_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_policy_client.py similarity index 61% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/policy_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_policy_client.py index 5b3ed9584044..64180bde7926 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/policy_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/_policy_client.py @@ -11,43 +11,11 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.policy_definitions_operations import PolicyDefinitionsOperations -from .operations.policy_assignments_operations import PolicyAssignmentsOperations -from . import models - - -class PolicyClientConfiguration(AzureConfiguration): - """Configuration for PolicyClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(PolicyClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import PolicyClientConfiguration +from .operations import PolicyDefinitionsOperations +from .operations import PolicyAssignmentsOperations +from . import models class PolicyClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/__init__.py index 3f3ff6bcef32..838a18dd9f62 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/__init__.py @@ -10,21 +10,21 @@ # -------------------------------------------------------------------------- try: - from .policy_definition_py3 import PolicyDefinition - from .policy_assignment_py3 import PolicyAssignment + from ._models_py3 import PolicyAssignment + from ._models_py3 import PolicyDefinition except (SyntaxError, ImportError): - from .policy_definition import PolicyDefinition - from .policy_assignment import PolicyAssignment -from .policy_definition_paged import PolicyDefinitionPaged -from .policy_assignment_paged import PolicyAssignmentPaged -from .policy_client_enums import ( + from ._models import PolicyAssignment + from ._models import PolicyDefinition +from ._paged_models import PolicyAssignmentPaged +from ._paged_models import PolicyDefinitionPaged +from ._policy_client_enums import ( PolicyType, PolicyMode, ) __all__ = [ - 'PolicyDefinition', 'PolicyAssignment', + 'PolicyDefinition', 'PolicyDefinitionPaged', 'PolicyAssignmentPaged', 'PolicyType', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models.py similarity index 59% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models.py index 76cbeab23aa6..10968d424ab4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models.py @@ -12,6 +12,66 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :ivar id: The ID of the policy assignment. + :vartype id: str + :param type: The type of the policy assignment. + :type type: str + :param name: The name of the policy assignment. + :type name: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.scope = kwargs.get('scope', None) + self.parameters = kwargs.get('parameters', None) + self.description = kwargs.get('description', None) + self.id = None + self.type = kwargs.get('type', None) + self.name = kwargs.get('name', None) + + class PolicyDefinition(Model): """The policy definition. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models_py3.py similarity index 59% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition_py3.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models_py3.py index 0d02eaeb67be..bac7a3c437ab 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_models_py3.py @@ -12,6 +12,66 @@ from msrest.serialization import Model +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :ivar id: The ID of the policy assignment. + :vartype id: str + :param type: The type of the policy assignment. + :type type: str + :param name: The name of the policy assignment. + :type name: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, parameters=None, description: str=None, type: str=None, name: str=None, **kwargs) -> None: + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = display_name + self.policy_definition_id = policy_definition_id + self.scope = scope + self.parameters = parameters + self.description = description + self.id = None + self.type = type + self.name = name + + class PolicyDefinition(Model): """The policy definition. diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_paged_models.py similarity index 67% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_paged_models.py index cd06ef26caf5..d5b970ba2abe 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_paged_models.py @@ -12,6 +12,19 @@ from msrest.paging import Paged +class PolicyDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) class PolicyAssignmentPaged(Paged): """ A paging container for iterating over a list of :class:`PolicyAssignment ` object diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_policy_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/_policy_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment.py deleted file mode 100644 index 225d2807e589..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :ivar id: The ID of the policy assignment. - :vartype id: str - :param type: The type of the policy assignment. - :type type: str - :param name: The name of the policy assignment. - :type name: str - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.scope = kwargs.get('scope', None) - self.parameters = kwargs.get('parameters', None) - self.description = kwargs.get('description', None) - self.id = None - self.type = kwargs.get('type', None) - self.name = kwargs.get('name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment_py3.py deleted file mode 100644 index cef46871ca79..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_assignment_py3.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :ivar id: The ID of the policy assignment. - :vartype id: str - :param type: The type of the policy assignment. - :type type: str - :param name: The name of the policy assignment. - :type name: str - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, parameters=None, description: str=None, type: str=None, name: str=None, **kwargs) -> None: - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = display_name - self.policy_definition_id = policy_definition_id - self.scope = scope - self.parameters = parameters - self.description = description - self.id = None - self.type = type - self.name = name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition_paged.py deleted file mode 100644 index aa6be03da0cd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/models/policy_definition_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyDefinitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyDefinition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/__init__.py index 3173ecfbfed4..f2da9f519a58 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/__init__.py @@ -9,8 +9,8 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_definitions_operations import PolicyDefinitionsOperations -from .policy_assignments_operations import PolicyAssignmentsOperations +from ._policy_definitions_operations import PolicyDefinitionsOperations +from ._policy_assignments_operations import PolicyAssignmentsOperations __all__ = [ 'PolicyDefinitionsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_assignments_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_assignments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_assignments_operations.py index ae8fa0fbcb96..31db8aee95ed 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_assignments_operations.py @@ -19,6 +19,8 @@ class PolicyAssignmentsOperations(object): """PolicyAssignmentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -89,7 +91,6 @@ def delete( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -162,7 +163,6 @@ def create( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -225,7 +225,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -255,8 +254,7 @@ def list_for_resource_group( ~azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource_group.metadata['url'] @@ -288,6 +286,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -298,12 +301,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} @@ -337,8 +338,7 @@ def list_for_resource( ~azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource.metadata['url'] @@ -374,6 +374,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -384,12 +389,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments'} @@ -410,8 +413,7 @@ def list( ~azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignmentPaged[~azure.mgmt.resource.policy.v2016_12_01.models.PolicyAssignment] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -442,6 +444,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -452,12 +459,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments'} @@ -519,7 +524,6 @@ def delete_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -596,7 +600,6 @@ def create_by_id( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -664,7 +667,6 @@ def get_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_definitions_operations.py index e3c708d2fa8b..ed33ad2ccbb7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_definitions_operations.py @@ -19,6 +19,8 @@ class PolicyDefinitionsOperations(object): """PolicyDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -94,7 +96,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -206,7 +207,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -266,7 +266,6 @@ def get_built_in( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -336,7 +335,6 @@ def create_or_update_at_management_group( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -452,7 +450,6 @@ def get_at_management_group( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -477,8 +474,7 @@ def list( ~azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -507,6 +503,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -517,12 +518,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions'} @@ -541,8 +540,7 @@ def list_built_in( ~azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_built_in.metadata['url'] @@ -567,6 +565,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -577,12 +580,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions'} @@ -604,8 +605,7 @@ def list_by_management_group( ~azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2016_12_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_management_group.metadata['url'] @@ -634,6 +634,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -644,12 +649,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/__init__.py index 2564f85cc82c..56bf47bfb9e4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_client import PolicyClient -from .version import VERSION +from ._configuration import PolicyClientConfiguration +from ._policy_client import PolicyClient +__all__ = ['PolicyClient', 'PolicyClientConfiguration'] -__all__ = ['PolicyClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_configuration.py new file mode 100644 index 000000000000..ede4f42045d0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class PolicyClientConfiguration(AzureConfiguration): + """Configuration for PolicyClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(PolicyClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/policy_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_policy_client.py similarity index 63% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/policy_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_policy_client.py index d1c7ed935275..9a00705a2b01 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/policy_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/_policy_client.py @@ -11,44 +11,12 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.policy_assignments_operations import PolicyAssignmentsOperations -from .operations.policy_set_definitions_operations import PolicySetDefinitionsOperations -from .operations.policy_definitions_operations import PolicyDefinitionsOperations -from . import models - - -class PolicyClientConfiguration(AzureConfiguration): - """Configuration for PolicyClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(PolicyClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import PolicyClientConfiguration +from .operations import PolicyAssignmentsOperations +from .operations import PolicySetDefinitionsOperations +from .operations import PolicyDefinitionsOperations +from . import models class PolicyClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/__init__.py index 6da1b02582b9..e5181236c025 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/__init__.py @@ -10,34 +10,34 @@ # -------------------------------------------------------------------------- try: - from .policy_sku_py3 import PolicySku - from .policy_assignment_py3 import PolicyAssignment - from .error_response_py3 import ErrorResponse, ErrorResponseException - from .policy_definition_reference_py3 import PolicyDefinitionReference - from .policy_set_definition_py3 import PolicySetDefinition - from .policy_definition_py3 import PolicyDefinition + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import PolicyAssignment + from ._models_py3 import PolicyDefinition + from ._models_py3 import PolicyDefinitionReference + from ._models_py3 import PolicySetDefinition + from ._models_py3 import PolicySku except (SyntaxError, ImportError): - from .policy_sku import PolicySku - from .policy_assignment import PolicyAssignment - from .error_response import ErrorResponse, ErrorResponseException - from .policy_definition_reference import PolicyDefinitionReference - from .policy_set_definition import PolicySetDefinition - from .policy_definition import PolicyDefinition -from .policy_assignment_paged import PolicyAssignmentPaged -from .policy_set_definition_paged import PolicySetDefinitionPaged -from .policy_definition_paged import PolicyDefinitionPaged -from .policy_client_enums import ( + from ._models import ErrorResponse, ErrorResponseException + from ._models import PolicyAssignment + from ._models import PolicyDefinition + from ._models import PolicyDefinitionReference + from ._models import PolicySetDefinition + from ._models import PolicySku +from ._paged_models import PolicyAssignmentPaged +from ._paged_models import PolicyDefinitionPaged +from ._paged_models import PolicySetDefinitionPaged +from ._policy_client_enums import ( PolicyType, PolicyMode, ) __all__ = [ - 'PolicySku', - 'PolicyAssignment', 'ErrorResponse', 'ErrorResponseException', + 'PolicyAssignment', + 'PolicyDefinition', 'PolicyDefinitionReference', 'PolicySetDefinition', - 'PolicyDefinition', + 'PolicySku', 'PolicyAssignmentPaged', 'PolicySetDefinitionPaged', 'PolicyDefinitionPaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models.py new file mode 100644 index 000000000000..22d1ab104b50 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models.py @@ -0,0 +1,302 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates ARM is not able to process the incoming request. + The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = kwargs.get('http_status', None) + self.error_code = kwargs.get('error_code', None) + self.error_message = kwargs.get('error_message', None) + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param not_scopes: The policy's excluded scopes. + :type not_scopes: list[str] + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :param metadata: The policy assignment metadata. + :type metadata: object + :ivar id: The ID of the policy assignment. + :vartype id: str + :ivar type: The type of the policy assignment. + :vartype type: str + :ivar name: The name of the policy assignment. + :vartype name: str + :param sku: The policy sku. + :type sku: + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicySku + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PolicySku'}, + } + + def __init__(self, **kwargs): + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.scope = kwargs.get('scope', None) + self.not_scopes = kwargs.get('not_scopes', None) + self.parameters = kwargs.get('parameters', None) + self.description = kwargs.get('description', None) + self.metadata = kwargs.get('metadata', None) + self.id = None + self.type = None + self.name = None + self.sku = kwargs.get('sku', None) + + +class PolicyDefinition(Model): + """The policy definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType + :param mode: The policy definition mode. Possible values are NotSpecified, + Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', + 'All' + :type mode: str or + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyMode + :param display_name: The display name of the policy definition. + :type display_name: str + :param description: The policy definition description. + :type description: str + :param policy_rule: The policy rule. + :type policy_rule: object + :param metadata: The policy definition metadata. + :type metadata: object + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :ivar id: The ID of the policy definition. + :vartype id: str + :ivar name: The name of the policy definition. + :vartype name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'mode': {'key': 'properties.mode', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicyDefinition, self).__init__(**kwargs) + self.policy_type = kwargs.get('policy_type', None) + self.mode = kwargs.get('mode', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.policy_rule = kwargs.get('policy_rule', None) + self.metadata = kwargs.get('metadata', None) + self.parameters = kwargs.get('parameters', None) + self.id = None + self.name = None + + +class PolicyDefinitionReference(Model): + """The policy definition reference. + + :param policy_definition_id: The ID of the policy definition or policy set + definition. + :type policy_definition_id: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + """ + + _attribute_map = { + 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(PolicyDefinitionReference, self).__init__(**kwargs) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.parameters = kwargs.get('parameters', None) + + +class PolicySetDefinition(Model): + """The policy set definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType + :param display_name: The display name of the policy set definition. + :type display_name: str + :param description: The policy set definition description. + :type description: str + :param metadata: The policy set definition metadata. + :type metadata: object + :param parameters: The policy set definition parameters that can be used + in policy definition references. + :type parameters: object + :param policy_definitions: Required. An array of policy definition + references. + :type policy_definitions: + list[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionReference] + :ivar id: The ID of the policy set definition. + :vartype id: str + :ivar name: The name of the policy set definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policySetDefinitions). + :vartype type: str + """ + + _validation = { + 'policy_definitions': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicySetDefinition, self).__init__(**kwargs) + self.policy_type = kwargs.get('policy_type', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.metadata = kwargs.get('metadata', None) + self.parameters = kwargs.get('parameters', None) + self.policy_definitions = kwargs.get('policy_definitions', None) + self.id = None + self.name = None + self.type = None + + +class PolicySku(Model): + """The policy sku. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the policy sku. Possible values are A0 + and A1. + :type name: str + :param tier: The policy sku tier. Possible values are Free and Standard. + :type tier: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicySku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models_py3.py new file mode 100644 index 000000000000..55e76e7672e5 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_models_py3.py @@ -0,0 +1,302 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates ARM is not able to process the incoming request. + The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = http_status + self.error_code = error_code + self.error_message = error_message + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param not_scopes: The policy's excluded scopes. + :type not_scopes: list[str] + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :param metadata: The policy assignment metadata. + :type metadata: object + :ivar id: The ID of the policy assignment. + :vartype id: str + :ivar type: The type of the policy assignment. + :vartype type: str + :ivar name: The name of the policy assignment. + :vartype name: str + :param sku: The policy sku. + :type sku: + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicySku + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PolicySku'}, + } + + def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, not_scopes=None, parameters=None, description: str=None, metadata=None, sku=None, **kwargs) -> None: + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = display_name + self.policy_definition_id = policy_definition_id + self.scope = scope + self.not_scopes = not_scopes + self.parameters = parameters + self.description = description + self.metadata = metadata + self.id = None + self.type = None + self.name = None + self.sku = sku + + +class PolicyDefinition(Model): + """The policy definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType + :param mode: The policy definition mode. Possible values are NotSpecified, + Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', + 'All' + :type mode: str or + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyMode + :param display_name: The display name of the policy definition. + :type display_name: str + :param description: The policy definition description. + :type description: str + :param policy_rule: The policy rule. + :type policy_rule: object + :param metadata: The policy definition metadata. + :type metadata: object + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :ivar id: The ID of the policy definition. + :vartype id: str + :ivar name: The name of the policy definition. + :vartype name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'mode': {'key': 'properties.mode', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, policy_type=None, mode=None, display_name: str=None, description: str=None, policy_rule=None, metadata=None, parameters=None, **kwargs) -> None: + super(PolicyDefinition, self).__init__(**kwargs) + self.policy_type = policy_type + self.mode = mode + self.display_name = display_name + self.description = description + self.policy_rule = policy_rule + self.metadata = metadata + self.parameters = parameters + self.id = None + self.name = None + + +class PolicyDefinitionReference(Model): + """The policy definition reference. + + :param policy_definition_id: The ID of the policy definition or policy set + definition. + :type policy_definition_id: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + """ + + _attribute_map = { + 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, *, policy_definition_id: str=None, parameters=None, **kwargs) -> None: + super(PolicyDefinitionReference, self).__init__(**kwargs) + self.policy_definition_id = policy_definition_id + self.parameters = parameters + + +class PolicySetDefinition(Model): + """The policy set definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType + :param display_name: The display name of the policy set definition. + :type display_name: str + :param description: The policy set definition description. + :type description: str + :param metadata: The policy set definition metadata. + :type metadata: object + :param parameters: The policy set definition parameters that can be used + in policy definition references. + :type parameters: object + :param policy_definitions: Required. An array of policy definition + references. + :type policy_definitions: + list[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionReference] + :ivar id: The ID of the policy set definition. + :vartype id: str + :ivar name: The name of the policy set definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policySetDefinitions). + :vartype type: str + """ + + _validation = { + 'policy_definitions': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, policy_definitions, policy_type=None, display_name: str=None, description: str=None, metadata=None, parameters=None, **kwargs) -> None: + super(PolicySetDefinition, self).__init__(**kwargs) + self.policy_type = policy_type + self.display_name = display_name + self.description = description + self.metadata = metadata + self.parameters = parameters + self.policy_definitions = policy_definitions + self.id = None + self.name = None + self.type = None + + +class PolicySku(Model): + """The policy sku. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the policy sku. Possible values are A0 + and A1. + :type name: str + :param tier: The policy sku tier. Possible values are Free and Standard. + :type tier: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, *, name: str, tier: str=None, **kwargs) -> None: + super(PolicySku, self).__init__(**kwargs) + self.name = name + self.tier = tier diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_paged_models.py similarity index 51% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_paged_models.py index 7d16d2506b15..0976003bf1d6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_paged_models.py @@ -12,6 +12,19 @@ from msrest.paging import Paged +class PolicyAssignmentPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyAssignment ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyAssignment]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) class PolicySetDefinitionPaged(Paged): """ A paging container for iterating over a list of :class:`PolicySetDefinition ` object @@ -25,3 +38,16 @@ class PolicySetDefinitionPaged(Paged): def __init__(self, *args, **kwargs): super(PolicySetDefinitionPaged, self).__init__(*args, **kwargs) +class PolicyDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_policy_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/_policy_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response.py deleted file mode 100644 index 77b737c9884f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates ARM is not able to process the incoming request. - The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = kwargs.get('http_status', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response_py3.py deleted file mode 100644 index e76346b8c6ea..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/error_response_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates ARM is not able to process the incoming request. - The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = http_status - self.error_code = error_code - self.error_message = error_message - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment.py deleted file mode 100644 index 2accdb75d3d3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param not_scopes: The policy's excluded scopes. - :type not_scopes: list[str] - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :param metadata: The policy assignment metadata. - :type metadata: object - :ivar id: The ID of the policy assignment. - :vartype id: str - :ivar type: The type of the policy assignment. - :vartype type: str - :ivar name: The name of the policy assignment. - :vartype name: str - :param sku: The policy sku. - :type sku: - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicySku - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'PolicySku'}, - } - - def __init__(self, **kwargs): - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.scope = kwargs.get('scope', None) - self.not_scopes = kwargs.get('not_scopes', None) - self.parameters = kwargs.get('parameters', None) - self.description = kwargs.get('description', None) - self.metadata = kwargs.get('metadata', None) - self.id = None - self.type = None - self.name = None - self.sku = kwargs.get('sku', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment_paged.py deleted file mode 100644 index 28d3568ce6cb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyAssignmentPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyAssignment ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyAssignment]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment_py3.py deleted file mode 100644 index 5a0050ad04cd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_assignment_py3.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param not_scopes: The policy's excluded scopes. - :type not_scopes: list[str] - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :param metadata: The policy assignment metadata. - :type metadata: object - :ivar id: The ID of the policy assignment. - :vartype id: str - :ivar type: The type of the policy assignment. - :vartype type: str - :ivar name: The name of the policy assignment. - :vartype name: str - :param sku: The policy sku. - :type sku: - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicySku - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'PolicySku'}, - } - - def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, not_scopes=None, parameters=None, description: str=None, metadata=None, sku=None, **kwargs) -> None: - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = display_name - self.policy_definition_id = policy_definition_id - self.scope = scope - self.not_scopes = not_scopes - self.parameters = parameters - self.description = description - self.metadata = metadata - self.id = None - self.type = None - self.name = None - self.sku = sku diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition.py deleted file mode 100644 index 84ea23f76832..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinition(Model): - """The policy definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType - :param mode: The policy definition mode. Possible values are NotSpecified, - Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', - 'All' - :type mode: str or - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyMode - :param display_name: The display name of the policy definition. - :type display_name: str - :param description: The policy definition description. - :type description: str - :param policy_rule: The policy rule. - :type policy_rule: object - :param metadata: The policy definition metadata. - :type metadata: object - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :ivar id: The ID of the policy definition. - :vartype id: str - :ivar name: The name of the policy definition. - :vartype name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'mode': {'key': 'properties.mode', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicyDefinition, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.mode = kwargs.get('mode', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.policy_rule = kwargs.get('policy_rule', None) - self.metadata = kwargs.get('metadata', None) - self.parameters = kwargs.get('parameters', None) - self.id = None - self.name = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_paged.py deleted file mode 100644 index 572a552e8702..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyDefinitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyDefinition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_py3.py deleted file mode 100644 index 34b21e1e1586..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_py3.py +++ /dev/null @@ -1,74 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinition(Model): - """The policy definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType - :param mode: The policy definition mode. Possible values are NotSpecified, - Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', - 'All' - :type mode: str or - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyMode - :param display_name: The display name of the policy definition. - :type display_name: str - :param description: The policy definition description. - :type description: str - :param policy_rule: The policy rule. - :type policy_rule: object - :param metadata: The policy definition metadata. - :type metadata: object - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :ivar id: The ID of the policy definition. - :vartype id: str - :ivar name: The name of the policy definition. - :vartype name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'mode': {'key': 'properties.mode', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, policy_type=None, mode=None, display_name: str=None, description: str=None, policy_rule=None, metadata=None, parameters=None, **kwargs) -> None: - super(PolicyDefinition, self).__init__(**kwargs) - self.policy_type = policy_type - self.mode = mode - self.display_name = display_name - self.description = description - self.policy_rule = policy_rule - self.metadata = metadata - self.parameters = parameters - self.id = None - self.name = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_reference.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_reference.py deleted file mode 100644 index cf0be3729831..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinitionReference(Model): - """The policy definition reference. - - :param policy_definition_id: The ID of the policy definition or policy set - definition. - :type policy_definition_id: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - """ - - _attribute_map = { - 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(PolicyDefinitionReference, self).__init__(**kwargs) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_reference_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_reference_py3.py deleted file mode 100644 index e9aac83dc16e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_definition_reference_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinitionReference(Model): - """The policy definition reference. - - :param policy_definition_id: The ID of the policy definition or policy set - definition. - :type policy_definition_id: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - """ - - _attribute_map = { - 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, *, policy_definition_id: str=None, parameters=None, **kwargs) -> None: - super(PolicyDefinitionReference, self).__init__(**kwargs) - self.policy_definition_id = policy_definition_id - self.parameters = parameters diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition.py deleted file mode 100644 index bc5146745c70..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetDefinition(Model): - """The policy set definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType - :param display_name: The display name of the policy set definition. - :type display_name: str - :param description: The policy set definition description. - :type description: str - :param metadata: The policy set definition metadata. - :type metadata: object - :param parameters: The policy set definition parameters that can be used - in policy definition references. - :type parameters: object - :param policy_definitions: Required. An array of policy definition - references. - :type policy_definitions: - list[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionReference] - :ivar id: The ID of the policy set definition. - :vartype id: str - :ivar name: The name of the policy set definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policySetDefinitions). - :vartype type: str - """ - - _validation = { - 'policy_definitions': {'required': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicySetDefinition, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.metadata = kwargs.get('metadata', None) - self.parameters = kwargs.get('parameters', None) - self.policy_definitions = kwargs.get('policy_definitions', None) - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition_py3.py deleted file mode 100644 index bcdf80529bda..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_set_definition_py3.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetDefinition(Model): - """The policy set definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyType - :param display_name: The display name of the policy set definition. - :type display_name: str - :param description: The policy set definition description. - :type description: str - :param metadata: The policy set definition metadata. - :type metadata: object - :param parameters: The policy set definition parameters that can be used - in policy definition references. - :type parameters: object - :param policy_definitions: Required. An array of policy definition - references. - :type policy_definitions: - list[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionReference] - :ivar id: The ID of the policy set definition. - :vartype id: str - :ivar name: The name of the policy set definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policySetDefinitions). - :vartype type: str - """ - - _validation = { - 'policy_definitions': {'required': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, policy_definitions, policy_type=None, display_name: str=None, description: str=None, metadata=None, parameters=None, **kwargs) -> None: - super(PolicySetDefinition, self).__init__(**kwargs) - self.policy_type = policy_type - self.display_name = display_name - self.description = description - self.metadata = metadata - self.parameters = parameters - self.policy_definitions = policy_definitions - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_sku.py deleted file mode 100644 index 8e3dfbbd60e5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_sku.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySku(Model): - """The policy sku. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the policy sku. Possible values are A0 - and A1. - :type name: str - :param tier: The policy sku tier. Possible values are Free and Standard. - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicySku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_sku_py3.py deleted file mode 100644 index 8015144450cc..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/models/policy_sku_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySku(Model): - """The policy sku. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the policy sku. Possible values are A0 - and A1. - :type name: str - :param tier: The policy sku tier. Possible values are Free and Standard. - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, *, name: str, tier: str=None, **kwargs) -> None: - super(PolicySku, self).__init__(**kwargs) - self.name = name - self.tier = tier diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/__init__.py index ff5c8196eeb4..c23e1d9aaddf 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/__init__.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_assignments_operations import PolicyAssignmentsOperations -from .policy_set_definitions_operations import PolicySetDefinitionsOperations -from .policy_definitions_operations import PolicyDefinitionsOperations +from ._policy_assignments_operations import PolicyAssignmentsOperations +from ._policy_set_definitions_operations import PolicySetDefinitionsOperations +from ._policy_definitions_operations import PolicyDefinitionsOperations __all__ = [ 'PolicyAssignmentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_assignments_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_assignments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_assignments_operations.py index 010782a793c5..83547de462c5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_assignments_operations.py @@ -18,6 +18,8 @@ class PolicyAssignmentsOperations(object): """PolicyAssignmentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -87,7 +89,6 @@ def delete( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -159,7 +160,6 @@ def create( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -221,7 +221,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -252,8 +251,7 @@ def list_for_resource_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource_group.metadata['url'] @@ -285,6 +283,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -293,12 +296,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} @@ -333,8 +334,7 @@ def list_for_resource( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource.metadata['url'] @@ -370,6 +370,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -378,12 +383,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments'} @@ -405,8 +408,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -437,6 +439,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -445,12 +452,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments'} @@ -511,7 +516,6 @@ def delete_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -587,7 +591,6 @@ def create_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -654,7 +657,6 @@ def get_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_definitions_operations.py index 9603a0061a3e..08ddebdf7963 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_definitions_operations.py @@ -19,6 +19,8 @@ class PolicyDefinitionsOperations(object): """PolicyDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -94,7 +96,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -206,7 +207,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -266,7 +266,6 @@ def get_built_in( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -336,7 +335,6 @@ def create_or_update_at_management_group( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -452,7 +450,6 @@ def get_at_management_group( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -477,8 +474,7 @@ def list( ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -507,6 +503,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -517,12 +518,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions'} @@ -541,8 +540,7 @@ def list_built_in( ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_built_in.metadata['url'] @@ -567,6 +565,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -577,12 +580,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions'} @@ -604,8 +605,7 @@ def list_by_management_group( ~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2017_06_01_preview.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_management_group.metadata['url'] @@ -634,6 +634,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -644,12 +649,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_set_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_set_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_set_definitions_operations.py index abb66dc2c97f..1a7e847aaa28 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2017_06_01_preview/operations/_policy_set_definitions_operations.py @@ -18,6 +18,8 @@ class PolicySetDefinitionsOperations(object): """PolicySetDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -92,7 +94,6 @@ def create_or_update( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) if response.status_code == 201: @@ -204,7 +205,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -263,7 +263,6 @@ def get_built_in( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -289,8 +288,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -319,6 +317,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -327,12 +330,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions'} @@ -352,8 +353,7 @@ def list_built_in( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_built_in.metadata['url'] @@ -378,6 +378,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -386,12 +391,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policySetDefinitions'} @@ -454,7 +457,6 @@ def create_or_update_at_management_group( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) if response.status_code == 201: @@ -570,7 +572,6 @@ def get_at_management_group( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -599,8 +600,7 @@ def list_by_management_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_management_group.metadata['url'] @@ -629,6 +629,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -637,12 +642,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/__init__.py index 2564f85cc82c..56bf47bfb9e4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_client import PolicyClient -from .version import VERSION +from ._configuration import PolicyClientConfiguration +from ._policy_client import PolicyClient +__all__ = ['PolicyClient', 'PolicyClientConfiguration'] -__all__ = ['PolicyClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_configuration.py new file mode 100644 index 000000000000..ede4f42045d0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class PolicyClientConfiguration(AzureConfiguration): + """Configuration for PolicyClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(PolicyClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/policy_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_policy_client.py similarity index 63% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/policy_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_policy_client.py index 74fc43b124ba..4983c9ac6074 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/policy_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/_policy_client.py @@ -11,44 +11,12 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.policy_assignments_operations import PolicyAssignmentsOperations -from .operations.policy_definitions_operations import PolicyDefinitionsOperations -from .operations.policy_set_definitions_operations import PolicySetDefinitionsOperations -from . import models - - -class PolicyClientConfiguration(AzureConfiguration): - """Configuration for PolicyClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(PolicyClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import PolicyClientConfiguration +from .operations import PolicyAssignmentsOperations +from .operations import PolicyDefinitionsOperations +from .operations import PolicySetDefinitionsOperations +from . import models class PolicyClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/__init__.py index dd1cb568ad5d..1a9eddc2a495 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/__init__.py @@ -10,34 +10,34 @@ # -------------------------------------------------------------------------- try: - from .policy_sku_py3 import PolicySku - from .policy_assignment_py3 import PolicyAssignment - from .error_response_py3 import ErrorResponse, ErrorResponseException - from .policy_definition_py3 import PolicyDefinition - from .policy_definition_reference_py3 import PolicyDefinitionReference - from .policy_set_definition_py3 import PolicySetDefinition + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import PolicyAssignment + from ._models_py3 import PolicyDefinition + from ._models_py3 import PolicyDefinitionReference + from ._models_py3 import PolicySetDefinition + from ._models_py3 import PolicySku except (SyntaxError, ImportError): - from .policy_sku import PolicySku - from .policy_assignment import PolicyAssignment - from .error_response import ErrorResponse, ErrorResponseException - from .policy_definition import PolicyDefinition - from .policy_definition_reference import PolicyDefinitionReference - from .policy_set_definition import PolicySetDefinition -from .policy_assignment_paged import PolicyAssignmentPaged -from .policy_definition_paged import PolicyDefinitionPaged -from .policy_set_definition_paged import PolicySetDefinitionPaged -from .policy_client_enums import ( + from ._models import ErrorResponse, ErrorResponseException + from ._models import PolicyAssignment + from ._models import PolicyDefinition + from ._models import PolicyDefinitionReference + from ._models import PolicySetDefinition + from ._models import PolicySku +from ._paged_models import PolicyAssignmentPaged +from ._paged_models import PolicyDefinitionPaged +from ._paged_models import PolicySetDefinitionPaged +from ._policy_client_enums import ( PolicyType, PolicyMode, ) __all__ = [ - 'PolicySku', - 'PolicyAssignment', 'ErrorResponse', 'ErrorResponseException', + 'PolicyAssignment', 'PolicyDefinition', 'PolicyDefinitionReference', 'PolicySetDefinition', + 'PolicySku', 'PolicyAssignmentPaged', 'PolicyDefinitionPaged', 'PolicySetDefinitionPaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models.py new file mode 100644 index 000000000000..daa3d4d5a3ad --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models.py @@ -0,0 +1,309 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates Azure Resource Manager is not able to process the + incoming request. The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = kwargs.get('http_status', None) + self.error_code = kwargs.get('error_code', None) + self.error_message = kwargs.get('error_message', None) + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition or policy set + definition being assigned. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param not_scopes: The policy's excluded scopes. + :type not_scopes: list[str] + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :param metadata: The policy assignment metadata. + :type metadata: object + :ivar id: The ID of the policy assignment. + :vartype id: str + :ivar type: The type of the policy assignment. + :vartype type: str + :ivar name: The name of the policy assignment. + :vartype name: str + :param sku: The policy sku. This property is optional, obsolete, and will + be ignored. + :type sku: ~azure.mgmt.resource.policy.v2018_03_01.models.PolicySku + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PolicySku'}, + } + + def __init__(self, **kwargs): + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.scope = kwargs.get('scope', None) + self.not_scopes = kwargs.get('not_scopes', None) + self.parameters = kwargs.get('parameters', None) + self.description = kwargs.get('description', None) + self.metadata = kwargs.get('metadata', None) + self.id = None + self.type = None + self.name = None + self.sku = kwargs.get('sku', None) + + +class PolicyDefinition(Model): + """The policy definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType + :param mode: The policy definition mode. Possible values are NotSpecified, + Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', + 'All' + :type mode: str or + ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyMode + :param display_name: The display name of the policy definition. + :type display_name: str + :param description: The policy definition description. + :type description: str + :param policy_rule: The policy rule. + :type policy_rule: object + :param metadata: The policy definition metadata. + :type metadata: object + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :ivar id: The ID of the policy definition. + :vartype id: str + :ivar name: The name of the policy definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policyDefinitions). + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'mode': {'key': 'properties.mode', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicyDefinition, self).__init__(**kwargs) + self.policy_type = kwargs.get('policy_type', None) + self.mode = kwargs.get('mode', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.policy_rule = kwargs.get('policy_rule', None) + self.metadata = kwargs.get('metadata', None) + self.parameters = kwargs.get('parameters', None) + self.id = None + self.name = None + self.type = None + + +class PolicyDefinitionReference(Model): + """The policy definition reference. + + :param policy_definition_id: The ID of the policy definition or policy set + definition. + :type policy_definition_id: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + """ + + _attribute_map = { + 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(PolicyDefinitionReference, self).__init__(**kwargs) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.parameters = kwargs.get('parameters', None) + + +class PolicySetDefinition(Model): + """The policy set definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType + :param display_name: The display name of the policy set definition. + :type display_name: str + :param description: The policy set definition description. + :type description: str + :param metadata: The policy set definition metadata. + :type metadata: object + :param parameters: The policy set definition parameters that can be used + in policy definition references. + :type parameters: object + :param policy_definitions: Required. An array of policy definition + references. + :type policy_definitions: + list[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionReference] + :ivar id: The ID of the policy set definition. + :vartype id: str + :ivar name: The name of the policy set definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policySetDefinitions). + :vartype type: str + """ + + _validation = { + 'policy_definitions': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicySetDefinition, self).__init__(**kwargs) + self.policy_type = kwargs.get('policy_type', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.metadata = kwargs.get('metadata', None) + self.parameters = kwargs.get('parameters', None) + self.policy_definitions = kwargs.get('policy_definitions', None) + self.id = None + self.name = None + self.type = None + + +class PolicySku(Model): + """The policy sku. This property is optional, obsolete, and will be ignored. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the policy sku. Possible values are A0 + and A1. + :type name: str + :param tier: The policy sku tier. Possible values are Free and Standard. + :type tier: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicySku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models_py3.py new file mode 100644 index 000000000000..f0ecf1435043 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_models_py3.py @@ -0,0 +1,309 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates Azure Resource Manager is not able to process the + incoming request. The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = http_status + self.error_code = error_code + self.error_message = error_message + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition or policy set + definition being assigned. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param not_scopes: The policy's excluded scopes. + :type not_scopes: list[str] + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :param metadata: The policy assignment metadata. + :type metadata: object + :ivar id: The ID of the policy assignment. + :vartype id: str + :ivar type: The type of the policy assignment. + :vartype type: str + :ivar name: The name of the policy assignment. + :vartype name: str + :param sku: The policy sku. This property is optional, obsolete, and will + be ignored. + :type sku: ~azure.mgmt.resource.policy.v2018_03_01.models.PolicySku + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PolicySku'}, + } + + def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, not_scopes=None, parameters=None, description: str=None, metadata=None, sku=None, **kwargs) -> None: + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = display_name + self.policy_definition_id = policy_definition_id + self.scope = scope + self.not_scopes = not_scopes + self.parameters = parameters + self.description = description + self.metadata = metadata + self.id = None + self.type = None + self.name = None + self.sku = sku + + +class PolicyDefinition(Model): + """The policy definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType + :param mode: The policy definition mode. Possible values are NotSpecified, + Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', + 'All' + :type mode: str or + ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyMode + :param display_name: The display name of the policy definition. + :type display_name: str + :param description: The policy definition description. + :type description: str + :param policy_rule: The policy rule. + :type policy_rule: object + :param metadata: The policy definition metadata. + :type metadata: object + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :ivar id: The ID of the policy definition. + :vartype id: str + :ivar name: The name of the policy definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policyDefinitions). + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'mode': {'key': 'properties.mode', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, policy_type=None, mode=None, display_name: str=None, description: str=None, policy_rule=None, metadata=None, parameters=None, **kwargs) -> None: + super(PolicyDefinition, self).__init__(**kwargs) + self.policy_type = policy_type + self.mode = mode + self.display_name = display_name + self.description = description + self.policy_rule = policy_rule + self.metadata = metadata + self.parameters = parameters + self.id = None + self.name = None + self.type = None + + +class PolicyDefinitionReference(Model): + """The policy definition reference. + + :param policy_definition_id: The ID of the policy definition or policy set + definition. + :type policy_definition_id: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + """ + + _attribute_map = { + 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, *, policy_definition_id: str=None, parameters=None, **kwargs) -> None: + super(PolicyDefinitionReference, self).__init__(**kwargs) + self.policy_definition_id = policy_definition_id + self.parameters = parameters + + +class PolicySetDefinition(Model): + """The policy set definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType + :param display_name: The display name of the policy set definition. + :type display_name: str + :param description: The policy set definition description. + :type description: str + :param metadata: The policy set definition metadata. + :type metadata: object + :param parameters: The policy set definition parameters that can be used + in policy definition references. + :type parameters: object + :param policy_definitions: Required. An array of policy definition + references. + :type policy_definitions: + list[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionReference] + :ivar id: The ID of the policy set definition. + :vartype id: str + :ivar name: The name of the policy set definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policySetDefinitions). + :vartype type: str + """ + + _validation = { + 'policy_definitions': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, policy_definitions, policy_type=None, display_name: str=None, description: str=None, metadata=None, parameters=None, **kwargs) -> None: + super(PolicySetDefinition, self).__init__(**kwargs) + self.policy_type = policy_type + self.display_name = display_name + self.description = description + self.metadata = metadata + self.parameters = parameters + self.policy_definitions = policy_definitions + self.id = None + self.name = None + self.type = None + + +class PolicySku(Model): + """The policy sku. This property is optional, obsolete, and will be ignored. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the policy sku. Possible values are A0 + and A1. + :type name: str + :param tier: The policy sku tier. Possible values are Free and Standard. + :type tier: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, *, name: str, tier: str=None, **kwargs) -> None: + super(PolicySku, self).__init__(**kwargs) + self.name = name + self.tier = tier diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_paged_models.py similarity index 51% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_paged_models.py index 0abd4a93a801..fcb95b3a70bc 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_paged_models.py @@ -12,6 +12,32 @@ from msrest.paging import Paged +class PolicyAssignmentPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyAssignment ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyAssignment]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) +class PolicyDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) class PolicySetDefinitionPaged(Paged): """ A paging container for iterating over a list of :class:`PolicySetDefinition ` object diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_policy_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/_policy_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/error_response.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/error_response.py deleted file mode 100644 index ad2f6934e216..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/error_response.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates Azure Resource Manager is not able to process the - incoming request. The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = kwargs.get('http_status', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/error_response_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/error_response_py3.py deleted file mode 100644 index c55e28548997..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/error_response_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates Azure Resource Manager is not able to process the - incoming request. The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = http_status - self.error_code = error_code - self.error_message = error_message - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment.py deleted file mode 100644 index 2b9c140ac669..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition or policy set - definition being assigned. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param not_scopes: The policy's excluded scopes. - :type not_scopes: list[str] - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :param metadata: The policy assignment metadata. - :type metadata: object - :ivar id: The ID of the policy assignment. - :vartype id: str - :ivar type: The type of the policy assignment. - :vartype type: str - :ivar name: The name of the policy assignment. - :vartype name: str - :param sku: The policy sku. This property is optional, obsolete, and will - be ignored. - :type sku: ~azure.mgmt.resource.policy.v2018_03_01.models.PolicySku - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'PolicySku'}, - } - - def __init__(self, **kwargs): - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.scope = kwargs.get('scope', None) - self.not_scopes = kwargs.get('not_scopes', None) - self.parameters = kwargs.get('parameters', None) - self.description = kwargs.get('description', None) - self.metadata = kwargs.get('metadata', None) - self.id = None - self.type = None - self.name = None - self.sku = kwargs.get('sku', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment_paged.py deleted file mode 100644 index 771a0a781699..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyAssignmentPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyAssignment ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyAssignment]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment_py3.py deleted file mode 100644 index 0decc07c025c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_assignment_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition or policy set - definition being assigned. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param not_scopes: The policy's excluded scopes. - :type not_scopes: list[str] - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :param metadata: The policy assignment metadata. - :type metadata: object - :ivar id: The ID of the policy assignment. - :vartype id: str - :ivar type: The type of the policy assignment. - :vartype type: str - :ivar name: The name of the policy assignment. - :vartype name: str - :param sku: The policy sku. This property is optional, obsolete, and will - be ignored. - :type sku: ~azure.mgmt.resource.policy.v2018_03_01.models.PolicySku - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'PolicySku'}, - } - - def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, not_scopes=None, parameters=None, description: str=None, metadata=None, sku=None, **kwargs) -> None: - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = display_name - self.policy_definition_id = policy_definition_id - self.scope = scope - self.not_scopes = not_scopes - self.parameters = parameters - self.description = description - self.metadata = metadata - self.id = None - self.type = None - self.name = None - self.sku = sku diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition.py deleted file mode 100644 index c6df3f54eda8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinition(Model): - """The policy definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType - :param mode: The policy definition mode. Possible values are NotSpecified, - Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', - 'All' - :type mode: str or - ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyMode - :param display_name: The display name of the policy definition. - :type display_name: str - :param description: The policy definition description. - :type description: str - :param policy_rule: The policy rule. - :type policy_rule: object - :param metadata: The policy definition metadata. - :type metadata: object - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :ivar id: The ID of the policy definition. - :vartype id: str - :ivar name: The name of the policy definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policyDefinitions). - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'mode': {'key': 'properties.mode', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicyDefinition, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.mode = kwargs.get('mode', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.policy_rule = kwargs.get('policy_rule', None) - self.metadata = kwargs.get('metadata', None) - self.parameters = kwargs.get('parameters', None) - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_paged.py deleted file mode 100644 index 621abf24fbf3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyDefinitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyDefinition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_py3.py deleted file mode 100644 index 749f48425845..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinition(Model): - """The policy definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType - :param mode: The policy definition mode. Possible values are NotSpecified, - Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', - 'All' - :type mode: str or - ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyMode - :param display_name: The display name of the policy definition. - :type display_name: str - :param description: The policy definition description. - :type description: str - :param policy_rule: The policy rule. - :type policy_rule: object - :param metadata: The policy definition metadata. - :type metadata: object - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :ivar id: The ID of the policy definition. - :vartype id: str - :ivar name: The name of the policy definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policyDefinitions). - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'mode': {'key': 'properties.mode', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, policy_type=None, mode=None, display_name: str=None, description: str=None, policy_rule=None, metadata=None, parameters=None, **kwargs) -> None: - super(PolicyDefinition, self).__init__(**kwargs) - self.policy_type = policy_type - self.mode = mode - self.display_name = display_name - self.description = description - self.policy_rule = policy_rule - self.metadata = metadata - self.parameters = parameters - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_reference.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_reference.py deleted file mode 100644 index cf0be3729831..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinitionReference(Model): - """The policy definition reference. - - :param policy_definition_id: The ID of the policy definition or policy set - definition. - :type policy_definition_id: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - """ - - _attribute_map = { - 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(PolicyDefinitionReference, self).__init__(**kwargs) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_reference_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_reference_py3.py deleted file mode 100644 index e9aac83dc16e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_definition_reference_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinitionReference(Model): - """The policy definition reference. - - :param policy_definition_id: The ID of the policy definition or policy set - definition. - :type policy_definition_id: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - """ - - _attribute_map = { - 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, *, policy_definition_id: str=None, parameters=None, **kwargs) -> None: - super(PolicyDefinitionReference, self).__init__(**kwargs) - self.policy_definition_id = policy_definition_id - self.parameters = parameters diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition.py deleted file mode 100644 index 25da3713065f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetDefinition(Model): - """The policy set definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType - :param display_name: The display name of the policy set definition. - :type display_name: str - :param description: The policy set definition description. - :type description: str - :param metadata: The policy set definition metadata. - :type metadata: object - :param parameters: The policy set definition parameters that can be used - in policy definition references. - :type parameters: object - :param policy_definitions: Required. An array of policy definition - references. - :type policy_definitions: - list[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionReference] - :ivar id: The ID of the policy set definition. - :vartype id: str - :ivar name: The name of the policy set definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policySetDefinitions). - :vartype type: str - """ - - _validation = { - 'policy_definitions': {'required': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicySetDefinition, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.metadata = kwargs.get('metadata', None) - self.parameters = kwargs.get('parameters', None) - self.policy_definitions = kwargs.get('policy_definitions', None) - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition_py3.py deleted file mode 100644 index 18ca8405d992..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_set_definition_py3.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetDefinition(Model): - """The policy set definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyType - :param display_name: The display name of the policy set definition. - :type display_name: str - :param description: The policy set definition description. - :type description: str - :param metadata: The policy set definition metadata. - :type metadata: object - :param parameters: The policy set definition parameters that can be used - in policy definition references. - :type parameters: object - :param policy_definitions: Required. An array of policy definition - references. - :type policy_definitions: - list[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionReference] - :ivar id: The ID of the policy set definition. - :vartype id: str - :ivar name: The name of the policy set definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policySetDefinitions). - :vartype type: str - """ - - _validation = { - 'policy_definitions': {'required': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, policy_definitions, policy_type=None, display_name: str=None, description: str=None, metadata=None, parameters=None, **kwargs) -> None: - super(PolicySetDefinition, self).__init__(**kwargs) - self.policy_type = policy_type - self.display_name = display_name - self.description = description - self.metadata = metadata - self.parameters = parameters - self.policy_definitions = policy_definitions - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_sku.py deleted file mode 100644 index 458f7cf52f45..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_sku.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySku(Model): - """The policy sku. This property is optional, obsolete, and will be ignored. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the policy sku. Possible values are A0 - and A1. - :type name: str - :param tier: The policy sku tier. Possible values are Free and Standard. - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicySku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_sku_py3.py deleted file mode 100644 index 824479c44f92..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/models/policy_sku_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySku(Model): - """The policy sku. This property is optional, obsolete, and will be ignored. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the policy sku. Possible values are A0 - and A1. - :type name: str - :param tier: The policy sku tier. Possible values are Free and Standard. - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, *, name: str, tier: str=None, **kwargs) -> None: - super(PolicySku, self).__init__(**kwargs) - self.name = name - self.tier = tier diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/__init__.py index 44d309ea01cc..c7d7b8eb9d97 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/__init__.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_assignments_operations import PolicyAssignmentsOperations -from .policy_definitions_operations import PolicyDefinitionsOperations -from .policy_set_definitions_operations import PolicySetDefinitionsOperations +from ._policy_assignments_operations import PolicyAssignmentsOperations +from ._policy_definitions_operations import PolicyDefinitionsOperations +from ._policy_set_definitions_operations import PolicySetDefinitionsOperations __all__ = [ 'PolicyAssignmentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_assignments_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_assignments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_assignments_operations.py index 90a73943331e..41987c9674bc 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_assignments_operations.py @@ -18,6 +18,8 @@ class PolicyAssignmentsOperations(object): """PolicyAssignmentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -99,7 +101,6 @@ def delete( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -179,7 +180,6 @@ def create( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -251,7 +251,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -299,8 +298,7 @@ def list_for_resource_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource_group.metadata['url'] @@ -332,6 +330,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -340,12 +343,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} @@ -414,8 +415,7 @@ def list_for_resource( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource.metadata['url'] @@ -451,6 +451,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -459,12 +464,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments'} @@ -503,8 +506,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -535,6 +537,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -543,12 +550,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments'} @@ -613,7 +618,6 @@ def delete_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -694,7 +698,6 @@ def create_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -765,7 +768,6 @@ def get_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_definitions_operations.py index 46606d5f4ecd..80cd5acd0fc0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_definitions_operations.py @@ -19,6 +19,8 @@ class PolicyDefinitionsOperations(object): """PolicyDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -97,7 +99,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -215,7 +216,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -278,7 +278,6 @@ def get_built_in( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -351,7 +350,6 @@ def create_or_update_at_management_group( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -473,7 +471,6 @@ def get_at_management_group( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -501,8 +498,7 @@ def list( ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -531,6 +527,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -541,12 +542,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions'} @@ -567,8 +566,7 @@ def list_built_in( ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_built_in.metadata['url'] @@ -593,6 +591,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -603,12 +606,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions'} @@ -632,8 +633,7 @@ def list_by_management_group( ~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2018_03_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_management_group.metadata['url'] @@ -662,6 +662,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -672,12 +677,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_set_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_set_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_set_definitions_operations.py index 103b775ad09d..25ff8e352860 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_03_01/operations/_policy_set_definitions_operations.py @@ -18,6 +18,8 @@ class PolicySetDefinitionsOperations(object): """PolicySetDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -95,7 +97,6 @@ def create_or_update( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) if response.status_code == 201: @@ -213,7 +214,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -275,7 +275,6 @@ def get_built_in( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -304,8 +303,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -334,6 +332,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -342,12 +345,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions'} @@ -370,8 +371,7 @@ def list_built_in( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_built_in.metadata['url'] @@ -396,6 +396,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -404,12 +409,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policySetDefinitions'} @@ -475,7 +478,6 @@ def create_or_update_at_management_group( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) if response.status_code == 201: @@ -597,7 +599,6 @@ def get_at_management_group( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -628,8 +629,7 @@ def list_by_management_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_management_group.metadata['url'] @@ -658,6 +658,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -666,12 +671,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/__init__.py index 2564f85cc82c..56bf47bfb9e4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_client import PolicyClient -from .version import VERSION +from ._configuration import PolicyClientConfiguration +from ._policy_client import PolicyClient +__all__ = ['PolicyClient', 'PolicyClientConfiguration'] -__all__ = ['PolicyClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_configuration.py new file mode 100644 index 000000000000..ede4f42045d0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class PolicyClientConfiguration(AzureConfiguration): + """Configuration for PolicyClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(PolicyClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/policy_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_policy_client.py similarity index 63% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/policy_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_policy_client.py index 0010638cf15c..cdb7cb010f89 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/policy_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_policy_client.py @@ -11,44 +11,12 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.policy_assignments_operations import PolicyAssignmentsOperations -from .operations.policy_definitions_operations import PolicyDefinitionsOperations -from .operations.policy_set_definitions_operations import PolicySetDefinitionsOperations -from . import models - - -class PolicyClientConfiguration(AzureConfiguration): - """Configuration for PolicyClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(PolicyClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import PolicyClientConfiguration +from .operations import PolicyAssignmentsOperations +from .operations import PolicyDefinitionsOperations +from .operations import PolicySetDefinitionsOperations +from . import models class PolicyClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/__init__.py index 46fa67515888..22ef4fecfb90 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/__init__.py @@ -10,38 +10,38 @@ # -------------------------------------------------------------------------- try: - from .policy_sku_py3 import PolicySku - from .identity_py3 import Identity - from .policy_assignment_py3 import PolicyAssignment - from .error_response_py3 import ErrorResponse, ErrorResponseException - from .policy_definition_py3 import PolicyDefinition - from .policy_definition_reference_py3 import PolicyDefinitionReference - from .policy_set_definition_py3 import PolicySetDefinition + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import Identity + from ._models_py3 import PolicyAssignment + from ._models_py3 import PolicyDefinition + from ._models_py3 import PolicyDefinitionReference + from ._models_py3 import PolicySetDefinition + from ._models_py3 import PolicySku except (SyntaxError, ImportError): - from .policy_sku import PolicySku - from .identity import Identity - from .policy_assignment import PolicyAssignment - from .error_response import ErrorResponse, ErrorResponseException - from .policy_definition import PolicyDefinition - from .policy_definition_reference import PolicyDefinitionReference - from .policy_set_definition import PolicySetDefinition -from .policy_assignment_paged import PolicyAssignmentPaged -from .policy_definition_paged import PolicyDefinitionPaged -from .policy_set_definition_paged import PolicySetDefinitionPaged -from .policy_client_enums import ( + from ._models import ErrorResponse, ErrorResponseException + from ._models import Identity + from ._models import PolicyAssignment + from ._models import PolicyDefinition + from ._models import PolicyDefinitionReference + from ._models import PolicySetDefinition + from ._models import PolicySku +from ._paged_models import PolicyAssignmentPaged +from ._paged_models import PolicyDefinitionPaged +from ._paged_models import PolicySetDefinitionPaged +from ._policy_client_enums import ( ResourceIdentityType, PolicyType, PolicyMode, ) __all__ = [ - 'PolicySku', + 'ErrorResponse', 'ErrorResponseException', 'Identity', 'PolicyAssignment', - 'ErrorResponse', 'ErrorResponseException', 'PolicyDefinition', 'PolicyDefinitionReference', 'PolicySetDefinition', + 'PolicySku', 'PolicyAssignmentPaged', 'PolicyDefinitionPaged', 'PolicySetDefinitionPaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models.py new file mode 100644 index 000000000000..1b784d1fa550 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models.py @@ -0,0 +1,353 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates Azure Resource Manager is not able to process the + incoming request. The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = kwargs.get('http_status', None) + self.error_code = kwargs.get('error_code', None) + self.error_message = kwargs.get('error_message', None) + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of the resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the resource identity. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'None' + :type type: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition or policy set + definition being assigned. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param not_scopes: The policy's excluded scopes. + :type not_scopes: list[str] + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :param metadata: The policy assignment metadata. + :type metadata: object + :ivar id: The ID of the policy assignment. + :vartype id: str + :ivar type: The type of the policy assignment. + :vartype type: str + :ivar name: The name of the policy assignment. + :vartype name: str + :param sku: The policy sku. This property is optional, obsolete, and will + be ignored. + :type sku: ~azure.mgmt.resource.policy.v2018_05_01.models.PolicySku + :param location: The location of the policy assignment. Only required when + utilizing managed identity. + :type location: str + :param identity: The managed identity associated with the policy + assignment. + :type identity: ~azure.mgmt.resource.policy.v2018_05_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PolicySku'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.scope = kwargs.get('scope', None) + self.not_scopes = kwargs.get('not_scopes', None) + self.parameters = kwargs.get('parameters', None) + self.description = kwargs.get('description', None) + self.metadata = kwargs.get('metadata', None) + self.id = None + self.type = None + self.name = None + self.sku = kwargs.get('sku', None) + self.location = kwargs.get('location', None) + self.identity = kwargs.get('identity', None) + + +class PolicyDefinition(Model): + """The policy definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType + :param mode: The policy definition mode. Possible values are NotSpecified, + Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', + 'All' + :type mode: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyMode + :param display_name: The display name of the policy definition. + :type display_name: str + :param description: The policy definition description. + :type description: str + :param policy_rule: The policy rule. + :type policy_rule: object + :param metadata: The policy definition metadata. + :type metadata: object + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :ivar id: The ID of the policy definition. + :vartype id: str + :ivar name: The name of the policy definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policyDefinitions). + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'mode': {'key': 'properties.mode', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicyDefinition, self).__init__(**kwargs) + self.policy_type = kwargs.get('policy_type', None) + self.mode = kwargs.get('mode', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.policy_rule = kwargs.get('policy_rule', None) + self.metadata = kwargs.get('metadata', None) + self.parameters = kwargs.get('parameters', None) + self.id = None + self.name = None + self.type = None + + +class PolicyDefinitionReference(Model): + """The policy definition reference. + + :param policy_definition_id: The ID of the policy definition or policy set + definition. + :type policy_definition_id: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + """ + + _attribute_map = { + 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(PolicyDefinitionReference, self).__init__(**kwargs) + self.policy_definition_id = kwargs.get('policy_definition_id', None) + self.parameters = kwargs.get('parameters', None) + + +class PolicySetDefinition(Model): + """The policy set definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType + :param display_name: The display name of the policy set definition. + :type display_name: str + :param description: The policy set definition description. + :type description: str + :param metadata: The policy set definition metadata. + :type metadata: object + :param parameters: The policy set definition parameters that can be used + in policy definition references. + :type parameters: object + :param policy_definitions: Required. An array of policy definition + references. + :type policy_definitions: + list[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionReference] + :ivar id: The ID of the policy set definition. + :vartype id: str + :ivar name: The name of the policy set definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policySetDefinitions). + :vartype type: str + """ + + _validation = { + 'policy_definitions': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicySetDefinition, self).__init__(**kwargs) + self.policy_type = kwargs.get('policy_type', None) + self.display_name = kwargs.get('display_name', None) + self.description = kwargs.get('description', None) + self.metadata = kwargs.get('metadata', None) + self.parameters = kwargs.get('parameters', None) + self.policy_definitions = kwargs.get('policy_definitions', None) + self.id = None + self.name = None + self.type = None + + +class PolicySku(Model): + """The policy sku. This property is optional, obsolete, and will be ignored. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the policy sku. Possible values are A0 + and A1. + :type name: str + :param tier: The policy sku tier. Possible values are Free and Standard. + :type tier: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PolicySku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models_py3.py new file mode 100644 index 000000000000..2b25ec9b1135 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_models_py3.py @@ -0,0 +1,353 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class ErrorResponse(Model): + """Error response indicates Azure Resource Manager is not able to process the + incoming request. The reason is provided in the error message. + + :param http_status: Http status code. + :type http_status: str + :param error_code: Error code. + :type error_code: str + :param error_message: Error message indicating why the operation failed. + :type error_message: str + """ + + _attribute_map = { + 'http_status': {'key': 'httpStatus', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, + } + + def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.http_status = http_status + self.error_code = error_code + self.error_message = error_message + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of the resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the resource identity. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'None' + :type type: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class PolicyAssignment(Model): + """The policy assignment. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_name: The display name of the policy assignment. + :type display_name: str + :param policy_definition_id: The ID of the policy definition or policy set + definition being assigned. + :type policy_definition_id: str + :param scope: The scope for the policy assignment. + :type scope: str + :param not_scopes: The policy's excluded scopes. + :type not_scopes: list[str] + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :param description: This message will be part of response in case of + policy violation. + :type description: str + :param metadata: The policy assignment metadata. + :type metadata: object + :ivar id: The ID of the policy assignment. + :vartype id: str + :ivar type: The type of the policy assignment. + :vartype type: str + :ivar name: The name of the policy assignment. + :vartype name: str + :param sku: The policy sku. This property is optional, obsolete, and will + be ignored. + :type sku: ~azure.mgmt.resource.policy.v2018_05_01.models.PolicySku + :param location: The location of the policy assignment. Only required when + utilizing managed identity. + :type location: str + :param identity: The managed identity associated with the policy + assignment. + :type identity: ~azure.mgmt.resource.policy.v2018_05_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, + 'scope': {'key': 'properties.scope', 'type': 'str'}, + 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'PolicySku'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, not_scopes=None, parameters=None, description: str=None, metadata=None, sku=None, location: str=None, identity=None, **kwargs) -> None: + super(PolicyAssignment, self).__init__(**kwargs) + self.display_name = display_name + self.policy_definition_id = policy_definition_id + self.scope = scope + self.not_scopes = not_scopes + self.parameters = parameters + self.description = description + self.metadata = metadata + self.id = None + self.type = None + self.name = None + self.sku = sku + self.location = location + self.identity = identity + + +class PolicyDefinition(Model): + """The policy definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType + :param mode: The policy definition mode. Possible values are NotSpecified, + Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', + 'All' + :type mode: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyMode + :param display_name: The display name of the policy definition. + :type display_name: str + :param description: The policy definition description. + :type description: str + :param policy_rule: The policy rule. + :type policy_rule: object + :param metadata: The policy definition metadata. + :type metadata: object + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + :ivar id: The ID of the policy definition. + :vartype id: str + :ivar name: The name of the policy definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policyDefinitions). + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'mode': {'key': 'properties.mode', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, policy_type=None, mode=None, display_name: str=None, description: str=None, policy_rule=None, metadata=None, parameters=None, **kwargs) -> None: + super(PolicyDefinition, self).__init__(**kwargs) + self.policy_type = policy_type + self.mode = mode + self.display_name = display_name + self.description = description + self.policy_rule = policy_rule + self.metadata = metadata + self.parameters = parameters + self.id = None + self.name = None + self.type = None + + +class PolicyDefinitionReference(Model): + """The policy definition reference. + + :param policy_definition_id: The ID of the policy definition or policy set + definition. + :type policy_definition_id: str + :param parameters: Required if a parameter is used in policy rule. + :type parameters: object + """ + + _attribute_map = { + 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + } + + def __init__(self, *, policy_definition_id: str=None, parameters=None, **kwargs) -> None: + super(PolicyDefinitionReference, self).__init__(**kwargs) + self.policy_definition_id = policy_definition_id + self.parameters = parameters + + +class PolicySetDefinition(Model): + """The policy set definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param policy_type: The type of policy definition. Possible values are + NotSpecified, BuiltIn, and Custom. Possible values include: + 'NotSpecified', 'BuiltIn', 'Custom' + :type policy_type: str or + ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType + :param display_name: The display name of the policy set definition. + :type display_name: str + :param description: The policy set definition description. + :type description: str + :param metadata: The policy set definition metadata. + :type metadata: object + :param parameters: The policy set definition parameters that can be used + in policy definition references. + :type parameters: object + :param policy_definitions: Required. An array of policy definition + references. + :type policy_definitions: + list[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionReference] + :ivar id: The ID of the policy set definition. + :vartype id: str + :ivar name: The name of the policy set definition. + :vartype name: str + :ivar type: The type of the resource + (Microsoft.Authorization/policySetDefinitions). + :vartype type: str + """ + + _validation = { + 'policy_definitions': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'metadata': {'key': 'properties.metadata', 'type': 'object'}, + 'parameters': {'key': 'properties.parameters', 'type': 'object'}, + 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, policy_definitions, policy_type=None, display_name: str=None, description: str=None, metadata=None, parameters=None, **kwargs) -> None: + super(PolicySetDefinition, self).__init__(**kwargs) + self.policy_type = policy_type + self.display_name = display_name + self.description = description + self.metadata = metadata + self.parameters = parameters + self.policy_definitions = policy_definitions + self.id = None + self.name = None + self.type = None + + +class PolicySku(Model): + """The policy sku. This property is optional, obsolete, and will be ignored. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the policy sku. Possible values are A0 + and A1. + :type name: str + :param tier: The policy sku tier. Possible values are Free and Standard. + :type tier: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + } + + def __init__(self, *, name: str, tier: str=None, **kwargs) -> None: + super(PolicySku, self).__init__(**kwargs) + self.name = name + self.tier = tier diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_paged_models.py similarity index 51% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition_paged.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_paged_models.py index 7f0e590b5821..f73a93f354db 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition_paged.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_paged_models.py @@ -12,6 +12,32 @@ from msrest.paging import Paged +class PolicyAssignmentPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyAssignment ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyAssignment]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) +class PolicyDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`PolicyDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) class PolicySetDefinitionPaged(Paged): """ A paging container for iterating over a list of :class:`PolicySetDefinition ` object diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_policy_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/_policy_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/error_response.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/error_response.py deleted file mode 100644 index ad2f6934e216..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/error_response.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates Azure Resource Manager is not able to process the - incoming request. The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = kwargs.get('http_status', None) - self.error_code = kwargs.get('error_code', None) - self.error_message = kwargs.get('error_message', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/error_response_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/error_response_py3.py deleted file mode 100644 index c55e28548997..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/error_response_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error response indicates Azure Resource Manager is not able to process the - incoming request. The reason is provided in the error message. - - :param http_status: Http status code. - :type http_status: str - :param error_code: Error code. - :type error_code: str - :param error_message: Error message indicating why the operation failed. - :type error_message: str - """ - - _attribute_map = { - 'http_status': {'key': 'httpStatus', 'type': 'str'}, - 'error_code': {'key': 'errorCode', 'type': 'str'}, - 'error_message': {'key': 'errorMessage', 'type': 'str'}, - } - - def __init__(self, *, http_status: str=None, error_code: str=None, error_message: str=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.http_status = http_status - self.error_code = error_code - self.error_message = error_message - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/identity.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/identity.py deleted file mode 100644 index 3bcb0da30312..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/identity.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of the resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of the resource identity. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned', - 'None' - :type type: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/identity_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/identity_py3.py deleted file mode 100644 index f51293b28c40..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/identity_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of the resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of the resource identity. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned', - 'None' - :type type: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment.py deleted file mode 100644 index c512b232c358..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition or policy set - definition being assigned. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param not_scopes: The policy's excluded scopes. - :type not_scopes: list[str] - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :param metadata: The policy assignment metadata. - :type metadata: object - :ivar id: The ID of the policy assignment. - :vartype id: str - :ivar type: The type of the policy assignment. - :vartype type: str - :ivar name: The name of the policy assignment. - :vartype name: str - :param sku: The policy sku. This property is optional, obsolete, and will - be ignored. - :type sku: ~azure.mgmt.resource.policy.v2018_05_01.models.PolicySku - :param location: The location of the policy assignment. Only required when - utilizing managed identity. - :type location: str - :param identity: The managed identity associated with the policy - assignment. - :type identity: ~azure.mgmt.resource.policy.v2018_05_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'PolicySku'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, **kwargs): - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = kwargs.get('display_name', None) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.scope = kwargs.get('scope', None) - self.not_scopes = kwargs.get('not_scopes', None) - self.parameters = kwargs.get('parameters', None) - self.description = kwargs.get('description', None) - self.metadata = kwargs.get('metadata', None) - self.id = None - self.type = None - self.name = None - self.sku = kwargs.get('sku', None) - self.location = kwargs.get('location', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment_paged.py deleted file mode 100644 index 25e371fe81ab..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyAssignmentPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyAssignment ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyAssignment]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyAssignmentPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment_py3.py deleted file mode 100644 index 1cbbdc3e9f85..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_assignment_py3.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyAssignment(Model): - """The policy assignment. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_name: The display name of the policy assignment. - :type display_name: str - :param policy_definition_id: The ID of the policy definition or policy set - definition being assigned. - :type policy_definition_id: str - :param scope: The scope for the policy assignment. - :type scope: str - :param not_scopes: The policy's excluded scopes. - :type not_scopes: list[str] - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :param description: This message will be part of response in case of - policy violation. - :type description: str - :param metadata: The policy assignment metadata. - :type metadata: object - :ivar id: The ID of the policy assignment. - :vartype id: str - :ivar type: The type of the policy assignment. - :vartype type: str - :ivar name: The name of the policy assignment. - :vartype name: str - :param sku: The policy sku. This property is optional, obsolete, and will - be ignored. - :type sku: ~azure.mgmt.resource.policy.v2018_05_01.models.PolicySku - :param location: The location of the policy assignment. Only required when - utilizing managed identity. - :type location: str - :param identity: The managed identity associated with the policy - assignment. - :type identity: ~azure.mgmt.resource.policy.v2018_05_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'policy_definition_id': {'key': 'properties.policyDefinitionId', 'type': 'str'}, - 'scope': {'key': 'properties.scope', 'type': 'str'}, - 'not_scopes': {'key': 'properties.notScopes', 'type': '[str]'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'PolicySku'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, *, display_name: str=None, policy_definition_id: str=None, scope: str=None, not_scopes=None, parameters=None, description: str=None, metadata=None, sku=None, location: str=None, identity=None, **kwargs) -> None: - super(PolicyAssignment, self).__init__(**kwargs) - self.display_name = display_name - self.policy_definition_id = policy_definition_id - self.scope = scope - self.not_scopes = not_scopes - self.parameters = parameters - self.description = description - self.metadata = metadata - self.id = None - self.type = None - self.name = None - self.sku = sku - self.location = location - self.identity = identity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition.py deleted file mode 100644 index 39bb09700679..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinition(Model): - """The policy definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType - :param mode: The policy definition mode. Possible values are NotSpecified, - Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', - 'All' - :type mode: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyMode - :param display_name: The display name of the policy definition. - :type display_name: str - :param description: The policy definition description. - :type description: str - :param policy_rule: The policy rule. - :type policy_rule: object - :param metadata: The policy definition metadata. - :type metadata: object - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :ivar id: The ID of the policy definition. - :vartype id: str - :ivar name: The name of the policy definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policyDefinitions). - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'mode': {'key': 'properties.mode', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicyDefinition, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.mode = kwargs.get('mode', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.policy_rule = kwargs.get('policy_rule', None) - self.metadata = kwargs.get('metadata', None) - self.parameters = kwargs.get('parameters', None) - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_paged.py deleted file mode 100644 index b3454af40ac5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class PolicyDefinitionPaged(Paged): - """ - A paging container for iterating over a list of :class:`PolicyDefinition ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PolicyDefinition]'} - } - - def __init__(self, *args, **kwargs): - - super(PolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_py3.py deleted file mode 100644 index be3c0aa43280..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinition(Model): - """The policy definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType - :param mode: The policy definition mode. Possible values are NotSpecified, - Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', - 'All' - :type mode: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyMode - :param display_name: The display name of the policy definition. - :type display_name: str - :param description: The policy definition description. - :type description: str - :param policy_rule: The policy rule. - :type policy_rule: object - :param metadata: The policy definition metadata. - :type metadata: object - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - :ivar id: The ID of the policy definition. - :vartype id: str - :ivar name: The name of the policy definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policyDefinitions). - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'mode': {'key': 'properties.mode', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'policy_rule': {'key': 'properties.policyRule', 'type': 'object'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, policy_type=None, mode=None, display_name: str=None, description: str=None, policy_rule=None, metadata=None, parameters=None, **kwargs) -> None: - super(PolicyDefinition, self).__init__(**kwargs) - self.policy_type = policy_type - self.mode = mode - self.display_name = display_name - self.description = description - self.policy_rule = policy_rule - self.metadata = metadata - self.parameters = parameters - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_reference.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_reference.py deleted file mode 100644 index cf0be3729831..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_reference.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinitionReference(Model): - """The policy definition reference. - - :param policy_definition_id: The ID of the policy definition or policy set - definition. - :type policy_definition_id: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - """ - - _attribute_map = { - 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(PolicyDefinitionReference, self).__init__(**kwargs) - self.policy_definition_id = kwargs.get('policy_definition_id', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_reference_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_reference_py3.py deleted file mode 100644 index e9aac83dc16e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_definition_reference_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicyDefinitionReference(Model): - """The policy definition reference. - - :param policy_definition_id: The ID of the policy definition or policy set - definition. - :type policy_definition_id: str - :param parameters: Required if a parameter is used in policy rule. - :type parameters: object - """ - - _attribute_map = { - 'policy_definition_id': {'key': 'policyDefinitionId', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - } - - def __init__(self, *, policy_definition_id: str=None, parameters=None, **kwargs) -> None: - super(PolicyDefinitionReference, self).__init__(**kwargs) - self.policy_definition_id = policy_definition_id - self.parameters = parameters diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition.py deleted file mode 100644 index 67180b816ff1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetDefinition(Model): - """The policy set definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType - :param display_name: The display name of the policy set definition. - :type display_name: str - :param description: The policy set definition description. - :type description: str - :param metadata: The policy set definition metadata. - :type metadata: object - :param parameters: The policy set definition parameters that can be used - in policy definition references. - :type parameters: object - :param policy_definitions: Required. An array of policy definition - references. - :type policy_definitions: - list[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionReference] - :ivar id: The ID of the policy set definition. - :vartype id: str - :ivar name: The name of the policy set definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policySetDefinitions). - :vartype type: str - """ - - _validation = { - 'policy_definitions': {'required': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicySetDefinition, self).__init__(**kwargs) - self.policy_type = kwargs.get('policy_type', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.metadata = kwargs.get('metadata', None) - self.parameters = kwargs.get('parameters', None) - self.policy_definitions = kwargs.get('policy_definitions', None) - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition_py3.py deleted file mode 100644 index 7d3389a881d0..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_set_definition_py3.py +++ /dev/null @@ -1,79 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySetDefinition(Model): - """The policy set definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param policy_type: The type of policy definition. Possible values are - NotSpecified, BuiltIn, and Custom. Possible values include: - 'NotSpecified', 'BuiltIn', 'Custom' - :type policy_type: str or - ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyType - :param display_name: The display name of the policy set definition. - :type display_name: str - :param description: The policy set definition description. - :type description: str - :param metadata: The policy set definition metadata. - :type metadata: object - :param parameters: The policy set definition parameters that can be used - in policy definition references. - :type parameters: object - :param policy_definitions: Required. An array of policy definition - references. - :type policy_definitions: - list[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionReference] - :ivar id: The ID of the policy set definition. - :vartype id: str - :ivar name: The name of the policy set definition. - :vartype name: str - :ivar type: The type of the resource - (Microsoft.Authorization/policySetDefinitions). - :vartype type: str - """ - - _validation = { - 'policy_definitions': {'required': True}, - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'policy_type': {'key': 'properties.policyType', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'metadata': {'key': 'properties.metadata', 'type': 'object'}, - 'parameters': {'key': 'properties.parameters', 'type': 'object'}, - 'policy_definitions': {'key': 'properties.policyDefinitions', 'type': '[PolicyDefinitionReference]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, *, policy_definitions, policy_type=None, display_name: str=None, description: str=None, metadata=None, parameters=None, **kwargs) -> None: - super(PolicySetDefinition, self).__init__(**kwargs) - self.policy_type = policy_type - self.display_name = display_name - self.description = description - self.metadata = metadata - self.parameters = parameters - self.policy_definitions = policy_definitions - self.id = None - self.name = None - self.type = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_sku.py deleted file mode 100644 index 458f7cf52f45..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_sku.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySku(Model): - """The policy sku. This property is optional, obsolete, and will be ignored. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the policy sku. Possible values are A0 - and A1. - :type name: str - :param tier: The policy sku tier. Possible values are Free and Standard. - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PolicySku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_sku_py3.py deleted file mode 100644 index 824479c44f92..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/models/policy_sku_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PolicySku(Model): - """The policy sku. This property is optional, obsolete, and will be ignored. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the policy sku. Possible values are A0 - and A1. - :type name: str - :param tier: The policy sku tier. Possible values are Free and Standard. - :type tier: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - } - - def __init__(self, *, name: str, tier: str=None, **kwargs) -> None: - super(PolicySku, self).__init__(**kwargs) - self.name = name - self.tier = tier diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/__init__.py index 44d309ea01cc..c7d7b8eb9d97 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/__init__.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- -from .policy_assignments_operations import PolicyAssignmentsOperations -from .policy_definitions_operations import PolicyDefinitionsOperations -from .policy_set_definitions_operations import PolicySetDefinitionsOperations +from ._policy_assignments_operations import PolicyAssignmentsOperations +from ._policy_definitions_operations import PolicyDefinitionsOperations +from ._policy_set_definitions_operations import PolicySetDefinitionsOperations __all__ = [ 'PolicyAssignmentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_assignments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_assignments_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_assignments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_assignments_operations.py index eeae95bdd5bc..942267397248 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_assignments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_assignments_operations.py @@ -18,6 +18,8 @@ class PolicyAssignmentsOperations(object): """PolicyAssignmentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -99,7 +101,6 @@ def delete( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -179,7 +180,6 @@ def create( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -251,7 +251,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -299,8 +298,7 @@ def list_for_resource_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource_group.metadata['url'] @@ -332,6 +330,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -340,12 +343,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments'} @@ -414,8 +415,7 @@ def list_for_resource( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_for_resource.metadata['url'] @@ -451,6 +451,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -459,12 +464,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_for_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments'} @@ -503,8 +506,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -535,6 +537,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -543,12 +550,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyAssignmentPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments'} @@ -613,7 +618,6 @@ def delete_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) @@ -694,7 +698,6 @@ def create_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyAssignment', response) @@ -765,7 +768,6 @@ def get_by_id( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyAssignment', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_definitions_operations.py index 3d52c2cb9b72..dd9410192449 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_definitions_operations.py @@ -19,6 +19,8 @@ class PolicyDefinitionsOperations(object): """PolicyDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -97,7 +99,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -215,7 +216,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -278,7 +278,6 @@ def get_built_in( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -351,7 +350,6 @@ def create_or_update_at_management_group( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('PolicyDefinition', response) @@ -473,7 +471,6 @@ def get_at_management_group( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicyDefinition', response) @@ -501,8 +498,7 @@ def list( ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -531,6 +527,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -541,12 +542,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions'} @@ -567,8 +566,7 @@ def list_built_in( ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_built_in.metadata['url'] @@ -593,6 +591,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -603,12 +606,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policyDefinitions'} @@ -632,8 +633,7 @@ def list_by_management_group( ~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinitionPaged[~azure.mgmt.resource.policy.v2018_05_01.models.PolicyDefinition] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_management_group.metadata['url'] @@ -662,6 +662,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -672,12 +677,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_set_definitions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_set_definitions_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_set_definitions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_set_definitions_operations.py index 24b7b8271c2b..eaa9f9c3e00b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/policy_set_definitions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/operations/_policy_set_definitions_operations.py @@ -18,6 +18,8 @@ class PolicySetDefinitionsOperations(object): """PolicySetDefinitionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -95,7 +97,6 @@ def create_or_update( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) if response.status_code == 201: @@ -213,7 +214,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -275,7 +275,6 @@ def get_built_in( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -304,8 +303,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -334,6 +332,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -342,12 +345,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions'} @@ -370,8 +371,7 @@ def list_built_in( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_built_in.metadata['url'] @@ -396,6 +396,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -404,12 +409,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_built_in.metadata = {'url': '/providers/Microsoft.Authorization/policySetDefinitions'} @@ -475,7 +478,6 @@ def create_or_update_at_management_group( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) if response.status_code == 201: @@ -597,7 +599,6 @@ def get_at_management_group( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('PolicySetDefinition', response) @@ -628,8 +629,7 @@ def list_by_management_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_management_group.metadata['url'] @@ -658,6 +658,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -666,12 +671,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.PolicySetDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_management_group.metadata = {'url': '/providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/__init__.py index c829f7e78bd7..7eb6845ce5ea 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/__init__.py @@ -1,10 +1,19 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- -from .resource_management_client import ResourceManagementClient +from ._configuration import ResourceManagementClientConfiguration +from ._resource_management_client import ResourceManagementClient +__all__ = ['ResourceManagementClient', 'ResourceManagementClientConfiguration'] + +from ..version import VERSION + +__version__ = VERSION -__all__ = ['ResourceManagementClient'] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py new file mode 100644 index 000000000000..306faab728ec --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from ..version import VERSION + + +class ResourceManagementClientConfiguration(AzureConfiguration): + """Configuration for ResourceManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ResourceManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/resource_management_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_resource_management_client.py similarity index 83% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/resource_management_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_resource_management_client.py index a83f0622e579..45d0be851e78 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/resource_management_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/_resource_management_client.py @@ -11,55 +11,33 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from ..version import VERSION +from ._configuration import ResourceManagementClientConfiguration -class ResourceManagementClientConfiguration(AzureConfiguration): - """Configuration for ResourceManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ResourceManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('resourcemanagementclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - class ResourceManagementClient(MultiApiClientMixin, SDKClient): """Provides operations for working with resources and resource groups. + This ready contains multiple API versions, to help you deal with all Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, uses latest API version available on public Azure. + For production, you should stick a particular api-version and/or profile. + The profile sets a mapping between the operation group and an API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + :ivar config: Configuration for client. :vartype config: ResourceManagementClientConfiguration :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object` - :param subscription_id: The ID of the target subscription. + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. :type subscription_id: str :param str api_version: API version to use if no profile is provided, or if missing in profile. @@ -68,11 +46,11 @@ class ResourceManagementClient(MultiApiClientMixin, SDKClient): :type profile: azure.profiles.KnownProfiles """ - DEFAULT_API_VERSION='2018-05-01' + DEFAULT_API_VERSION = '2019-05-01' _PROFILE_TAG = "azure.mgmt.resource.resources.ResourceManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { - None: DEFAULT_API_VERSION + None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) @@ -86,8 +64,6 @@ def __init__(self, credentials, subscription_id, api_version=None, base_url=None profile=profile ) -############ Generated from here ############ - @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} @@ -101,6 +77,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2017-05-10: :mod:`v2017_05_10.models` * 2018-02-01: :mod:`v2018_02_01.models` * 2018-05-01: :mod:`v2018_05_01.models` + * 2019-05-01: :mod:`v2019_05_01.models` """ if api_version == '2016-02-01': from .v2016_02_01 import models @@ -117,6 +94,9 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2018-05-01': from .v2018_05_01 import models return models + elif api_version == '2019-05-01': + from .v2019_05_01 import models + return models raise NotImplementedError("APIVersion {} is not available".format(api_version)) @property @@ -128,6 +108,7 @@ def deployment_operations(self): * 2017-05-10: :class:`DeploymentOperations` * 2018-02-01: :class:`DeploymentOperations` * 2018-05-01: :class:`DeploymentOperations` + * 2019-05-01: :class:`DeploymentOperations` """ api_version = self._get_api_version('deployment_operations') if api_version == '2016-02-01': @@ -140,6 +121,8 @@ def deployment_operations(self): from .v2018_02_01.operations import DeploymentOperations as OperationClass elif api_version == '2018-05-01': from .v2018_05_01.operations import DeploymentOperations as OperationClass + elif api_version == '2019-05-01': + from .v2019_05_01.operations import DeploymentOperations 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))) @@ -153,6 +136,7 @@ def deployments(self): * 2017-05-10: :class:`DeploymentsOperations` * 2018-02-01: :class:`DeploymentsOperations` * 2018-05-01: :class:`DeploymentsOperations` + * 2019-05-01: :class:`DeploymentsOperations` """ api_version = self._get_api_version('deployments') if api_version == '2016-02-01': @@ -165,6 +149,8 @@ def deployments(self): from .v2018_02_01.operations import DeploymentsOperations as OperationClass elif api_version == '2018-05-01': from .v2018_05_01.operations import DeploymentsOperations as OperationClass + elif api_version == '2019-05-01': + from .v2019_05_01.operations import DeploymentsOperations 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))) @@ -174,10 +160,13 @@ def operations(self): """Instance depends on the API version: * 2018-05-01: :class:`Operations` + * 2019-05-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2018-05-01': from .v2018_05_01.operations import Operations as OperationClass + elif api_version == '2019-05-01': + from .v2019_05_01.operations import Operations 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))) @@ -191,6 +180,7 @@ def providers(self): * 2017-05-10: :class:`ProvidersOperations` * 2018-02-01: :class:`ProvidersOperations` * 2018-05-01: :class:`ProvidersOperations` + * 2019-05-01: :class:`ProvidersOperations` """ api_version = self._get_api_version('providers') if api_version == '2016-02-01': @@ -203,6 +193,8 @@ def providers(self): from .v2018_02_01.operations import ProvidersOperations as OperationClass elif api_version == '2018-05-01': from .v2018_05_01.operations import ProvidersOperations as OperationClass + elif api_version == '2019-05-01': + from .v2019_05_01.operations import ProvidersOperations 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))) @@ -216,6 +208,7 @@ def resource_groups(self): * 2017-05-10: :class:`ResourceGroupsOperations` * 2018-02-01: :class:`ResourceGroupsOperations` * 2018-05-01: :class:`ResourceGroupsOperations` + * 2019-05-01: :class:`ResourceGroupsOperations` """ api_version = self._get_api_version('resource_groups') if api_version == '2016-02-01': @@ -228,6 +221,8 @@ def resource_groups(self): from .v2018_02_01.operations import ResourceGroupsOperations as OperationClass elif api_version == '2018-05-01': from .v2018_05_01.operations import ResourceGroupsOperations as OperationClass + elif api_version == '2019-05-01': + from .v2019_05_01.operations import ResourceGroupsOperations 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))) @@ -241,6 +236,7 @@ def resources(self): * 2017-05-10: :class:`ResourcesOperations` * 2018-02-01: :class:`ResourcesOperations` * 2018-05-01: :class:`ResourcesOperations` + * 2019-05-01: :class:`ResourcesOperations` """ api_version = self._get_api_version('resources') if api_version == '2016-02-01': @@ -253,6 +249,8 @@ def resources(self): from .v2018_02_01.operations import ResourcesOperations as OperationClass elif api_version == '2018-05-01': from .v2018_05_01.operations import ResourcesOperations as OperationClass + elif api_version == '2019-05-01': + from .v2019_05_01.operations import ResourcesOperations 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))) @@ -266,6 +264,7 @@ def tags(self): * 2017-05-10: :class:`TagsOperations` * 2018-02-01: :class:`TagsOperations` * 2018-05-01: :class:`TagsOperations` + * 2019-05-01: :class:`TagsOperations` """ api_version = self._get_api_version('tags') if api_version == '2016-02-01': @@ -278,6 +277,8 @@ def tags(self): from .v2018_02_01.operations import TagsOperations as OperationClass elif api_version == '2018-05-01': from .v2018_05_01.operations import TagsOperations as OperationClass + elif api_version == '2019-05-01': + from .v2019_05_01.operations import TagsOperations 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))) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/models.py index 3f422a3b0d71..63a76d291091 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/models.py @@ -1,7 +1,12 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2017_05_10.models import * \ No newline at end of file +from .v2016_02_01.models import * +from .v2016_09_01.models import * +from .v2017_05_10.models import * +from .v2018_02_01.models import * +from .v2018_05_01.models import * +from .v2019_05_01.models import * diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/__init__.py index d2e3198e88e6..68bc897193ac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .resource_management_client import ResourceManagementClient -from .version import VERSION +from ._configuration import ResourceManagementClientConfiguration +from ._resource_management_client import ResourceManagementClient +__all__ = ['ResourceManagementClient', 'ResourceManagementClientConfiguration'] -__all__ = ['ResourceManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_configuration.py new file mode 100644 index 000000000000..3b326f792363 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ResourceManagementClientConfiguration(AzureConfiguration): + """Configuration for ResourceManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ResourceManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/resource_management_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_resource_management_client.py similarity index 65% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/resource_management_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_resource_management_client.py index db77a80465a1..147e393a4816 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/resource_management_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/_resource_management_client.py @@ -11,47 +11,15 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.deployments_operations import DeploymentsOperations -from .operations.providers_operations import ProvidersOperations -from .operations.resource_groups_operations import ResourceGroupsOperations -from .operations.resources_operations import ResourcesOperations -from .operations.tags_operations import TagsOperations -from .operations.deployment_operations import DeploymentOperations -from . import models - - -class ResourceManagementClientConfiguration(AzureConfiguration): - """Configuration for ResourceManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ResourceManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ResourceManagementClientConfiguration +from .operations import DeploymentsOperations +from .operations import ProvidersOperations +from .operations import ResourceGroupsOperations +from .operations import ResourcesOperations +from .operations import TagsOperations +from .operations import DeploymentOperations +from . import models class ResourceManagementClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/__init__.py index c5534984cdc7..97142ddf7af8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/__init__.py @@ -10,133 +10,133 @@ # -------------------------------------------------------------------------- try: - from .deployment_extended_filter_py3 import DeploymentExtendedFilter - from .generic_resource_filter_py3 import GenericResourceFilter - from .resource_group_filter_py3 import ResourceGroupFilter - from .template_link_py3 import TemplateLink - from .parameters_link_py3 import ParametersLink - from .debug_setting_py3 import DebugSetting - from .deployment_properties_py3 import DeploymentProperties - from .deployment_py3 import Deployment - from .deployment_export_result_py3 import DeploymentExportResult - from .resource_management_error_with_details_py3 import ResourceManagementErrorWithDetails - from .alias_path_type_py3 import AliasPathType - from .alias_type_py3 import AliasType - from .provider_resource_type_py3 import ProviderResourceType - from .provider_py3 import Provider - from .basic_dependency_py3 import BasicDependency - from .dependency_py3 import Dependency - from .deployment_properties_extended_py3 import DeploymentPropertiesExtended - from .deployment_validate_result_py3 import DeploymentValidateResult - from .deployment_extended_py3 import DeploymentExtended - from .plan_py3 import Plan - from .sku_py3 import Sku - from .identity_py3 import Identity - from .generic_resource_py3 import GenericResource - from .resource_group_properties_py3 import ResourceGroupProperties - from .resource_group_py3 import ResourceGroup - from .resources_move_info_py3 import ResourcesMoveInfo - from .export_template_request_py3 import ExportTemplateRequest - from .tag_count_py3 import TagCount - from .tag_value_py3 import TagValue - from .tag_details_py3 import TagDetails - from .target_resource_py3 import TargetResource - from .http_message_py3 import HttpMessage - from .deployment_operation_properties_py3 import DeploymentOperationProperties - from .deployment_operation_py3 import DeploymentOperation - from .resource_provider_operation_display_properties_py3 import ResourceProviderOperationDisplayProperties - from .resource_py3 import Resource - from .sub_resource_py3 import SubResource - from .resource_group_export_result_py3 import ResourceGroupExportResult + from ._models_py3 import AliasPathType + from ._models_py3 import AliasType + from ._models_py3 import BasicDependency + from ._models_py3 import DebugSetting + from ._models_py3 import Dependency + from ._models_py3 import Deployment + from ._models_py3 import DeploymentExportResult + from ._models_py3 import DeploymentExtended + from ._models_py3 import DeploymentExtendedFilter + from ._models_py3 import DeploymentOperation + from ._models_py3 import DeploymentOperationProperties + from ._models_py3 import DeploymentProperties + from ._models_py3 import DeploymentPropertiesExtended + from ._models_py3 import DeploymentValidateResult + from ._models_py3 import ExportTemplateRequest + from ._models_py3 import GenericResource + from ._models_py3 import GenericResourceFilter + from ._models_py3 import HttpMessage + from ._models_py3 import Identity + from ._models_py3 import ParametersLink + from ._models_py3 import Plan + from ._models_py3 import Provider + from ._models_py3 import ProviderResourceType + from ._models_py3 import Resource + from ._models_py3 import ResourceGroup + from ._models_py3 import ResourceGroupExportResult + from ._models_py3 import ResourceGroupFilter + from ._models_py3 import ResourceGroupProperties + from ._models_py3 import ResourceManagementErrorWithDetails + from ._models_py3 import ResourceProviderOperationDisplayProperties + from ._models_py3 import ResourcesMoveInfo + from ._models_py3 import Sku + from ._models_py3 import SubResource + from ._models_py3 import TagCount + from ._models_py3 import TagDetails + from ._models_py3 import TagValue + from ._models_py3 import TargetResource + from ._models_py3 import TemplateLink except (SyntaxError, ImportError): - from .deployment_extended_filter import DeploymentExtendedFilter - from .generic_resource_filter import GenericResourceFilter - from .resource_group_filter import ResourceGroupFilter - from .template_link import TemplateLink - from .parameters_link import ParametersLink - from .debug_setting import DebugSetting - from .deployment_properties import DeploymentProperties - from .deployment import Deployment - from .deployment_export_result import DeploymentExportResult - from .resource_management_error_with_details import ResourceManagementErrorWithDetails - from .alias_path_type import AliasPathType - from .alias_type import AliasType - from .provider_resource_type import ProviderResourceType - from .provider import Provider - from .basic_dependency import BasicDependency - from .dependency import Dependency - from .deployment_properties_extended import DeploymentPropertiesExtended - from .deployment_validate_result import DeploymentValidateResult - from .deployment_extended import DeploymentExtended - from .plan import Plan - from .sku import Sku - from .identity import Identity - from .generic_resource import GenericResource - from .resource_group_properties import ResourceGroupProperties - from .resource_group import ResourceGroup - from .resources_move_info import ResourcesMoveInfo - from .export_template_request import ExportTemplateRequest - from .tag_count import TagCount - from .tag_value import TagValue - from .tag_details import TagDetails - from .target_resource import TargetResource - from .http_message import HttpMessage - from .deployment_operation_properties import DeploymentOperationProperties - from .deployment_operation import DeploymentOperation - from .resource_provider_operation_display_properties import ResourceProviderOperationDisplayProperties - from .resource import Resource - from .sub_resource import SubResource - from .resource_group_export_result import ResourceGroupExportResult -from .deployment_extended_paged import DeploymentExtendedPaged -from .provider_paged import ProviderPaged -from .generic_resource_paged import GenericResourcePaged -from .resource_group_paged import ResourceGroupPaged -from .tag_details_paged import TagDetailsPaged -from .deployment_operation_paged import DeploymentOperationPaged -from .resource_management_client_enums import ( + from ._models import AliasPathType + from ._models import AliasType + from ._models import BasicDependency + from ._models import DebugSetting + from ._models import Dependency + from ._models import Deployment + from ._models import DeploymentExportResult + from ._models import DeploymentExtended + from ._models import DeploymentExtendedFilter + from ._models import DeploymentOperation + from ._models import DeploymentOperationProperties + from ._models import DeploymentProperties + from ._models import DeploymentPropertiesExtended + from ._models import DeploymentValidateResult + from ._models import ExportTemplateRequest + from ._models import GenericResource + from ._models import GenericResourceFilter + from ._models import HttpMessage + from ._models import Identity + from ._models import ParametersLink + from ._models import Plan + from ._models import Provider + from ._models import ProviderResourceType + from ._models import Resource + from ._models import ResourceGroup + from ._models import ResourceGroupExportResult + from ._models import ResourceGroupFilter + from ._models import ResourceGroupProperties + from ._models import ResourceManagementErrorWithDetails + from ._models import ResourceProviderOperationDisplayProperties + from ._models import ResourcesMoveInfo + from ._models import Sku + from ._models import SubResource + from ._models import TagCount + from ._models import TagDetails + from ._models import TagValue + from ._models import TargetResource + from ._models import TemplateLink +from ._paged_models import DeploymentExtendedPaged +from ._paged_models import DeploymentOperationPaged +from ._paged_models import GenericResourcePaged +from ._paged_models import ProviderPaged +from ._paged_models import ResourceGroupPaged +from ._paged_models import TagDetailsPaged +from ._resource_management_client_enums import ( DeploymentMode, ResourceIdentityType, ) __all__ = [ - 'DeploymentExtendedFilter', - 'GenericResourceFilter', - 'ResourceGroupFilter', - 'TemplateLink', - 'ParametersLink', - 'DebugSetting', - 'DeploymentProperties', - 'Deployment', - 'DeploymentExportResult', - 'ResourceManagementErrorWithDetails', 'AliasPathType', 'AliasType', - 'ProviderResourceType', - 'Provider', 'BasicDependency', + 'DebugSetting', 'Dependency', + 'Deployment', + 'DeploymentExportResult', + 'DeploymentExtended', + 'DeploymentExtendedFilter', + 'DeploymentOperation', + 'DeploymentOperationProperties', + 'DeploymentProperties', 'DeploymentPropertiesExtended', 'DeploymentValidateResult', - 'DeploymentExtended', - 'Plan', - 'Sku', - 'Identity', + 'ExportTemplateRequest', 'GenericResource', - 'ResourceGroupProperties', + 'GenericResourceFilter', + 'HttpMessage', + 'Identity', + 'ParametersLink', + 'Plan', + 'Provider', + 'ProviderResourceType', + 'Resource', 'ResourceGroup', + 'ResourceGroupExportResult', + 'ResourceGroupFilter', + 'ResourceGroupProperties', + 'ResourceManagementErrorWithDetails', + 'ResourceProviderOperationDisplayProperties', 'ResourcesMoveInfo', - 'ExportTemplateRequest', + 'Sku', + 'SubResource', 'TagCount', - 'TagValue', 'TagDetails', + 'TagValue', 'TargetResource', - 'HttpMessage', - 'DeploymentOperationProperties', - 'DeploymentOperation', - 'ResourceProviderOperationDisplayProperties', - 'Resource', - 'SubResource', - 'ResourceGroupExportResult', + 'TemplateLink', 'DeploymentExtendedPaged', 'ProviderPaged', 'GenericResourcePaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models.py new file mode 100644 index 000000000000..bcb5179b154a --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models.py @@ -0,0 +1,1135 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """AliasPathType. + + :param path: The path of an alias. + :type path: str + :param api_versions: The api versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AliasPathType, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.api_versions = kwargs.get('api_versions', None) + + +class AliasType(Model): + """AliasType. + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, **kwargs): + super(AliasType, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.paths = kwargs.get('paths', None) + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BasicDependency, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: The debug detail level. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = kwargs.get('detail_level', None) + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2016_02_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dependency, self).__init__(**kwargs) + self.depends_on = kwargs.get('depends_on', None) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class Deployment(Model): + """Deployment operation parameters. + + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentProperties + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, **kwargs): + super(Deployment, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class DeploymentExportResult(Model): + """DeploymentExportResult. + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class DeploymentOperation(Model): + """Deployment operation information. + + :param id: Full deployment operation id. + :type id: str + :param operation_id: Deployment operation id. + :type operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentOperationProperties + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperation, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.operation_id = kwargs.get('operation_id', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + :param provisioning_state: The state of the provisioning. + :type provisioning_state: str + :param timestamp: The date and time of the operation. + :type timestamp: datetime + :param service_request_id: Deployment operation service request id. + :type service_request_id: str + :param status_code: Operation status code. + :type status_code: str + :param status_message: Operation status message. + :type status_message: object + :param target_resource: The target resource. + :type target_resource: + ~azure.mgmt.resource.resources.v2016_02_01.models.TargetResource + :param request: The HTTP request message. + :type request: + ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage + :param response: The HTTP response message. + :type response: + ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.timestamp = kwargs.get('timestamp', None) + self.service_request_id = kwargs.get('service_request_id', None) + self.status_code = kwargs.get('status_code', None) + self.status_message = kwargs.get('status_message', None) + self.target_resource = kwargs.get('target_resource', None) + self.request = kwargs.get('request', None) + self.response = kwargs.get('response', None) + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. It can be a JObject or a well + formed JSON string. Use only one of Template or TemplateLink. + :type template: object + :param template_link: The template URI. Use only one of Template or + TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink + :param parameters: Deployment parameters. It can be a JObject or a well + formed JSON string. Use only one of Parameters or ParametersLink. + :type parameters: object + :param parameters_link: The parameters URI. Use only one of Parameters or + ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink + :param mode: Required. The deployment mode. Possible values include: + 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, **kwargs): + super(DeploymentProperties, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + :param provisioning_state: The state of the provisioning. + :type provisioning_state: str + :param correlation_id: The correlation ID of the deployment. + :type correlation_id: str + :param timestamp: The timestamp of the template deployment. + :type timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2016_02_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2016_02_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink + :param mode: The deployment mode. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, **kwargs): + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.correlation_id = kwargs.get('correlation_id', None) + self.timestamp = kwargs.get('timestamp', None) + self.outputs = kwargs.get('outputs', None) + self.providers = kwargs.get('providers', None) + self.dependencies = kwargs.get('dependencies', None) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.properties = kwargs.get('properties', None) + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.options = kwargs.get('options', None) + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: Id of the resource that manages this resource. + :type managed_by: str + :param sku: The sku of the resource. + :type sku: ~azure.mgmt.resource.resources.v2016_02_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2016_02_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(GenericResource, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.properties = kwargs.get('properties', None) + self.kind = kwargs.get('kind', None) + self.managed_by = kwargs.get('managed_by', None) + self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.tagname = kwargs.get('tagname', None) + self.tagvalue = kwargs.get('tagvalue', None) + + +class HttpMessage(Model): + """HttpMessage. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(HttpMessage, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. URI referencing the template. + :type uri: str + :param content_version: If included it must match the ContentVersion in + the template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ParametersLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + + +class Provider(Model): + """Resource provider information. + + :param id: The provider id. + :type id: str + :param namespace: The namespace of the provider. + :type namespace: str + :param registration_state: The registration state of the provider. + :type registration_state: str + :param resource_types: The collection of provider resource types. + :type resource_types: + list[~azure.mgmt.resource.resources.v2016_02_01.models.ProviderResourceType] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, **kwargs): + super(Provider, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.namespace = kwargs.get('namespace', None) + self.registration_state = kwargs.get('registration_state', None) + self.resource_types = kwargs.get('resource_types', None) + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created in. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasType] + :param api_versions: The api version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.locations = kwargs.get('locations', None) + self.aliases = kwargs.get('aliases', None) + self.api_versions = kwargs.get('api_versions', None) + self.properties = kwargs.get('properties', None) + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The Name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. Has to be one of the + supported Azure Locations, such as West US, East US, West Europe, East + Asia, etc. + :type location: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupExportResult(Model): + """ResourceGroupExportResult. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.error = kwargs.get('error', None) + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = kwargs.get('tag_name', None) + self.tag_value = kwargs.get('tag_value', None) + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """ResourceManagementErrorWithDetails. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code returned from the server. + :type code: str + :param message: Required. The error message returned from the server. + :type message: str + :param target: The target of the error. + :type target: str + :param details: Validation error. + :type details: + list[~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs): + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The ids of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.target_resource_group = kwargs.get('target_resource_group', None) + + +class Sku(Model): + """Sku for the resource. + + :param name: The sku name. + :type name: str + :param tier: The sku tier. + :type tier: str + :param size: The sku size. + :type size: str + :param family: The sku family. + :type family: str + :param model: The sku model. + :type model: str + :param capacity: The sku capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + self.model = kwargs.get('model', None) + self.capacity = kwargs.get('capacity', None) + + +class SubResource(Model): + """SubResource. + + :param id: Resource Id + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TagCount, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.value = kwargs.get('value', None) + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The tag count. + :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2016_02_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, **kwargs): + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = kwargs.get('tag_name', None) + self.count = kwargs.get('count', None) + self.values = kwargs.get('values', None) + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, **kwargs): + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = kwargs.get('tag_value', None) + self.count = kwargs.get('count', None) + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_name = kwargs.get('resource_name', None) + self.resource_type = kwargs.get('resource_type', None) + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. URI referencing the template. + :type uri: str + :param content_version: If included it must match the ContentVersion in + the template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TemplateLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models_py3.py new file mode 100644 index 000000000000..20c7850e99b2 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_models_py3.py @@ -0,0 +1,1135 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """AliasPathType. + + :param path: The path of an alias. + :type path: str + :param api_versions: The api versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: + super(AliasPathType, self).__init__(**kwargs) + self.path = path + self.api_versions = api_versions + + +class AliasType(Model): + """AliasType. + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: + super(AliasType, self).__init__(**kwargs) + self.name = name + self.paths = paths + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(BasicDependency, self).__init__(**kwargs) + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: The debug detail level. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, *, detail_level: str=None, **kwargs) -> None: + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = detail_level + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2016_02_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(Dependency, self).__init__(**kwargs) + self.depends_on = depends_on + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class Deployment(Model): + """Deployment operation parameters. + + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentProperties + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(Deployment, self).__init__(**kwargs) + self.properties = properties + + +class DeploymentExportResult(Model): + """DeploymentExportResult. + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, *, template=None, **kwargs) -> None: + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = template + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, name: str, properties=None, **kwargs) -> None: + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + + +class DeploymentOperation(Model): + """Deployment operation information. + + :param id: Full deployment operation id. + :type id: str + :param operation_id: Deployment operation id. + :type operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentOperationProperties + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, *, id: str=None, operation_id: str=None, properties=None, **kwargs) -> None: + super(DeploymentOperation, self).__init__(**kwargs) + self.id = id + self.operation_id = operation_id + self.properties = properties + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + :param provisioning_state: The state of the provisioning. + :type provisioning_state: str + :param timestamp: The date and time of the operation. + :type timestamp: datetime + :param service_request_id: Deployment operation service request id. + :type service_request_id: str + :param status_code: Operation status code. + :type status_code: str + :param status_message: Operation status message. + :type status_message: object + :param target_resource: The target resource. + :type target_resource: + ~azure.mgmt.resource.resources.v2016_02_01.models.TargetResource + :param request: The HTTP request message. + :type request: + ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage + :param response: The HTTP response message. + :type response: + ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, *, provisioning_state: str=None, timestamp=None, service_request_id: str=None, status_code: str=None, status_message=None, target_resource=None, request=None, response=None, **kwargs) -> None: + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + self.timestamp = timestamp + self.service_request_id = service_request_id + self.status_code = status_code + self.status_message = status_message + self.target_resource = target_resource + self.request = request + self.response = response + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. It can be a JObject or a well + formed JSON string. Use only one of Template or TemplateLink. + :type template: object + :param template_link: The template URI. Use only one of Template or + TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink + :param parameters: Deployment parameters. It can be a JObject or a well + formed JSON string. Use only one of Parameters or ParametersLink. + :type parameters: object + :param parameters_link: The parameters URI. Use only one of Parameters or + ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink + :param mode: Required. The deployment mode. Possible values include: + 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, **kwargs) -> None: + super(DeploymentProperties, self).__init__(**kwargs) + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + :param provisioning_state: The state of the provisioning. + :type provisioning_state: str + :param correlation_id: The correlation ID of the deployment. + :type correlation_id: str + :param timestamp: The timestamp of the template deployment. + :type timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2016_02_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2016_02_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink + :param mode: The deployment mode. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, *, provisioning_state: str=None, correlation_id: str=None, timestamp=None, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, **kwargs) -> None: + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + self.correlation_id = correlation_id + self.timestamp = timestamp + self.outputs = outputs + self.providers = providers + self.dependencies = dependencies + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, error=None, properties=None, **kwargs) -> None: + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = error + self.properties = properties + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = resources + self.options = options + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: Id of the resource that manages this resource. + :type managed_by: str + :param sku: The sku of the resource. + :type sku: ~azure.mgmt.resource.resources.v2016_02_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2016_02_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: + super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.properties = properties + self.kind = kind + self.managed_by = managed_by + self.sku = sku + self.identity = identity + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = resource_type + self.tagname = tagname + self.tagvalue = tagvalue + + +class HttpMessage(Model): + """HttpMessage. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, *, content=None, **kwargs) -> None: + super(HttpMessage, self).__init__(**kwargs) + self.content = content + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. URI referencing the template. + :type uri: str + :param content_version: If included it must match the ContentVersion in + the template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(ParametersLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, **kwargs) -> None: + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + + +class Provider(Model): + """Resource provider information. + + :param id: The provider id. + :type id: str + :param namespace: The namespace of the provider. + :type namespace: str + :param registration_state: The registration state of the provider. + :type registration_state: str + :param resource_types: The collection of provider resource types. + :type resource_types: + list[~azure.mgmt.resource.resources.v2016_02_01.models.ProviderResourceType] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, *, id: str=None, namespace: str=None, registration_state: str=None, resource_types=None, **kwargs) -> None: + super(Provider, self).__init__(**kwargs) + self.id = id + self.namespace = namespace + self.registration_state = registration_state + self.resource_types = resource_types + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created in. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasType] + :param api_versions: The api version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = resource_type + self.locations = locations + self.aliases = aliases + self.api_versions = api_versions + self.properties = properties + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The Name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. Has to be one of the + supported Azure Locations, such as West US, East US, West Europe, East + Asia, etc. + :type location: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, name: str=None, properties=None, tags=None, **kwargs) -> None: + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + self.location = location + self.tags = tags + + +class ResourceGroupExportResult(Model): + """ResourceGroupExportResult. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, *, template=None, error=None, **kwargs) -> None: + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = template + self.error = error + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = tag_name + self.tag_value = tag_value + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """ResourceManagementErrorWithDetails. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code returned from the server. + :type code: str + :param message: Required. The error message returned from the server. + :type message: str + :param target: The target of the error. + :type target: str + :param details: Validation error. + :type details: + list[~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, *, code: str, message: str, target: str=None, details=None, **kwargs) -> None: + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = publisher + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The ids of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = resources + self.target_resource_group = target_resource_group + + +class Sku(Model): + """Sku for the resource. + + :param name: The sku name. + :type name: str + :param tier: The sku tier. + :type tier: str + :param size: The sku size. + :type size: str + :param family: The sku family. + :type family: str + :param model: The sku model. + :type model: str + :param capacity: The sku capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.size = size + self.family = family + self.model = model + self.capacity = capacity + + +class SubResource(Model): + """SubResource. + + :param id: Resource Id + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, type: str=None, value: str=None, **kwargs) -> None: + super(TagCount, self).__init__(**kwargs) + self.type = type + self.value = value + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The tag count. + :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2016_02_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = tag_name + self.count = count + self.values = values + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = tag_value + self.count = count + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: + super(TargetResource, self).__init__(**kwargs) + self.id = id + self.resource_name = resource_name + self.resource_type = resource_type + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. URI referencing the template. + :type uri: str + :param content_version: If included it must match the ContentVersion in + the template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(TemplateLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_paged_models.py new file mode 100644 index 000000000000..503ebfa840e7 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_paged_models.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class DeploymentExtendedPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentExtended ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) +class ProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`Provider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Provider]'} + } + + def __init__(self, *args, **kwargs): + + super(ProviderPaged, self).__init__(*args, **kwargs) +class GenericResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`GenericResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GenericResource]'} + } + + def __init__(self, *args, **kwargs): + + super(GenericResourcePaged, self).__init__(*args, **kwargs) +class ResourceGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceGroupPaged, self).__init__(*args, **kwargs) +class TagDetailsPaged(Paged): + """ + A paging container for iterating over a list of :class:`TagDetails ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TagDetails]'} + } + + def __init__(self, *args, **kwargs): + + super(TagDetailsPaged, self).__init__(*args, **kwargs) +class DeploymentOperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentOperation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_resource_management_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/_resource_management_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_path_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_path_type.py deleted file mode 100644 index 3a828a3d33fd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_path_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """AliasPathType. - - :param path: The path of an alias. - :type path: str - :param api_versions: The api versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AliasPathType, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.api_versions = kwargs.get('api_versions', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_path_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_path_type_py3.py deleted file mode 100644 index 90013a7568fa..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_path_type_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """AliasPathType. - - :param path: The path of an alias. - :type path: str - :param api_versions: The api versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: - super(AliasPathType, self).__init__(**kwargs) - self.path = path - self.api_versions = api_versions diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_type.py deleted file mode 100644 index 8cddb17f0247..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """AliasType. - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, **kwargs): - super(AliasType, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.paths = kwargs.get('paths', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_type_py3.py deleted file mode 100644 index e89e255f18ec..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/alias_type_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """AliasType. - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: - super(AliasType, self).__init__(**kwargs) - self.name = name - self.paths = paths diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/basic_dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/basic_dependency.py deleted file mode 100644 index 3a5ccd4aa464..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/basic_dependency.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BasicDependency, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/basic_dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/basic_dependency_py3.py deleted file mode 100644 index 49d821737930..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/basic_dependency_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(BasicDependency, self).__init__(**kwargs) - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/debug_setting.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/debug_setting.py deleted file mode 100644 index 3dc20a32dba0..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/debug_setting.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: The debug detail level. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = kwargs.get('detail_level', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/dependency.py deleted file mode 100644 index 81bd7ad52dbf..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/dependency.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2016_02_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Dependency, self).__init__(**kwargs) - self.depends_on = kwargs.get('depends_on', None) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/dependency_py3.py deleted file mode 100644 index c7b72f765c9c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/dependency_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2016_02_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(Dependency, self).__init__(**kwargs) - self.depends_on = depends_on - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment.py deleted file mode 100644 index b064f0e3d9dc..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - :param properties: The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentProperties - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, **kwargs): - super(Deployment, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_export_result.py deleted file mode 100644 index 3748db4c9a21..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_export_result.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """DeploymentExportResult. - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_export_result_py3.py deleted file mode 100644 index af87de7862c7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_export_result_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """DeploymentExportResult. - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, *, template=None, **kwargs) -> None: - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = template diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended.py deleted file mode 100644 index 727d55ee9448..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_filter.py deleted file mode 100644 index 0839bcc12e4e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_filter.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_filter_py3.py deleted file mode 100644 index f06d0d1a4dfb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_filter_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = provisioning_state diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_paged.py deleted file mode 100644 index 2e525dfc3d06..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentExtendedPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentExtended ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_py3.py deleted file mode 100644 index 095e187951cb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_extended_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, name: str, properties=None, **kwargs) -> None: - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation.py deleted file mode 100644 index b8ffe8a31357..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - :param id: Full deployment operation id. - :type id: str - :param operation_id: Deployment operation id. - :type operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentOperationProperties - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperation, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.operation_id = kwargs.get('operation_id', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_paged.py deleted file mode 100644 index 7f20f615a1fe..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentOperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentOperation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_properties.py deleted file mode 100644 index 3d48812932ea..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_properties.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - :param provisioning_state: The state of the provisioning. - :type provisioning_state: str - :param timestamp: The date and time of the operation. - :type timestamp: datetime - :param service_request_id: Deployment operation service request id. - :type service_request_id: str - :param status_code: Operation status code. - :type status_code: str - :param status_message: Operation status message. - :type status_message: object - :param target_resource: The target resource. - :type target_resource: - ~azure.mgmt.resource.resources.v2016_02_01.models.TargetResource - :param request: The HTTP request message. - :type request: - ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage - :param response: The HTTP response message. - :type response: - ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.timestamp = kwargs.get('timestamp', None) - self.service_request_id = kwargs.get('service_request_id', None) - self.status_code = kwargs.get('status_code', None) - self.status_message = kwargs.get('status_message', None) - self.target_resource = kwargs.get('target_resource', None) - self.request = kwargs.get('request', None) - self.response = kwargs.get('response', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_properties_py3.py deleted file mode 100644 index 9dc098227639..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_properties_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - :param provisioning_state: The state of the provisioning. - :type provisioning_state: str - :param timestamp: The date and time of the operation. - :type timestamp: datetime - :param service_request_id: Deployment operation service request id. - :type service_request_id: str - :param status_code: Operation status code. - :type status_code: str - :param status_message: Operation status message. - :type status_message: object - :param target_resource: The target resource. - :type target_resource: - ~azure.mgmt.resource.resources.v2016_02_01.models.TargetResource - :param request: The HTTP request message. - :type request: - ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage - :param response: The HTTP response message. - :type response: - ~azure.mgmt.resource.resources.v2016_02_01.models.HttpMessage - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, *, provisioning_state: str=None, timestamp=None, service_request_id: str=None, status_code: str=None, status_message=None, target_resource=None, request=None, response=None, **kwargs) -> None: - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = provisioning_state - self.timestamp = timestamp - self.service_request_id = service_request_id - self.status_code = status_code - self.status_message = status_message - self.target_resource = target_resource - self.request = request - self.response = response diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_py3.py deleted file mode 100644 index 9a289c3b202b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_operation_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - :param id: Full deployment operation id. - :type id: str - :param operation_id: Deployment operation id. - :type operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentOperationProperties - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, *, id: str=None, operation_id: str=None, properties=None, **kwargs) -> None: - super(DeploymentOperation, self).__init__(**kwargs) - self.id = id - self.operation_id = operation_id - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties.py deleted file mode 100644 index 7bae59be93d7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. It can be a JObject or a well - formed JSON string. Use only one of Template or TemplateLink. - :type template: object - :param template_link: The template URI. Use only one of Template or - TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink - :param parameters: Deployment parameters. It can be a JObject or a well - formed JSON string. Use only one of Parameters or ParametersLink. - :type parameters: object - :param parameters_link: The parameters URI. Use only one of Parameters or - ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink - :param mode: Required. The deployment mode. Possible values include: - 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, **kwargs): - super(DeploymentProperties, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_extended.py deleted file mode 100644 index e2065555e3a9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_extended.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - :param provisioning_state: The state of the provisioning. - :type provisioning_state: str - :param correlation_id: The correlation ID of the deployment. - :type correlation_id: str - :param timestamp: The timestamp of the template deployment. - :type timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2016_02_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2016_02_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink - :param mode: The deployment mode. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, **kwargs): - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.correlation_id = kwargs.get('correlation_id', None) - self.timestamp = kwargs.get('timestamp', None) - self.outputs = kwargs.get('outputs', None) - self.providers = kwargs.get('providers', None) - self.dependencies = kwargs.get('dependencies', None) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_extended_py3.py deleted file mode 100644 index 3819807e38e0..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_extended_py3.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - :param provisioning_state: The state of the provisioning. - :type provisioning_state: str - :param correlation_id: The correlation ID of the deployment. - :type correlation_id: str - :param timestamp: The timestamp of the template deployment. - :type timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2016_02_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2016_02_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink - :param mode: The deployment mode. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, *, provisioning_state: str=None, correlation_id: str=None, timestamp=None, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, **kwargs) -> None: - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = provisioning_state - self.correlation_id = correlation_id - self.timestamp = timestamp - self.outputs = outputs - self.providers = providers - self.dependencies = dependencies - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_py3.py deleted file mode 100644 index 9ca20cabc8a1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_properties_py3.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. It can be a JObject or a well - formed JSON string. Use only one of Template or TemplateLink. - :type template: object - :param template_link: The template URI. Use only one of Template or - TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.TemplateLink - :param parameters: Deployment parameters. It can be a JObject or a well - formed JSON string. Use only one of Parameters or ParametersLink. - :type parameters: object - :param parameters_link: The parameters URI. Use only one of Parameters or - ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_02_01.models.ParametersLink - :param mode: Required. The deployment mode. Possible values include: - 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_02_01.models.DebugSetting - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, **kwargs) -> None: - super(DeploymentProperties, self).__init__(**kwargs) - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_py3.py deleted file mode 100644 index 976868b4ff97..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - :param properties: The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentProperties - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(Deployment, self).__init__(**kwargs) - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_validate_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_validate_result.py deleted file mode 100644 index 9ef8f684f310..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_validate_result.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_validate_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_validate_result_py3.py deleted file mode 100644 index 571f3ac3b587..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/deployment_validate_result_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, error=None, properties=None, **kwargs) -> None: - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = error - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/export_template_request.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/export_template_request.py deleted file mode 100644 index 2438332b3fd1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/export_template_request.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The ids of the resources. The only supported string - currently is '*' (all resources). Future api updates will support - exporting specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.options = kwargs.get('options', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/export_template_request_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/export_template_request_py3.py deleted file mode 100644 index 4c9b3b32d3de..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/export_template_request_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The ids of the resources. The only supported string - currently is '*' (all resources). Future api updates will support - exporting specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = resources - self.options = options diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource.py deleted file mode 100644 index 555d0701dcd2..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: Id of the resource that manages this resource. - :type managed_by: str - :param sku: The sku of the resource. - :type sku: ~azure.mgmt.resource.resources.v2016_02_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2016_02_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, **kwargs): - super(GenericResource, self).__init__(**kwargs) - self.plan = kwargs.get('plan', None) - self.properties = kwargs.get('properties', None) - self.kind = kwargs.get('kind', None) - self.managed_by = kwargs.get('managed_by', None) - self.sku = kwargs.get('sku', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_filter.py deleted file mode 100644 index c4488f4cf095..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_filter.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.tagname = kwargs.get('tagname', None) - self.tagvalue = kwargs.get('tagvalue', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_filter_py3.py deleted file mode 100644 index 17ad0e58c55c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_filter_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = resource_type - self.tagname = tagname - self.tagvalue = tagvalue diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_paged.py deleted file mode 100644 index 20d56b440809..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class GenericResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`GenericResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[GenericResource]'} - } - - def __init__(self, *args, **kwargs): - - super(GenericResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_py3.py deleted file mode 100644 index e5fd59038c34..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/generic_resource_py3.py +++ /dev/null @@ -1,72 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2016_02_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: Id of the resource that manages this resource. - :type managed_by: str - :param sku: The sku of the resource. - :type sku: ~azure.mgmt.resource.resources.v2016_02_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2016_02_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: - super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) - self.plan = plan - self.properties = properties - self.kind = kind - self.managed_by = managed_by - self.sku = sku - self.identity = identity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/http_message.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/http_message.py deleted file mode 100644 index f6e080babaf1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/http_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HttpMessage. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(HttpMessage, self).__init__(**kwargs) - self.content = kwargs.get('content', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/http_message_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/http_message_py3.py deleted file mode 100644 index 0fe8e057876a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/http_message_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HttpMessage. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, *, content=None, **kwargs) -> None: - super(HttpMessage, self).__init__(**kwargs) - self.content = content diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/identity.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/identity.py deleted file mode 100644 index 2413d4599f36..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/identity.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/identity_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/identity_py3.py deleted file mode 100644 index 7dae7201db6d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/identity_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/parameters_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/parameters_link.py deleted file mode 100644 index a657e59ff1b8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/parameters_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. URI referencing the template. - :type uri: str - :param content_version: If included it must match the ContentVersion in - the template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ParametersLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/parameters_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/parameters_link_py3.py deleted file mode 100644 index 5fcf9c18d5f5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/parameters_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. URI referencing the template. - :type uri: str - :param content_version: If included it must match the ContentVersion in - the template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(ParametersLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/plan.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/plan.py deleted file mode 100644 index b0052f4344ea..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/plan.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Plan, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.publisher = kwargs.get('publisher', None) - self.product = kwargs.get('product', None) - self.promotion_code = kwargs.get('promotion_code', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/plan_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/plan_py3.py deleted file mode 100644 index 59da139a551e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/plan_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, **kwargs) -> None: - super(Plan, self).__init__(**kwargs) - self.name = name - self.publisher = publisher - self.product = product - self.promotion_code = promotion_code diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider.py deleted file mode 100644 index 2a8777107446..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - :param id: The provider id. - :type id: str - :param namespace: The namespace of the provider. - :type namespace: str - :param registration_state: The registration state of the provider. - :type registration_state: str - :param resource_types: The collection of provider resource types. - :type resource_types: - list[~azure.mgmt.resource.resources.v2016_02_01.models.ProviderResourceType] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, **kwargs): - super(Provider, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.namespace = kwargs.get('namespace', None) - self.registration_state = kwargs.get('registration_state', None) - self.resource_types = kwargs.get('resource_types', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_paged.py deleted file mode 100644 index d58095b745ea..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProviderPaged(Paged): - """ - A paging container for iterating over a list of :class:`Provider ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Provider]'} - } - - def __init__(self, *args, **kwargs): - - super(ProviderPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_py3.py deleted file mode 100644 index 28fe4396230b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - :param id: The provider id. - :type id: str - :param namespace: The namespace of the provider. - :type namespace: str - :param registration_state: The registration state of the provider. - :type registration_state: str - :param resource_types: The collection of provider resource types. - :type resource_types: - list[~azure.mgmt.resource.resources.v2016_02_01.models.ProviderResourceType] - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, *, id: str=None, namespace: str=None, registration_state: str=None, resource_types=None, **kwargs) -> None: - super(Provider, self).__init__(**kwargs) - self.id = id - self.namespace = namespace - self.registration_state = registration_state - self.resource_types = resource_types diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_resource_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_resource_type.py deleted file mode 100644 index 4ca6e1bb813b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_resource_type.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created in. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasType] - :param api_versions: The api version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.locations = kwargs.get('locations', None) - self.aliases = kwargs.get('aliases', None) - self.api_versions = kwargs.get('api_versions', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_resource_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_resource_type_py3.py deleted file mode 100644 index 60457dab9a53..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/provider_resource_type_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created in. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2016_02_01.models.AliasType] - :param api_versions: The api version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = resource_type - self.locations = locations - self.aliases = aliases - self.api_versions = api_versions - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource.py deleted file mode 100644 index a24cfa5648f3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group.py deleted file mode 100644 index bc47fd96f85b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The Name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. Has to be one of the - supported Azure Locations, such as West US, East US, West Europe, East - Asia, etc. - :type location: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_export_result.py deleted file mode 100644 index cdb3f515ea77..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_export_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """ResourceGroupExportResult. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.error = kwargs.get('error', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_export_result_py3.py deleted file mode 100644 index baa6d472a58c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_export_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """ResourceGroupExportResult. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, *, template=None, error=None, **kwargs) -> None: - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = template - self.error = error diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_filter.py deleted file mode 100644 index c94284bf3644..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_filter.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = kwargs.get('tag_name', None) - self.tag_value = kwargs.get('tag_value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_filter_py3.py deleted file mode 100644 index d709b6afd34f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_filter_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = tag_name - self.tag_value = tag_value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_paged.py deleted file mode 100644 index 36ad1c7bf4a6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ResourceGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourceGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourceGroupPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_properties.py deleted file mode 100644 index 39411e3d79fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_properties.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_properties_py3.py deleted file mode 100644 index 67d6d06dedbd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_properties_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_py3.py deleted file mode 100644 index 63105fba8f95..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_group_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The Name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. Has to be one of the - supported Azure Locations, such as West US, East US, West Europe, East - Asia, etc. - :type location: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str, name: str=None, properties=None, tags=None, **kwargs) -> None: - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties - self.location = location - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_error_with_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_error_with_details.py deleted file mode 100644 index dee88677696e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_error_with_details.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """ResourceManagementErrorWithDetails. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. The error code returned from the server. - :type code: str - :param message: Required. The error message returned from the server. - :type message: str - :param target: The target of the error. - :type target: str - :param details: Validation error. - :type details: - list[~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs): - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_error_with_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_error_with_details_py3.py deleted file mode 100644 index 97c992e8e916..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_management_error_with_details_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """ResourceManagementErrorWithDetails. - - All required parameters must be populated in order to send to Azure. - - :param code: Required. The error code returned from the server. - :type code: str - :param message: Required. The error message returned from the server. - :type message: str - :param target: The target of the error. - :type target: str - :param details: Validation error. - :type details: - list[~azure.mgmt.resource.resources.v2016_02_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'required': True}, - 'message': {'required': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, *, code: str, message: str, target: str=None, details=None, **kwargs) -> None: - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = target - self.details = details diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_provider_operation_display_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_provider_operation_display_properties.py deleted file mode 100644 index ac328b64bb1a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_provider_operation_display_properties.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = kwargs.get('publisher', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_provider_operation_display_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_provider_operation_display_properties_py3.py deleted file mode 100644 index aecc5a412673..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_provider_operation_display_properties_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = publisher - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_py3.py deleted file mode 100644 index ded219535f4c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resources_move_info.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resources_move_info.py deleted file mode 100644 index 00f415954731..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resources_move_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The ids of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.target_resource_group = kwargs.get('target_resource_group', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resources_move_info_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resources_move_info_py3.py deleted file mode 100644 index f69e3e42a3d2..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/resources_move_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The ids of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = resources - self.target_resource_group = target_resource_group diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sku.py deleted file mode 100644 index e2ced66cc962..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sku.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """Sku for the resource. - - :param name: The sku name. - :type name: str - :param tier: The sku tier. - :type tier: str - :param size: The sku size. - :type size: str - :param family: The sku family. - :type family: str - :param model: The sku model. - :type model: str - :param capacity: The sku capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - self.size = kwargs.get('size', None) - self.family = kwargs.get('family', None) - self.model = kwargs.get('model', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sku_py3.py deleted file mode 100644 index 6b441d3d85af..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sku_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """Sku for the resource. - - :param name: The sku name. - :type name: str - :param tier: The sku tier. - :type tier: str - :param size: The sku size. - :type size: str - :param family: The sku family. - :type family: str - :param model: The sku model. - :type model: str - :param capacity: The sku capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.model = model - self.capacity = capacity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sub_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sub_resource_py3.py deleted file mode 100644 index 29e5afee38f9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sub_resource_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """SubResource. - - :param id: Resource Id - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_count.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_count.py deleted file mode 100644 index 1f0ad6d4ffe8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_count.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TagCount, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.value = kwargs.get('value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_count_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_count_py3.py deleted file mode 100644 index 82c8d1ee26a5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_count_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, *, type: str=None, value: str=None, **kwargs) -> None: - super(TagCount, self).__init__(**kwargs) - self.type = type - self.value = value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details.py deleted file mode 100644 index 6f13c5842129..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The tag count. - :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2016_02_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, **kwargs): - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = kwargs.get('tag_name', None) - self.count = kwargs.get('count', None) - self.values = kwargs.get('values', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details_paged.py deleted file mode 100644 index 9925071cceb7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class TagDetailsPaged(Paged): - """ - A paging container for iterating over a list of :class:`TagDetails ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TagDetails]'} - } - - def __init__(self, *args, **kwargs): - - super(TagDetailsPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details_py3.py deleted file mode 100644 index 1044b1cf9b05..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_details_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The tag count. - :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2016_02_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = tag_name - self.count = count - self.values = values diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_value.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_value.py deleted file mode 100644 index 2de4f58ee20d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_value.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, **kwargs): - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = kwargs.get('tag_value', None) - self.count = kwargs.get('count', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_value_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_value_py3.py deleted file mode 100644 index a9c47d2ebfbe..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/tag_value_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2016_02_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = tag_value - self.count = count diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/target_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/target_resource.py deleted file mode 100644 index 27d557645e8b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/target_resource.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_name = kwargs.get('resource_name', None) - self.resource_type = kwargs.get('resource_type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/target_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/target_resource_py3.py deleted file mode 100644 index 933347cec8f8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/target_resource_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: - super(TargetResource, self).__init__(**kwargs) - self.id = id - self.resource_name = resource_name - self.resource_type = resource_type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/template_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/template_link.py deleted file mode 100644 index 5e6e03eb7bfe..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/template_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. URI referencing the template. - :type uri: str - :param content_version: If included it must match the ContentVersion in - the template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TemplateLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/template_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/template_link_py3.py deleted file mode 100644 index 0e4e9016e093..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/template_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. URI referencing the template. - :type uri: str - :param content_version: If included it must match the ContentVersion in - the template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(TemplateLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/__init__.py index da4f997ebff4..0a2b1735bca3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/__init__.py @@ -9,12 +9,12 @@ # regenerated. # -------------------------------------------------------------------------- -from .deployments_operations import DeploymentsOperations -from .providers_operations import ProvidersOperations -from .resource_groups_operations import ResourceGroupsOperations -from .resources_operations import ResourcesOperations -from .tags_operations import TagsOperations -from .deployment_operations import DeploymentOperations +from ._deployments_operations import DeploymentsOperations +from ._providers_operations import ProvidersOperations +from ._resource_groups_operations import ResourceGroupsOperations +from ._resources_operations import ResourcesOperations +from ._tags_operations import TagsOperations +from ._deployment_operations import DeploymentOperations __all__ = [ 'DeploymentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployment_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployment_operations.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployment_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployment_operations.py index 3dea64a5257c..669ce2189335 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployment_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployment_operations.py @@ -19,6 +19,8 @@ class DeploymentOperations(object): """DeploymentOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -93,7 +95,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentOperation', response) @@ -125,8 +126,7 @@ def list( ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentOperation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -159,6 +159,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -169,12 +174,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployments_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployments_operations.py index 00f417d91aaa..2e4ab39947a7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_deployments_operations.py @@ -21,6 +21,8 @@ class DeploymentsOperations(object): """DeploymentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -334,7 +336,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExtended', response) @@ -461,7 +462,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentValidateResult', response) if response.status_code == 400: @@ -527,7 +527,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExportResult', response) @@ -560,8 +559,7 @@ def list( ~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2016_02_01.models.DeploymentExtended] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -595,6 +593,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -605,12 +608,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_providers_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/providers_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_providers_operations.py index bfb7442a6d7d..e5367ba741e0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_providers_operations.py @@ -19,6 +19,8 @@ class ProvidersOperations(object): """ProvidersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -86,7 +88,6 @@ def unregister( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -146,7 +147,6 @@ def register( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -177,8 +177,7 @@ def list( ~azure.mgmt.resource.resources.v2016_02_01.models.ProviderPaged[~azure.mgmt.resource.resources.v2016_02_01.models.Provider] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -211,6 +210,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -221,12 +225,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} @@ -285,7 +287,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resource_groups_operations.py similarity index 96% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resource_groups_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resource_groups_operations.py index 08cc3d0bb19e..c97ac3add73b 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resource_groups_operations.py @@ -21,6 +21,8 @@ class ResourceGroupsOperations(object): """ResourceGroupsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -63,8 +65,7 @@ def list_resources( ~azure.mgmt.resource.resources.v2016_02_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2016_02_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_resources.metadata['url'] @@ -100,6 +101,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -110,12 +116,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} @@ -231,7 +235,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) if response.status_code == 201: @@ -370,7 +373,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -442,7 +444,6 @@ def patch( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -460,13 +461,13 @@ def export_template( :param resource_group_name: The name of the resource group to be created or updated. :type resource_group_name: str - :param resources: The ids of the resources. The only supported string - currently is '*' (all resources). Future api updates will support - exporting specific resources. + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: + 'IncludeParameterDefaultValue', 'IncludeComments', + 'SkipResourceNameParameterization', 'SkipAllParameterization' :type options: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -517,7 +518,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroupExportResult', response) @@ -547,8 +547,7 @@ def list( ~azure.mgmt.resource.resources.v2016_02_01.models.ResourceGroupPaged[~azure.mgmt.resource.resources.v2016_02_01.models.ResourceGroup] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -581,6 +580,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -591,12 +595,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resources_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resources_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resources_operations.py index 16723808af93..0e77e3c96988 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_resources_operations.py @@ -21,6 +21,8 @@ class ResourcesOperations(object): """ResourcesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -148,8 +150,7 @@ def list( ~azure.mgmt.resource.resources.v2016_02_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2016_02_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -184,6 +185,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -194,12 +200,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} @@ -407,7 +411,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) if response.status_code == 201: @@ -602,7 +605,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_tags_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/tags_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_tags_operations.py index 824244812a13..f453f85f89bf 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/operations/_tags_operations.py @@ -19,6 +19,8 @@ class TagsOperations(object): """TagsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -141,7 +143,6 @@ def create_or_update_value( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagValue', response) if response.status_code == 201: @@ -202,7 +203,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagDetails', response) if response.status_code == 201: @@ -279,8 +279,7 @@ def list( ~azure.mgmt.resource.resources.v2016_02_01.models.TagDetailsPaged[~azure.mgmt.resource.resources.v2016_02_01.models.TagDetails] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -309,6 +308,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -319,12 +323,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/__init__.py index d2e3198e88e6..68bc897193ac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .resource_management_client import ResourceManagementClient -from .version import VERSION +from ._configuration import ResourceManagementClientConfiguration +from ._resource_management_client import ResourceManagementClient +__all__ = ['ResourceManagementClient', 'ResourceManagementClientConfiguration'] -__all__ = ['ResourceManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_configuration.py new file mode 100644 index 000000000000..3b326f792363 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ResourceManagementClientConfiguration(AzureConfiguration): + """Configuration for ResourceManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ResourceManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/resource_management_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_resource_management_client.py similarity index 66% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/resource_management_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_resource_management_client.py index 4fa4270256bb..7792f1b0f3d4 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/resource_management_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/_resource_management_client.py @@ -11,47 +11,15 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.deployments_operations import DeploymentsOperations -from .operations.providers_operations import ProvidersOperations -from .operations.resource_groups_operations import ResourceGroupsOperations -from .operations.resources_operations import ResourcesOperations -from .operations.tags_operations import TagsOperations -from .operations.deployment_operations import DeploymentOperations -from . import models - - -class ResourceManagementClientConfiguration(AzureConfiguration): - """Configuration for ResourceManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ResourceManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ResourceManagementClientConfiguration +from .operations import DeploymentsOperations +from .operations import ProvidersOperations +from .operations import ResourceGroupsOperations +from .operations import ResourcesOperations +from .operations import TagsOperations +from .operations import DeploymentOperations +from . import models class ResourceManagementClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/__init__.py index c5534984cdc7..97142ddf7af8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/__init__.py @@ -10,133 +10,133 @@ # -------------------------------------------------------------------------- try: - from .deployment_extended_filter_py3 import DeploymentExtendedFilter - from .generic_resource_filter_py3 import GenericResourceFilter - from .resource_group_filter_py3 import ResourceGroupFilter - from .template_link_py3 import TemplateLink - from .parameters_link_py3 import ParametersLink - from .debug_setting_py3 import DebugSetting - from .deployment_properties_py3 import DeploymentProperties - from .deployment_py3 import Deployment - from .deployment_export_result_py3 import DeploymentExportResult - from .resource_management_error_with_details_py3 import ResourceManagementErrorWithDetails - from .alias_path_type_py3 import AliasPathType - from .alias_type_py3 import AliasType - from .provider_resource_type_py3 import ProviderResourceType - from .provider_py3 import Provider - from .basic_dependency_py3 import BasicDependency - from .dependency_py3 import Dependency - from .deployment_properties_extended_py3 import DeploymentPropertiesExtended - from .deployment_validate_result_py3 import DeploymentValidateResult - from .deployment_extended_py3 import DeploymentExtended - from .plan_py3 import Plan - from .sku_py3 import Sku - from .identity_py3 import Identity - from .generic_resource_py3 import GenericResource - from .resource_group_properties_py3 import ResourceGroupProperties - from .resource_group_py3 import ResourceGroup - from .resources_move_info_py3 import ResourcesMoveInfo - from .export_template_request_py3 import ExportTemplateRequest - from .tag_count_py3 import TagCount - from .tag_value_py3 import TagValue - from .tag_details_py3 import TagDetails - from .target_resource_py3 import TargetResource - from .http_message_py3 import HttpMessage - from .deployment_operation_properties_py3 import DeploymentOperationProperties - from .deployment_operation_py3 import DeploymentOperation - from .resource_provider_operation_display_properties_py3 import ResourceProviderOperationDisplayProperties - from .resource_py3 import Resource - from .sub_resource_py3 import SubResource - from .resource_group_export_result_py3 import ResourceGroupExportResult + from ._models_py3 import AliasPathType + from ._models_py3 import AliasType + from ._models_py3 import BasicDependency + from ._models_py3 import DebugSetting + from ._models_py3 import Dependency + from ._models_py3 import Deployment + from ._models_py3 import DeploymentExportResult + from ._models_py3 import DeploymentExtended + from ._models_py3 import DeploymentExtendedFilter + from ._models_py3 import DeploymentOperation + from ._models_py3 import DeploymentOperationProperties + from ._models_py3 import DeploymentProperties + from ._models_py3 import DeploymentPropertiesExtended + from ._models_py3 import DeploymentValidateResult + from ._models_py3 import ExportTemplateRequest + from ._models_py3 import GenericResource + from ._models_py3 import GenericResourceFilter + from ._models_py3 import HttpMessage + from ._models_py3 import Identity + from ._models_py3 import ParametersLink + from ._models_py3 import Plan + from ._models_py3 import Provider + from ._models_py3 import ProviderResourceType + from ._models_py3 import Resource + from ._models_py3 import ResourceGroup + from ._models_py3 import ResourceGroupExportResult + from ._models_py3 import ResourceGroupFilter + from ._models_py3 import ResourceGroupProperties + from ._models_py3 import ResourceManagementErrorWithDetails + from ._models_py3 import ResourceProviderOperationDisplayProperties + from ._models_py3 import ResourcesMoveInfo + from ._models_py3 import Sku + from ._models_py3 import SubResource + from ._models_py3 import TagCount + from ._models_py3 import TagDetails + from ._models_py3 import TagValue + from ._models_py3 import TargetResource + from ._models_py3 import TemplateLink except (SyntaxError, ImportError): - from .deployment_extended_filter import DeploymentExtendedFilter - from .generic_resource_filter import GenericResourceFilter - from .resource_group_filter import ResourceGroupFilter - from .template_link import TemplateLink - from .parameters_link import ParametersLink - from .debug_setting import DebugSetting - from .deployment_properties import DeploymentProperties - from .deployment import Deployment - from .deployment_export_result import DeploymentExportResult - from .resource_management_error_with_details import ResourceManagementErrorWithDetails - from .alias_path_type import AliasPathType - from .alias_type import AliasType - from .provider_resource_type import ProviderResourceType - from .provider import Provider - from .basic_dependency import BasicDependency - from .dependency import Dependency - from .deployment_properties_extended import DeploymentPropertiesExtended - from .deployment_validate_result import DeploymentValidateResult - from .deployment_extended import DeploymentExtended - from .plan import Plan - from .sku import Sku - from .identity import Identity - from .generic_resource import GenericResource - from .resource_group_properties import ResourceGroupProperties - from .resource_group import ResourceGroup - from .resources_move_info import ResourcesMoveInfo - from .export_template_request import ExportTemplateRequest - from .tag_count import TagCount - from .tag_value import TagValue - from .tag_details import TagDetails - from .target_resource import TargetResource - from .http_message import HttpMessage - from .deployment_operation_properties import DeploymentOperationProperties - from .deployment_operation import DeploymentOperation - from .resource_provider_operation_display_properties import ResourceProviderOperationDisplayProperties - from .resource import Resource - from .sub_resource import SubResource - from .resource_group_export_result import ResourceGroupExportResult -from .deployment_extended_paged import DeploymentExtendedPaged -from .provider_paged import ProviderPaged -from .generic_resource_paged import GenericResourcePaged -from .resource_group_paged import ResourceGroupPaged -from .tag_details_paged import TagDetailsPaged -from .deployment_operation_paged import DeploymentOperationPaged -from .resource_management_client_enums import ( + from ._models import AliasPathType + from ._models import AliasType + from ._models import BasicDependency + from ._models import DebugSetting + from ._models import Dependency + from ._models import Deployment + from ._models import DeploymentExportResult + from ._models import DeploymentExtended + from ._models import DeploymentExtendedFilter + from ._models import DeploymentOperation + from ._models import DeploymentOperationProperties + from ._models import DeploymentProperties + from ._models import DeploymentPropertiesExtended + from ._models import DeploymentValidateResult + from ._models import ExportTemplateRequest + from ._models import GenericResource + from ._models import GenericResourceFilter + from ._models import HttpMessage + from ._models import Identity + from ._models import ParametersLink + from ._models import Plan + from ._models import Provider + from ._models import ProviderResourceType + from ._models import Resource + from ._models import ResourceGroup + from ._models import ResourceGroupExportResult + from ._models import ResourceGroupFilter + from ._models import ResourceGroupProperties + from ._models import ResourceManagementErrorWithDetails + from ._models import ResourceProviderOperationDisplayProperties + from ._models import ResourcesMoveInfo + from ._models import Sku + from ._models import SubResource + from ._models import TagCount + from ._models import TagDetails + from ._models import TagValue + from ._models import TargetResource + from ._models import TemplateLink +from ._paged_models import DeploymentExtendedPaged +from ._paged_models import DeploymentOperationPaged +from ._paged_models import GenericResourcePaged +from ._paged_models import ProviderPaged +from ._paged_models import ResourceGroupPaged +from ._paged_models import TagDetailsPaged +from ._resource_management_client_enums import ( DeploymentMode, ResourceIdentityType, ) __all__ = [ - 'DeploymentExtendedFilter', - 'GenericResourceFilter', - 'ResourceGroupFilter', - 'TemplateLink', - 'ParametersLink', - 'DebugSetting', - 'DeploymentProperties', - 'Deployment', - 'DeploymentExportResult', - 'ResourceManagementErrorWithDetails', 'AliasPathType', 'AliasType', - 'ProviderResourceType', - 'Provider', 'BasicDependency', + 'DebugSetting', 'Dependency', + 'Deployment', + 'DeploymentExportResult', + 'DeploymentExtended', + 'DeploymentExtendedFilter', + 'DeploymentOperation', + 'DeploymentOperationProperties', + 'DeploymentProperties', 'DeploymentPropertiesExtended', 'DeploymentValidateResult', - 'DeploymentExtended', - 'Plan', - 'Sku', - 'Identity', + 'ExportTemplateRequest', 'GenericResource', - 'ResourceGroupProperties', + 'GenericResourceFilter', + 'HttpMessage', + 'Identity', + 'ParametersLink', + 'Plan', + 'Provider', + 'ProviderResourceType', + 'Resource', 'ResourceGroup', + 'ResourceGroupExportResult', + 'ResourceGroupFilter', + 'ResourceGroupProperties', + 'ResourceManagementErrorWithDetails', + 'ResourceProviderOperationDisplayProperties', 'ResourcesMoveInfo', - 'ExportTemplateRequest', + 'Sku', + 'SubResource', 'TagCount', - 'TagValue', 'TagDetails', + 'TagValue', 'TargetResource', - 'HttpMessage', - 'DeploymentOperationProperties', - 'DeploymentOperation', - 'ResourceProviderOperationDisplayProperties', - 'Resource', - 'SubResource', - 'ResourceGroupExportResult', + 'TemplateLink', 'DeploymentExtendedPaged', 'ProviderPaged', 'GenericResourcePaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models.py new file mode 100644 index 000000000000..0e82991fd7b4 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models.py @@ -0,0 +1,1210 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AliasPathType, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.api_versions = kwargs.get('api_versions', None) + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, **kwargs): + super(AliasType, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.paths = kwargs.get('paths', None) + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BasicDependency, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = kwargs.get('detail_level', None) + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2016_09_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dependency, self).__init__(**kwargs) + self.depends_on = kwargs.get('depends_on', None) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, **kwargs): + super(Deployment, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = kwargs.get('properties', None) + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2016_09_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, **kwargs): + super(DeploymentProperties, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2016_09_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2016_09_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, **kwargs): + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = kwargs.get('outputs', None) + self.providers = kwargs.get('providers', None) + self.dependencies = kwargs.get('dependencies', None) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.properties = kwargs.get('properties', None) + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.options = kwargs.get('options', None) + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2016_09_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2016_09_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(GenericResource, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.properties = kwargs.get('properties', None) + self.kind = kwargs.get('kind', None) + self.managed_by = kwargs.get('managed_by', None) + self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.tagname = kwargs.get('tagname', None) + self.tagvalue = kwargs.get('tagvalue', None) + + +class HttpMessage(Model): + """HttpMessage. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(HttpMessage, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ParametersLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2016_09_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, **kwargs): + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = kwargs.get('namespace', None) + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.locations = kwargs.get('locations', None) + self.aliases = kwargs.get('aliases', None) + self.api_versions = kwargs.get('api_versions', None) + self.properties = kwargs.get('properties', None) + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.location = kwargs.get('location', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupExportResult(Model): + """ResourceGroupExportResult. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.error = kwargs.get('error', None) + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = kwargs.get('tag_name', None) + self.tag_value = kwargs.get('tag_value', None) + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """ResourceManagementErrorWithDetails. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs): + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.target_resource_group = kwargs.get('target_resource_group', None) + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + self.model = kwargs.get('model', None) + self.capacity = kwargs.get('capacity', None) + + +class SubResource(Model): + """SubResource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(TagCount, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.value = kwargs.get('value', None) + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2016_09_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, **kwargs): + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = kwargs.get('tag_name', None) + self.count = kwargs.get('count', None) + self.values = kwargs.get('values', None) + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, **kwargs): + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = kwargs.get('tag_value', None) + self.count = kwargs.get('count', None) + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_name = kwargs.get('resource_name', None) + self.resource_type = kwargs.get('resource_type', None) + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TemplateLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models_py3.py new file mode 100644 index 000000000000..45bcb9a1c6ef --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_models_py3.py @@ -0,0 +1,1210 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: + super(AliasPathType, self).__init__(**kwargs) + self.path = path + self.api_versions = api_versions + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: + super(AliasType, self).__init__(**kwargs) + self.name = name + self.paths = paths + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(BasicDependency, self).__init__(**kwargs) + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, *, detail_level: str=None, **kwargs) -> None: + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = detail_level + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2016_09_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(Dependency, self).__init__(**kwargs) + self.depends_on = depends_on + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, *, properties, **kwargs) -> None: + super(Deployment, self).__init__(**kwargs) + self.properties = properties + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, *, template=None, **kwargs) -> None: + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = template + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, name: str, properties=None, **kwargs) -> None: + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = properties + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2016_09_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs) -> None: + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, **kwargs) -> None: + super(DeploymentProperties, self).__init__(**kwargs) + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2016_09_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2016_09_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, **kwargs) -> None: + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = outputs + self.providers = providers + self.dependencies = dependencies + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, error=None, properties=None, **kwargs) -> None: + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = error + self.properties = properties + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = resources + self.options = options + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2016_09_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2016_09_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: + super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.properties = properties + self.kind = kind + self.managed_by = managed_by + self.sku = sku + self.identity = identity + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = resource_type + self.tagname = tagname + self.tagvalue = tagvalue + + +class HttpMessage(Model): + """HttpMessage. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, *, content=None, **kwargs) -> None: + super(HttpMessage, self).__init__(**kwargs) + self.content = content + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(ParametersLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, **kwargs) -> None: + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2016_09_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, *, namespace: str=None, **kwargs) -> None: + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = namespace + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = resource_type + self.locations = locations + self.aliases = aliases + self.api_versions = api_versions + self.properties = properties + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + self.location = location + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupExportResult(Model): + """ResourceGroupExportResult. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, *, template=None, error=None, **kwargs) -> None: + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = template + self.error = error + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = tag_name + self.tag_value = tag_value + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """ResourceManagementErrorWithDetails. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = publisher + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = resources + self.target_resource_group = target_resource_group + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.size = size + self.family = family + self.model = model + self.capacity = capacity + + +class SubResource(Model): + """SubResource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: + super(TagCount, self).__init__(**kwargs) + self.type = type + self.value = value + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2016_09_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = tag_name + self.count = count + self.values = values + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = tag_value + self.count = count + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: + super(TargetResource, self).__init__(**kwargs) + self.id = id + self.resource_name = resource_name + self.resource_type = resource_type + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(TemplateLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_paged_models.py new file mode 100644 index 000000000000..cafbf738c93f --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_paged_models.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class DeploymentExtendedPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentExtended ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) +class ProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`Provider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Provider]'} + } + + def __init__(self, *args, **kwargs): + + super(ProviderPaged, self).__init__(*args, **kwargs) +class GenericResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`GenericResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GenericResource]'} + } + + def __init__(self, *args, **kwargs): + + super(GenericResourcePaged, self).__init__(*args, **kwargs) +class ResourceGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceGroupPaged, self).__init__(*args, **kwargs) +class TagDetailsPaged(Paged): + """ + A paging container for iterating over a list of :class:`TagDetails ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TagDetails]'} + } + + def __init__(self, *args, **kwargs): + + super(TagDetailsPaged, self).__init__(*args, **kwargs) +class DeploymentOperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentOperation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_resource_management_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/_resource_management_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_path_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_path_type.py deleted file mode 100644 index ee5959ef5463..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_path_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AliasPathType, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.api_versions = kwargs.get('api_versions', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_path_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_path_type_py3.py deleted file mode 100644 index ccd48141f917..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_path_type_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: - super(AliasPathType, self).__init__(**kwargs) - self.path = path - self.api_versions = api_versions diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_type.py deleted file mode 100644 index 50529e5cf312..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, **kwargs): - super(AliasType, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.paths = kwargs.get('paths', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_type_py3.py deleted file mode 100644 index c4df9f929765..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/alias_type_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: - super(AliasType, self).__init__(**kwargs) - self.name = name - self.paths = paths diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/basic_dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/basic_dependency.py deleted file mode 100644 index 3a5ccd4aa464..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/basic_dependency.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BasicDependency, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/basic_dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/basic_dependency_py3.py deleted file mode 100644 index 49d821737930..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/basic_dependency_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(BasicDependency, self).__init__(**kwargs) - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/debug_setting.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/debug_setting.py deleted file mode 100644 index d6f778c5c86d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/debug_setting.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = kwargs.get('detail_level', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/debug_setting_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/debug_setting_py3.py deleted file mode 100644 index af571a729762..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/debug_setting_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, *, detail_level: str=None, **kwargs) -> None: - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = detail_level diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/dependency.py deleted file mode 100644 index eaea8dbcb8ab..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/dependency.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2016_09_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Dependency, self).__init__(**kwargs) - self.depends_on = kwargs.get('depends_on', None) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/dependency_py3.py deleted file mode 100644 index adecd1f20f4b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/dependency_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2016_09_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(Dependency, self).__init__(**kwargs) - self.depends_on = depends_on - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment.py deleted file mode 100644 index 8e0456aeb00d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, **kwargs): - super(Deployment, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_export_result.py deleted file mode 100644 index 807e79c8b678..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_export_result.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_export_result_py3.py deleted file mode 100644 index 63f10bf2735a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_export_result_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, *, template=None, **kwargs) -> None: - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = template diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended.py deleted file mode 100644 index 60c1bbe9c93e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_filter.py deleted file mode 100644 index 0839bcc12e4e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_filter.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_filter_py3.py deleted file mode 100644 index f06d0d1a4dfb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_filter_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = provisioning_state diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_paged.py deleted file mode 100644 index e6dad900e509..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentExtendedPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentExtended ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_py3.py deleted file mode 100644 index 63c91e2a377f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_extended_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, name: str, properties=None, **kwargs) -> None: - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation.py deleted file mode 100644 index 03f068a75209..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_paged.py deleted file mode 100644 index 58d6e38c4a05..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentOperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentOperation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties.py deleted file mode 100644 index b419f384d996..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2016_09_01.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties_py3.py deleted file mode 100644 index 5f38d5397dac..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_properties_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2016_09_01.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2016_09_01.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs) -> None: - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_py3.py deleted file mode 100644 index 04e8dd066bb5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_operation_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties.py deleted file mode 100644 index fc2c23d46783..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, **kwargs): - super(DeploymentProperties, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_extended.py deleted file mode 100644 index b337d1cf4d3c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_extended.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2016_09_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2016_09_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, **kwargs): - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = kwargs.get('outputs', None) - self.providers = kwargs.get('providers', None) - self.dependencies = kwargs.get('dependencies', None) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_extended_py3.py deleted file mode 100644 index 1bb1c132b19b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_extended_py3.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2016_09_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2016_09_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, **kwargs) -> None: - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = outputs - self.providers = providers - self.dependencies = dependencies - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_py3.py deleted file mode 100644 index 962216f1a0a5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_properties_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2016_09_01.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2016_09_01.models.DebugSetting - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, **kwargs) -> None: - super(DeploymentProperties, self).__init__(**kwargs) - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_py3.py deleted file mode 100644 index 415f35e07862..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, *, properties, **kwargs) -> None: - super(Deployment, self).__init__(**kwargs) - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_validate_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_validate_result.py deleted file mode 100644 index 3e454cc4b390..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_validate_result.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_validate_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_validate_result_py3.py deleted file mode 100644 index 5f2c3db1fd22..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/deployment_validate_result_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, error=None, properties=None, **kwargs) -> None: - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = error - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/export_template_request.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/export_template_request.py deleted file mode 100644 index 069bfbb70632..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/export_template_request.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.options = kwargs.get('options', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/export_template_request_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/export_template_request_py3.py deleted file mode 100644 index 2374c103d566..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/export_template_request_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = resources - self.options = options diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource.py deleted file mode 100644 index 44b6cf1eb592..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2016_09_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2016_09_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, **kwargs): - super(GenericResource, self).__init__(**kwargs) - self.plan = kwargs.get('plan', None) - self.properties = kwargs.get('properties', None) - self.kind = kwargs.get('kind', None) - self.managed_by = kwargs.get('managed_by', None) - self.sku = kwargs.get('sku', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_filter.py deleted file mode 100644 index c4488f4cf095..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_filter.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.tagname = kwargs.get('tagname', None) - self.tagvalue = kwargs.get('tagvalue', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_filter_py3.py deleted file mode 100644 index 17ad0e58c55c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_filter_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = resource_type - self.tagname = tagname - self.tagvalue = tagvalue diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_paged.py deleted file mode 100644 index e1448128161c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class GenericResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`GenericResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[GenericResource]'} - } - - def __init__(self, *args, **kwargs): - - super(GenericResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_py3.py deleted file mode 100644 index 9c770395c708..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/generic_resource_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2016_09_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2016_09_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2016_09_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: - super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) - self.plan = plan - self.properties = properties - self.kind = kind - self.managed_by = managed_by - self.sku = sku - self.identity = identity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/http_message.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/http_message.py deleted file mode 100644 index f6e080babaf1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/http_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HttpMessage. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(HttpMessage, self).__init__(**kwargs) - self.content = kwargs.get('content', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/http_message_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/http_message_py3.py deleted file mode 100644 index 0fe8e057876a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/http_message_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HttpMessage. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, *, content=None, **kwargs) -> None: - super(HttpMessage, self).__init__(**kwargs) - self.content = content diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/identity.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/identity.py deleted file mode 100644 index 8f1adb1fd10a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/identity.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/identity_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/identity_py3.py deleted file mode 100644 index 8b22c328ada6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/identity_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/parameters_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/parameters_link.py deleted file mode 100644 index 0696248fc17c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/parameters_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ParametersLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/parameters_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/parameters_link_py3.py deleted file mode 100644 index 734546c362c4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/parameters_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(ParametersLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/plan.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/plan.py deleted file mode 100644 index b0052f4344ea..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/plan.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Plan, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.publisher = kwargs.get('publisher', None) - self.product = kwargs.get('product', None) - self.promotion_code = kwargs.get('promotion_code', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/plan_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/plan_py3.py deleted file mode 100644 index 59da139a551e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/plan_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, **kwargs) -> None: - super(Plan, self).__init__(**kwargs) - self.name = name - self.publisher = publisher - self.product = product - self.promotion_code = promotion_code diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider.py deleted file mode 100644 index 04dc2c801611..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2016_09_01.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, **kwargs): - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = kwargs.get('namespace', None) - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_paged.py deleted file mode 100644 index b8e2674976b1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProviderPaged(Paged): - """ - A paging container for iterating over a list of :class:`Provider ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Provider]'} - } - - def __init__(self, *args, **kwargs): - - super(ProviderPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_py3.py deleted file mode 100644 index b830cf9023cc..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2016_09_01.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, *, namespace: str=None, **kwargs) -> None: - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = namespace - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_resource_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_resource_type.py deleted file mode 100644 index b87867ad0a86..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_resource_type.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.locations = kwargs.get('locations', None) - self.aliases = kwargs.get('aliases', None) - self.api_versions = kwargs.get('api_versions', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_resource_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_resource_type_py3.py deleted file mode 100644 index 9f07228051e7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/provider_resource_type_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2016_09_01.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = resource_type - self.locations = locations - self.aliases = aliases - self.api_versions = api_versions - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource.py deleted file mode 100644 index ee7662aeee52..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group.py deleted file mode 100644 index 6a66925978ed..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.location = kwargs.get('location', None) - self.managed_by = kwargs.get('managed_by', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_export_result.py deleted file mode 100644 index a2fab58e5e1f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_export_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """ResourceGroupExportResult. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.error = kwargs.get('error', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_export_result_py3.py deleted file mode 100644 index 35130719e255..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_export_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """ResourceGroupExportResult. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, *, template=None, error=None, **kwargs) -> None: - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = template - self.error = error diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_filter.py deleted file mode 100644 index c94284bf3644..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_filter.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = kwargs.get('tag_name', None) - self.tag_value = kwargs.get('tag_value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_filter_py3.py deleted file mode 100644 index d709b6afd34f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_filter_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = tag_name - self.tag_value = tag_value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_paged.py deleted file mode 100644 index 8ee7c5ec2095..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ResourceGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourceGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourceGroupPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_properties.py deleted file mode 100644 index 39411e3d79fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_properties.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_properties_py3.py deleted file mode 100644 index 67d6d06dedbd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_properties_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_py3.py deleted file mode 100644 index 1243c3e93af1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_group_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties - self.location = location - self.managed_by = managed_by - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_error_with_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_error_with_details.py deleted file mode 100644 index 8e48f01e3db7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_error_with_details.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """ResourceManagementErrorWithDetails. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs): - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_error_with_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_error_with_details_py3.py deleted file mode 100644 index 8ca9c8e28cdd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_management_error_with_details_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """ResourceManagementErrorWithDetails. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2016_09_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_provider_operation_display_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_provider_operation_display_properties.py deleted file mode 100644 index ac328b64bb1a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_provider_operation_display_properties.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = kwargs.get('publisher', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_provider_operation_display_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_provider_operation_display_properties_py3.py deleted file mode 100644 index aecc5a412673..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_provider_operation_display_properties_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = publisher - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_py3.py deleted file mode 100644 index 3c8102ab5262..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resources_move_info.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resources_move_info.py deleted file mode 100644 index edf946d7076b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resources_move_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.target_resource_group = kwargs.get('target_resource_group', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resources_move_info_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resources_move_info_py3.py deleted file mode 100644 index d10e2558d499..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/resources_move_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = resources - self.target_resource_group = target_resource_group diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sku.py deleted file mode 100644 index bfcda32477df..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sku.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - self.size = kwargs.get('size', None) - self.family = kwargs.get('family', None) - self.model = kwargs.get('model', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sku_py3.py deleted file mode 100644 index 676f1d770b79..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sku_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.model = model - self.capacity = capacity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sub_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sub_resource_py3.py deleted file mode 100644 index d801e54680b2..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sub_resource_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """SubResource. - - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_count.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_count.py deleted file mode 100644 index a5eeb6b38cf8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_count.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(TagCount, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.value = kwargs.get('value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_count_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_count_py3.py deleted file mode 100644 index 53c80f63fdb3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_count_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: - super(TagCount, self).__init__(**kwargs) - self.type = type - self.value = value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details.py deleted file mode 100644 index 53c21e1fea02..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2016_09_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, **kwargs): - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = kwargs.get('tag_name', None) - self.count = kwargs.get('count', None) - self.values = kwargs.get('values', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details_paged.py deleted file mode 100644 index bc1aeceea33c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class TagDetailsPaged(Paged): - """ - A paging container for iterating over a list of :class:`TagDetails ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TagDetails]'} - } - - def __init__(self, *args, **kwargs): - - super(TagDetailsPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details_py3.py deleted file mode 100644 index 9b946fea1a86..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_details_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2016_09_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = tag_name - self.count = count - self.values = values diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_value.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_value.py deleted file mode 100644 index 5b4a2e8e28d7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_value.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, **kwargs): - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = kwargs.get('tag_value', None) - self.count = kwargs.get('count', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_value_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_value_py3.py deleted file mode 100644 index 3228cd63f3f4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/tag_value_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2016_09_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = tag_value - self.count = count diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/target_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/target_resource.py deleted file mode 100644 index 27d557645e8b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/target_resource.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_name = kwargs.get('resource_name', None) - self.resource_type = kwargs.get('resource_type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/target_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/target_resource_py3.py deleted file mode 100644 index 933347cec8f8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/target_resource_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: - super(TargetResource, self).__init__(**kwargs) - self.id = id - self.resource_name = resource_name - self.resource_type = resource_type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/template_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/template_link.py deleted file mode 100644 index 634095bb9754..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/template_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TemplateLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/template_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/template_link_py3.py deleted file mode 100644 index 00f2597ccd98..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/template_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(TemplateLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/__init__.py index da4f997ebff4..0a2b1735bca3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/__init__.py @@ -9,12 +9,12 @@ # regenerated. # -------------------------------------------------------------------------- -from .deployments_operations import DeploymentsOperations -from .providers_operations import ProvidersOperations -from .resource_groups_operations import ResourceGroupsOperations -from .resources_operations import ResourcesOperations -from .tags_operations import TagsOperations -from .deployment_operations import DeploymentOperations +from ._deployments_operations import DeploymentsOperations +from ._providers_operations import ProvidersOperations +from ._resource_groups_operations import ResourceGroupsOperations +from ._resources_operations import ResourcesOperations +from ._tags_operations import TagsOperations +from ._deployment_operations import DeploymentOperations __all__ = [ 'DeploymentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployment_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployment_operations.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployment_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployment_operations.py index 1b387dffc88f..08a93eaa6545 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployment_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployment_operations.py @@ -19,6 +19,8 @@ class DeploymentOperations(object): """DeploymentOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -93,7 +95,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentOperation', response) @@ -126,8 +127,7 @@ def list( ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentOperation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -160,6 +160,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -170,12 +175,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployments_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployments_operations.py index 961eb3666ef5..82a8180d82e2 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_deployments_operations.py @@ -21,6 +21,8 @@ class DeploymentsOperations(object): """DeploymentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -350,7 +352,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExtended', response) @@ -484,7 +485,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentValidateResult', response) if response.status_code == 400: @@ -551,7 +551,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExportResult', response) @@ -585,8 +584,7 @@ def list( ~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2016_09_01.models.DeploymentExtended] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -620,6 +618,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -630,12 +633,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_providers_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/providers_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_providers_operations.py index af86920a2e5e..efda6c37d20e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_providers_operations.py @@ -19,6 +19,8 @@ class ProvidersOperations(object): """ProvidersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -86,7 +88,6 @@ def unregister( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -146,7 +147,6 @@ def register( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -179,8 +179,7 @@ def list( ~azure.mgmt.resource.resources.v2016_09_01.models.ProviderPaged[~azure.mgmt.resource.resources.v2016_09_01.models.Provider] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -213,6 +212,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -223,12 +227,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} @@ -287,7 +289,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resource_groups_operations.py similarity index 96% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resource_groups_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resource_groups_operations.py index 77577612368f..0585164c211f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resource_groups_operations.py @@ -21,6 +21,8 @@ class ResourceGroupsOperations(object): """ResourceGroupsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -63,8 +65,7 @@ def list_resources( ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_resources.metadata['url'] @@ -100,6 +101,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -110,12 +116,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} @@ -231,7 +235,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) if response.status_code == 201: @@ -374,7 +377,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -447,7 +449,6 @@ def patch( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -465,13 +466,13 @@ def export_template( :param resource_group_name: The name of the resource group to export as a template. :type resource_group_name: str - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support - exporting specific resources. + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: + 'IncludeParameterDefaultValue', 'IncludeComments', + 'SkipResourceNameParameterization', 'SkipAllParameterization' :type options: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -522,7 +523,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroupExportResult', response) @@ -552,8 +552,7 @@ def list( ~azure.mgmt.resource.resources.v2016_09_01.models.ResourceGroupPaged[~azure.mgmt.resource.resources.v2016_09_01.models.ResourceGroup] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -586,6 +585,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -596,12 +600,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resources_operations.py similarity index 99% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resources_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resources_operations.py index 1f65ea4738b3..fc92357bb55e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_resources_operations.py @@ -21,6 +21,8 @@ class ResourcesOperations(object): """ResourcesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -154,8 +156,7 @@ def list( ~azure.mgmt.resource.resources.v2016_09_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2016_09_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -190,6 +191,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -200,12 +206,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} @@ -678,7 +682,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) @@ -1079,7 +1082,6 @@ def get_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_tags_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/tags_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_tags_operations.py index abfa138d5306..7f4a7c78a822 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/operations/_tags_operations.py @@ -19,6 +19,8 @@ class TagsOperations(object): """TagsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -141,7 +143,6 @@ def create_or_update_value( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagValue', response) if response.status_code == 201: @@ -206,7 +207,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagDetails', response) if response.status_code == 201: @@ -287,8 +287,7 @@ def list( ~azure.mgmt.resource.resources.v2016_09_01.models.TagDetailsPaged[~azure.mgmt.resource.resources.v2016_09_01.models.TagDetails] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -317,6 +316,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -327,12 +331,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/__init__.py index d2e3198e88e6..68bc897193ac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .resource_management_client import ResourceManagementClient -from .version import VERSION +from ._configuration import ResourceManagementClientConfiguration +from ._resource_management_client import ResourceManagementClient +__all__ = ['ResourceManagementClient', 'ResourceManagementClientConfiguration'] -__all__ = ['ResourceManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_configuration.py new file mode 100644 index 000000000000..3b326f792363 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ResourceManagementClientConfiguration(AzureConfiguration): + """Configuration for ResourceManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ResourceManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/resource_management_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_resource_management_client.py similarity index 66% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/resource_management_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_resource_management_client.py index 1e8e488a20da..2c2a19c959e6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/resource_management_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/_resource_management_client.py @@ -11,47 +11,15 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.deployments_operations import DeploymentsOperations -from .operations.providers_operations import ProvidersOperations -from .operations.resources_operations import ResourcesOperations -from .operations.resource_groups_operations import ResourceGroupsOperations -from .operations.tags_operations import TagsOperations -from .operations.deployment_operations import DeploymentOperations -from . import models - - -class ResourceManagementClientConfiguration(AzureConfiguration): - """Configuration for ResourceManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ResourceManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ResourceManagementClientConfiguration +from .operations import DeploymentsOperations +from .operations import ProvidersOperations +from .operations import ResourcesOperations +from .operations import ResourceGroupsOperations +from .operations import TagsOperations +from .operations import DeploymentOperations +from . import models class ResourceManagementClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/__init__.py index 5d0dbe082824..70e8f8c5f99a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/__init__.py @@ -10,136 +10,136 @@ # -------------------------------------------------------------------------- try: - from .deployment_extended_filter_py3 import DeploymentExtendedFilter - from .generic_resource_filter_py3 import GenericResourceFilter - from .resource_group_filter_py3 import ResourceGroupFilter - from .template_link_py3 import TemplateLink - from .parameters_link_py3 import ParametersLink - from .debug_setting_py3 import DebugSetting - from .deployment_properties_py3 import DeploymentProperties - from .deployment_py3 import Deployment - from .deployment_export_result_py3 import DeploymentExportResult - from .resource_management_error_with_details_py3 import ResourceManagementErrorWithDetails - from .alias_path_type_py3 import AliasPathType - from .alias_type_py3 import AliasType - from .provider_resource_type_py3 import ProviderResourceType - from .provider_py3 import Provider - from .basic_dependency_py3 import BasicDependency - from .dependency_py3 import Dependency - from .deployment_properties_extended_py3 import DeploymentPropertiesExtended - from .deployment_validate_result_py3 import DeploymentValidateResult - from .deployment_extended_py3 import DeploymentExtended - from .plan_py3 import Plan - from .sku_py3 import Sku - from .identity_py3 import Identity - from .generic_resource_py3 import GenericResource - from .resource_group_properties_py3 import ResourceGroupProperties - from .resource_group_py3 import ResourceGroup - from .resource_group_patchable_py3 import ResourceGroupPatchable - from .resources_move_info_py3 import ResourcesMoveInfo - from .export_template_request_py3 import ExportTemplateRequest - from .tag_count_py3 import TagCount - from .tag_value_py3 import TagValue - from .tag_details_py3 import TagDetails - from .target_resource_py3 import TargetResource - from .http_message_py3 import HttpMessage - from .deployment_operation_properties_py3 import DeploymentOperationProperties - from .deployment_operation_py3 import DeploymentOperation - from .resource_provider_operation_display_properties_py3 import ResourceProviderOperationDisplayProperties - from .resource_py3 import Resource - from .sub_resource_py3 import SubResource - from .resource_group_export_result_py3 import ResourceGroupExportResult + from ._models_py3 import AliasPathType + from ._models_py3 import AliasType + from ._models_py3 import BasicDependency + from ._models_py3 import DebugSetting + from ._models_py3 import Dependency + from ._models_py3 import Deployment + from ._models_py3 import DeploymentExportResult + from ._models_py3 import DeploymentExtended + from ._models_py3 import DeploymentExtendedFilter + from ._models_py3 import DeploymentOperation + from ._models_py3 import DeploymentOperationProperties + from ._models_py3 import DeploymentProperties + from ._models_py3 import DeploymentPropertiesExtended + from ._models_py3 import DeploymentValidateResult + from ._models_py3 import ExportTemplateRequest + from ._models_py3 import GenericResource + from ._models_py3 import GenericResourceFilter + from ._models_py3 import HttpMessage + from ._models_py3 import Identity + from ._models_py3 import ParametersLink + from ._models_py3 import Plan + from ._models_py3 import Provider + from ._models_py3 import ProviderResourceType + from ._models_py3 import Resource + from ._models_py3 import ResourceGroup + from ._models_py3 import ResourceGroupExportResult + from ._models_py3 import ResourceGroupFilter + from ._models_py3 import ResourceGroupPatchable + from ._models_py3 import ResourceGroupProperties + from ._models_py3 import ResourceManagementErrorWithDetails + from ._models_py3 import ResourceProviderOperationDisplayProperties + from ._models_py3 import ResourcesMoveInfo + from ._models_py3 import Sku + from ._models_py3 import SubResource + from ._models_py3 import TagCount + from ._models_py3 import TagDetails + from ._models_py3 import TagValue + from ._models_py3 import TargetResource + from ._models_py3 import TemplateLink except (SyntaxError, ImportError): - from .deployment_extended_filter import DeploymentExtendedFilter - from .generic_resource_filter import GenericResourceFilter - from .resource_group_filter import ResourceGroupFilter - from .template_link import TemplateLink - from .parameters_link import ParametersLink - from .debug_setting import DebugSetting - from .deployment_properties import DeploymentProperties - from .deployment import Deployment - from .deployment_export_result import DeploymentExportResult - from .resource_management_error_with_details import ResourceManagementErrorWithDetails - from .alias_path_type import AliasPathType - from .alias_type import AliasType - from .provider_resource_type import ProviderResourceType - from .provider import Provider - from .basic_dependency import BasicDependency - from .dependency import Dependency - from .deployment_properties_extended import DeploymentPropertiesExtended - from .deployment_validate_result import DeploymentValidateResult - from .deployment_extended import DeploymentExtended - from .plan import Plan - from .sku import Sku - from .identity import Identity - from .generic_resource import GenericResource - from .resource_group_properties import ResourceGroupProperties - from .resource_group import ResourceGroup - from .resource_group_patchable import ResourceGroupPatchable - from .resources_move_info import ResourcesMoveInfo - from .export_template_request import ExportTemplateRequest - from .tag_count import TagCount - from .tag_value import TagValue - from .tag_details import TagDetails - from .target_resource import TargetResource - from .http_message import HttpMessage - from .deployment_operation_properties import DeploymentOperationProperties - from .deployment_operation import DeploymentOperation - from .resource_provider_operation_display_properties import ResourceProviderOperationDisplayProperties - from .resource import Resource - from .sub_resource import SubResource - from .resource_group_export_result import ResourceGroupExportResult -from .deployment_extended_paged import DeploymentExtendedPaged -from .provider_paged import ProviderPaged -from .generic_resource_paged import GenericResourcePaged -from .resource_group_paged import ResourceGroupPaged -from .tag_details_paged import TagDetailsPaged -from .deployment_operation_paged import DeploymentOperationPaged -from .resource_management_client_enums import ( + from ._models import AliasPathType + from ._models import AliasType + from ._models import BasicDependency + from ._models import DebugSetting + from ._models import Dependency + from ._models import Deployment + from ._models import DeploymentExportResult + from ._models import DeploymentExtended + from ._models import DeploymentExtendedFilter + from ._models import DeploymentOperation + from ._models import DeploymentOperationProperties + from ._models import DeploymentProperties + from ._models import DeploymentPropertiesExtended + from ._models import DeploymentValidateResult + from ._models import ExportTemplateRequest + from ._models import GenericResource + from ._models import GenericResourceFilter + from ._models import HttpMessage + from ._models import Identity + from ._models import ParametersLink + from ._models import Plan + from ._models import Provider + from ._models import ProviderResourceType + from ._models import Resource + from ._models import ResourceGroup + from ._models import ResourceGroupExportResult + from ._models import ResourceGroupFilter + from ._models import ResourceGroupPatchable + from ._models import ResourceGroupProperties + from ._models import ResourceManagementErrorWithDetails + from ._models import ResourceProviderOperationDisplayProperties + from ._models import ResourcesMoveInfo + from ._models import Sku + from ._models import SubResource + from ._models import TagCount + from ._models import TagDetails + from ._models import TagValue + from ._models import TargetResource + from ._models import TemplateLink +from ._paged_models import DeploymentExtendedPaged +from ._paged_models import DeploymentOperationPaged +from ._paged_models import GenericResourcePaged +from ._paged_models import ProviderPaged +from ._paged_models import ResourceGroupPaged +from ._paged_models import TagDetailsPaged +from ._resource_management_client_enums import ( DeploymentMode, ResourceIdentityType, ) __all__ = [ - 'DeploymentExtendedFilter', - 'GenericResourceFilter', - 'ResourceGroupFilter', - 'TemplateLink', - 'ParametersLink', - 'DebugSetting', - 'DeploymentProperties', - 'Deployment', - 'DeploymentExportResult', - 'ResourceManagementErrorWithDetails', 'AliasPathType', 'AliasType', - 'ProviderResourceType', - 'Provider', 'BasicDependency', + 'DebugSetting', 'Dependency', + 'Deployment', + 'DeploymentExportResult', + 'DeploymentExtended', + 'DeploymentExtendedFilter', + 'DeploymentOperation', + 'DeploymentOperationProperties', + 'DeploymentProperties', 'DeploymentPropertiesExtended', 'DeploymentValidateResult', - 'DeploymentExtended', - 'Plan', - 'Sku', - 'Identity', + 'ExportTemplateRequest', 'GenericResource', - 'ResourceGroupProperties', + 'GenericResourceFilter', + 'HttpMessage', + 'Identity', + 'ParametersLink', + 'Plan', + 'Provider', + 'ProviderResourceType', + 'Resource', 'ResourceGroup', + 'ResourceGroupExportResult', + 'ResourceGroupFilter', 'ResourceGroupPatchable', + 'ResourceGroupProperties', + 'ResourceManagementErrorWithDetails', + 'ResourceProviderOperationDisplayProperties', 'ResourcesMoveInfo', - 'ExportTemplateRequest', + 'Sku', + 'SubResource', 'TagCount', - 'TagValue', 'TagDetails', + 'TagValue', 'TargetResource', - 'HttpMessage', - 'DeploymentOperationProperties', - 'DeploymentOperation', - 'ResourceProviderOperationDisplayProperties', - 'Resource', - 'SubResource', - 'ResourceGroupExportResult', + 'TemplateLink', 'DeploymentExtendedPaged', 'ProviderPaged', 'GenericResourcePaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models.py new file mode 100644 index 000000000000..9057f97eb60c --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models.py @@ -0,0 +1,1244 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AliasPathType, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.api_versions = kwargs.get('api_versions', None) + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, **kwargs): + super(AliasType, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.paths = kwargs.get('paths', None) + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BasicDependency, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = kwargs.get('detail_level', None) + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2017_05_10.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dependency, self).__init__(**kwargs) + self.depends_on = kwargs.get('depends_on', None) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, **kwargs): + super(Deployment, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = kwargs.get('properties', None) + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2017_05_10.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, **kwargs): + super(DeploymentProperties, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2017_05_10.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2017_05_10.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, **kwargs): + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = kwargs.get('outputs', None) + self.providers = kwargs.get('providers', None) + self.dependencies = kwargs.get('dependencies', None) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.properties = kwargs.get('properties', None) + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.options = kwargs.get('options', None) + + +class Resource(Model): + """Basic set of the resource properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2017_05_10.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2017_05_10.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(GenericResource, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.properties = kwargs.get('properties', None) + self.kind = kwargs.get('kind', None) + self.managed_by = kwargs.get('managed_by', None) + self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.tagname = kwargs.get('tagname', None) + self.tagvalue = kwargs.get('tagvalue', None) + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(HttpMessage, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ParametersLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + self.version = kwargs.get('version', None) + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2017_05_10.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, **kwargs): + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = kwargs.get('namespace', None) + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.locations = kwargs.get('locations', None) + self.aliases = kwargs.get('aliases', None) + self.api_versions = kwargs.get('api_versions', None) + self.properties = kwargs.get('properties', None) + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.location = kwargs.get('location', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.error = kwargs.get('error', None) + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = kwargs.get('tag_name', None) + self.tag_value = kwargs.get('tag_value', None) + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs): + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: The operation name. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.target_resource_group = kwargs.get('target_resource_group', None) + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + self.model = kwargs.get('model', None) + self.capacity = kwargs.get('capacity', None) + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(TagCount, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.value = kwargs.get('value', None) + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2017_05_10.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, **kwargs): + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = kwargs.get('tag_name', None) + self.count = kwargs.get('count', None) + self.values = kwargs.get('values', None) + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, **kwargs): + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = kwargs.get('tag_value', None) + self.count = kwargs.get('count', None) + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_name = kwargs.get('resource_name', None) + self.resource_type = kwargs.get('resource_type', None) + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TemplateLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py new file mode 100644 index 000000000000..2c6840edcaf9 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_models_py3.py @@ -0,0 +1,1244 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: + super(AliasPathType, self).__init__(**kwargs) + self.path = path + self.api_versions = api_versions + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: + super(AliasType, self).__init__(**kwargs) + self.name = name + self.paths = paths + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(BasicDependency, self).__init__(**kwargs) + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, *, detail_level: str=None, **kwargs) -> None: + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = detail_level + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2017_05_10.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(Dependency, self).__init__(**kwargs) + self.depends_on = depends_on + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, *, properties, **kwargs) -> None: + super(Deployment, self).__init__(**kwargs) + self.properties = properties + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, *, template=None, **kwargs) -> None: + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = template + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, name: str, properties=None, **kwargs) -> None: + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = properties + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2017_05_10.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs) -> None: + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, **kwargs) -> None: + super(DeploymentProperties, self).__init__(**kwargs) + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2017_05_10.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2017_05_10.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + } + + def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, **kwargs) -> None: + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = outputs + self.providers = providers + self.dependencies = dependencies + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, error=None, properties=None, **kwargs) -> None: + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = error + self.properties = properties + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = resources + self.options = options + + +class Resource(Model): + """Basic set of the resource properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2017_05_10.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2017_05_10.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: + super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.properties = properties + self.kind = kind + self.managed_by = managed_by + self.sku = sku + self.identity = identity + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = resource_type + self.tagname = tagname + self.tagvalue = tagvalue + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, *, content=None, **kwargs) -> None: + super(HttpMessage, self).__init__(**kwargs) + self.content = content + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned' + :type type: str or + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(ParametersLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + self.version = version + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2017_05_10.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, *, namespace: str=None, **kwargs) -> None: + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = namespace + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = resource_type + self.locations = locations + self.aliases = aliases + self.api_versions = api_versions + self.properties = properties + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + self.location = location + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, *, template=None, error=None, **kwargs) -> None: + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = template + self.error = error + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = tag_name + self.tag_value = tag_value + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = name + self.properties = properties + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: The operation name. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = publisher + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = resources + self.target_resource_group = target_resource_group + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.size = size + self.family = family + self.model = model + self.capacity = capacity + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: + super(TagCount, self).__init__(**kwargs) + self.type = type + self.value = value + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2017_05_10.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = tag_name + self.count = count + self.values = values + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = tag_value + self.count = count + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: + super(TargetResource, self).__init__(**kwargs) + self.id = id + self.resource_name = resource_name + self.resource_type = resource_type + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(TemplateLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_paged_models.py new file mode 100644 index 000000000000..c5db548048c3 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_paged_models.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class DeploymentExtendedPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentExtended ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) +class ProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`Provider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Provider]'} + } + + def __init__(self, *args, **kwargs): + + super(ProviderPaged, self).__init__(*args, **kwargs) +class GenericResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`GenericResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GenericResource]'} + } + + def __init__(self, *args, **kwargs): + + super(GenericResourcePaged, self).__init__(*args, **kwargs) +class ResourceGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceGroupPaged, self).__init__(*args, **kwargs) +class TagDetailsPaged(Paged): + """ + A paging container for iterating over a list of :class:`TagDetails ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TagDetails]'} + } + + def __init__(self, *args, **kwargs): + + super(TagDetailsPaged, self).__init__(*args, **kwargs) +class DeploymentOperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentOperation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_resource_management_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/_resource_management_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_path_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_path_type.py deleted file mode 100644 index ee5959ef5463..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_path_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AliasPathType, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.api_versions = kwargs.get('api_versions', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_path_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_path_type_py3.py deleted file mode 100644 index ccd48141f917..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_path_type_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: - super(AliasPathType, self).__init__(**kwargs) - self.path = path - self.api_versions = api_versions diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_type.py deleted file mode 100644 index 8c64bece4665..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, **kwargs): - super(AliasType, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.paths = kwargs.get('paths', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_type_py3.py deleted file mode 100644 index dc3dd9aa4e66..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/alias_type_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: - super(AliasType, self).__init__(**kwargs) - self.name = name - self.paths = paths diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/basic_dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/basic_dependency.py deleted file mode 100644 index 3a5ccd4aa464..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/basic_dependency.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BasicDependency, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/basic_dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/basic_dependency_py3.py deleted file mode 100644 index 49d821737930..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/basic_dependency_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(BasicDependency, self).__init__(**kwargs) - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/debug_setting.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/debug_setting.py deleted file mode 100644 index d6f778c5c86d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/debug_setting.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = kwargs.get('detail_level', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/debug_setting_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/debug_setting_py3.py deleted file mode 100644 index af571a729762..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/debug_setting_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, *, detail_level: str=None, **kwargs) -> None: - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = detail_level diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/dependency.py deleted file mode 100644 index 460ffee98db4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/dependency.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2017_05_10.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Dependency, self).__init__(**kwargs) - self.depends_on = kwargs.get('depends_on', None) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/dependency_py3.py deleted file mode 100644 index 500123327225..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/dependency_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2017_05_10.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(Dependency, self).__init__(**kwargs) - self.depends_on = depends_on - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment.py deleted file mode 100644 index d780f5763e5c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, **kwargs): - super(Deployment, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_export_result.py deleted file mode 100644 index 807e79c8b678..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_export_result.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_export_result_py3.py deleted file mode 100644 index 63f10bf2735a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_export_result_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, *, template=None, **kwargs) -> None: - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = template diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended.py deleted file mode 100644 index df5ec2ed6e82..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_filter.py deleted file mode 100644 index 0839bcc12e4e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_filter.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_filter_py3.py deleted file mode 100644 index f06d0d1a4dfb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_filter_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = provisioning_state diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_paged.py deleted file mode 100644 index 747bfaa7b046..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentExtendedPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentExtended ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_py3.py deleted file mode 100644 index b54fd6fe83a3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_extended_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, name: str, properties=None, **kwargs) -> None: - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation.py deleted file mode 100644 index 009c44250eb6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_paged.py deleted file mode 100644 index 65530511cce3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentOperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentOperation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_properties.py deleted file mode 100644 index fe6aa9c383d3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_properties.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2017_05_10.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_properties_py3.py deleted file mode 100644 index ea0971a14ca5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_properties_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2017_05_10.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2017_05_10.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs) -> None: - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_py3.py deleted file mode 100644 index 2892a39fd8bb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_operation_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties.py deleted file mode 100644 index 5a98a89eb802..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, **kwargs): - super(DeploymentProperties, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_extended.py deleted file mode 100644 index da33803f8f92..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_extended.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2017_05_10.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2017_05_10.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, **kwargs): - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = kwargs.get('outputs', None) - self.providers = kwargs.get('providers', None) - self.dependencies = kwargs.get('dependencies', None) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_extended_py3.py deleted file mode 100644 index 1209ad4f26fa..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_extended_py3.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2017_05_10.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2017_05_10.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, **kwargs) -> None: - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = outputs - self.providers = providers - self.dependencies = dependencies - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_py3.py deleted file mode 100644 index 3a2cd11041fe..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_properties_py3.py +++ /dev/null @@ -1,76 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2017_05_10.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2017_05_10.models.DebugSetting - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - } - - def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, **kwargs) -> None: - super(DeploymentProperties, self).__init__(**kwargs) - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_py3.py deleted file mode 100644 index ecbaa65ed4db..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, *, properties, **kwargs) -> None: - super(Deployment, self).__init__(**kwargs) - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_validate_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_validate_result.py deleted file mode 100644 index bf511a46ba03..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_validate_result.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_validate_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_validate_result_py3.py deleted file mode 100644 index 18d06626d914..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/deployment_validate_result_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, error=None, properties=None, **kwargs) -> None: - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = error - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/export_template_request.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/export_template_request.py deleted file mode 100644 index 069bfbb70632..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/export_template_request.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.options = kwargs.get('options', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/export_template_request_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/export_template_request_py3.py deleted file mode 100644 index 2374c103d566..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/export_template_request_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = resources - self.options = options diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource.py deleted file mode 100644 index 260dfe07ad3d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2017_05_10.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2017_05_10.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, **kwargs): - super(GenericResource, self).__init__(**kwargs) - self.plan = kwargs.get('plan', None) - self.properties = kwargs.get('properties', None) - self.kind = kwargs.get('kind', None) - self.managed_by = kwargs.get('managed_by', None) - self.sku = kwargs.get('sku', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_filter.py deleted file mode 100644 index c4488f4cf095..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_filter.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.tagname = kwargs.get('tagname', None) - self.tagvalue = kwargs.get('tagvalue', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_filter_py3.py deleted file mode 100644 index 17ad0e58c55c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_filter_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = resource_type - self.tagname = tagname - self.tagvalue = tagvalue diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_paged.py deleted file mode 100644 index 61aaec69eb77..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class GenericResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`GenericResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[GenericResource]'} - } - - def __init__(self, *args, **kwargs): - - super(GenericResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_py3.py deleted file mode 100644 index e6805e1fa3ed..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/generic_resource_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2017_05_10.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2017_05_10.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2017_05_10.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: - super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) - self.plan = plan - self.properties = properties - self.kind = kind - self.managed_by = managed_by - self.sku = sku - self.identity = identity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/http_message.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/http_message.py deleted file mode 100644 index c4a11d3ebc30..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/http_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HTTP message. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(HttpMessage, self).__init__(**kwargs) - self.content = kwargs.get('content', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/http_message_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/http_message_py3.py deleted file mode 100644 index efe1b5abd2fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/http_message_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HTTP message. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, *, content=None, **kwargs) -> None: - super(HttpMessage, self).__init__(**kwargs) - self.content = content diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/identity.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/identity.py deleted file mode 100644 index f92e44520b53..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/identity.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/identity_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/identity_py3.py deleted file mode 100644 index 72e1d6185122..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/identity_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned' - :type type: str or - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/parameters_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/parameters_link.py deleted file mode 100644 index 0696248fc17c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/parameters_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ParametersLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/parameters_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/parameters_link_py3.py deleted file mode 100644 index 734546c362c4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/parameters_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(ParametersLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/plan.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/plan.py deleted file mode 100644 index 594d670d723c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/plan.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Plan, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.publisher = kwargs.get('publisher', None) - self.product = kwargs.get('product', None) - self.promotion_code = kwargs.get('promotion_code', None) - self.version = kwargs.get('version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/plan_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/plan_py3.py deleted file mode 100644 index 972976e1ba0f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/plan_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: - super(Plan, self).__init__(**kwargs) - self.name = name - self.publisher = publisher - self.product = product - self.promotion_code = promotion_code - self.version = version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider.py deleted file mode 100644 index 2336a5e5e686..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2017_05_10.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, **kwargs): - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = kwargs.get('namespace', None) - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_paged.py deleted file mode 100644 index 1a553a74b4d1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProviderPaged(Paged): - """ - A paging container for iterating over a list of :class:`Provider ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Provider]'} - } - - def __init__(self, *args, **kwargs): - - super(ProviderPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_py3.py deleted file mode 100644 index c7df7c28de14..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2017_05_10.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, *, namespace: str=None, **kwargs) -> None: - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = namespace - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_resource_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_resource_type.py deleted file mode 100644 index b2d2cc4f1c31..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_resource_type.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.locations = kwargs.get('locations', None) - self.aliases = kwargs.get('aliases', None) - self.api_versions = kwargs.get('api_versions', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_resource_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_resource_type_py3.py deleted file mode 100644 index 246655b4007d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/provider_resource_type_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2017_05_10.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = resource_type - self.locations = locations - self.aliases = aliases - self.api_versions = api_versions - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource.py deleted file mode 100644 index ecfd0cbb1b5c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Basic set of the resource properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group.py deleted file mode 100644 index 13bfa98e1630..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.location = kwargs.get('location', None) - self.managed_by = kwargs.get('managed_by', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_export_result.py deleted file mode 100644 index 527d7884511d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_export_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """Resource group export result. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.error = kwargs.get('error', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_export_result_py3.py deleted file mode 100644 index 3470fcf529b4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_export_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """Resource group export result. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, *, template=None, error=None, **kwargs) -> None: - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = template - self.error = error diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_filter.py deleted file mode 100644 index c94284bf3644..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_filter.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = kwargs.get('tag_name', None) - self.tag_value = kwargs.get('tag_value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_filter_py3.py deleted file mode 100644 index d709b6afd34f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_filter_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = tag_name - self.tag_value = tag_value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_paged.py deleted file mode 100644 index 66e1f4270e06..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ResourceGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourceGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourceGroupPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_patchable.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_patchable.py deleted file mode 100644 index 0f51ef0a5602..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_patchable.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupPatchable(Model): - """Resource group information. - - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupPatchable, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.managed_by = kwargs.get('managed_by', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_patchable_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_patchable_py3.py deleted file mode 100644 index f78ae3ff01ac..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_patchable_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupPatchable(Model): - """Resource group information. - - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: - super(ResourceGroupPatchable, self).__init__(**kwargs) - self.name = name - self.properties = properties - self.managed_by = managed_by - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_properties.py deleted file mode 100644 index 39411e3d79fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_properties.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_properties_py3.py deleted file mode 100644 index 67d6d06dedbd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_properties_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_py3.py deleted file mode 100644 index 1f034dec564d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_group_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties - self.location = location - self.managed_by = managed_by - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_error_with_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_error_with_details.py deleted file mode 100644 index 9b8e7bd74839..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_error_with_details.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """The detailed error message of resource management. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs): - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_error_with_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_error_with_details_py3.py deleted file mode 100644 index f6e0b337c987..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_management_error_with_details_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """The detailed error message of resource management. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2017_05_10.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_provider_operation_display_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_provider_operation_display_properties.py deleted file mode 100644 index 2a0106c3507e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_provider_operation_display_properties.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: The operation name. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = kwargs.get('publisher', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_provider_operation_display_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_provider_operation_display_properties_py3.py deleted file mode 100644 index b4e722881910..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_provider_operation_display_properties_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: The operation name. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = publisher - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_py3.py deleted file mode 100644 index b7da9118d4f5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Basic set of the resource properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resources_move_info.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resources_move_info.py deleted file mode 100644 index edf946d7076b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resources_move_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.target_resource_group = kwargs.get('target_resource_group', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resources_move_info_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resources_move_info_py3.py deleted file mode 100644 index d10e2558d499..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/resources_move_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = resources - self.target_resource_group = target_resource_group diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sku.py deleted file mode 100644 index bfcda32477df..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sku.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - self.size = kwargs.get('size', None) - self.family = kwargs.get('family', None) - self.model = kwargs.get('model', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sku_py3.py deleted file mode 100644 index 676f1d770b79..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sku_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.model = model - self.capacity = capacity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sub_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sub_resource.py deleted file mode 100644 index ca48705cc825..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sub_resource.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Sub-resource. - - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sub_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sub_resource_py3.py deleted file mode 100644 index b2d0251b79df..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/sub_resource_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Sub-resource. - - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_count.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_count.py deleted file mode 100644 index a5eeb6b38cf8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_count.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(TagCount, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.value = kwargs.get('value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_count_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_count_py3.py deleted file mode 100644 index 53c80f63fdb3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_count_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: - super(TagCount, self).__init__(**kwargs) - self.type = type - self.value = value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details.py deleted file mode 100644 index ebefcbf25918..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2017_05_10.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, **kwargs): - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = kwargs.get('tag_name', None) - self.count = kwargs.get('count', None) - self.values = kwargs.get('values', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details_paged.py deleted file mode 100644 index dc4761f38bc8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class TagDetailsPaged(Paged): - """ - A paging container for iterating over a list of :class:`TagDetails ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TagDetails]'} - } - - def __init__(self, *args, **kwargs): - - super(TagDetailsPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details_py3.py deleted file mode 100644 index 1ea814e91394..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_details_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2017_05_10.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = tag_name - self.count = count - self.values = values diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_value.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_value.py deleted file mode 100644 index f44c7d51af67..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_value.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, **kwargs): - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = kwargs.get('tag_value', None) - self.count = kwargs.get('count', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_value_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_value_py3.py deleted file mode 100644 index 54591bc152e4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/tag_value_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2017_05_10.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = tag_value - self.count = count diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/target_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/target_resource.py deleted file mode 100644 index 27d557645e8b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/target_resource.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_name = kwargs.get('resource_name', None) - self.resource_type = kwargs.get('resource_type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/target_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/target_resource_py3.py deleted file mode 100644 index 933347cec8f8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/target_resource_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: - super(TargetResource, self).__init__(**kwargs) - self.id = id - self.resource_name = resource_name - self.resource_type = resource_type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/template_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/template_link.py deleted file mode 100644 index 634095bb9754..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/template_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TemplateLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/template_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/template_link_py3.py deleted file mode 100644 index 00f2597ccd98..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/models/template_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(TemplateLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/__init__.py index 5aae03a99594..7ec2787ace60 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/__init__.py @@ -9,12 +9,12 @@ # regenerated. # -------------------------------------------------------------------------- -from .deployments_operations import DeploymentsOperations -from .providers_operations import ProvidersOperations -from .resources_operations import ResourcesOperations -from .resource_groups_operations import ResourceGroupsOperations -from .tags_operations import TagsOperations -from .deployment_operations import DeploymentOperations +from ._deployments_operations import DeploymentsOperations +from ._providers_operations import ProvidersOperations +from ._resources_operations import ResourcesOperations +from ._resource_groups_operations import ResourceGroupsOperations +from ._tags_operations import TagsOperations +from ._deployment_operations import DeploymentOperations __all__ = [ 'DeploymentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployment_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployment_operations.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployment_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployment_operations.py index f4617ee9b741..1dfa6e6cfbb9 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployment_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployment_operations.py @@ -19,6 +19,8 @@ class DeploymentOperations(object): """DeploymentOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -93,7 +95,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentOperation', response) @@ -126,8 +127,7 @@ def list( ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentOperation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -160,6 +160,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -170,12 +175,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployments_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployments_operations.py index a206c06726ac..d1642cbc0c20 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_deployments_operations.py @@ -21,6 +21,8 @@ class DeploymentsOperations(object): """DeploymentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -350,7 +352,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExtended', response) @@ -484,7 +485,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentValidateResult', response) if response.status_code == 400: @@ -551,7 +551,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExportResult', response) @@ -585,8 +584,7 @@ def list_by_resource_group( ~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2017_05_10.models.DeploymentExtended] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -620,6 +618,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -630,12 +633,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_providers_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/providers_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_providers_operations.py index 8786dcdfdfc2..58d615769a42 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_providers_operations.py @@ -19,6 +19,8 @@ class ProvidersOperations(object): """ProvidersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -86,7 +88,6 @@ def unregister( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -146,7 +147,6 @@ def register( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -179,8 +179,7 @@ def list( ~azure.mgmt.resource.resources.v2017_05_10.models.ProviderPaged[~azure.mgmt.resource.resources.v2017_05_10.models.Provider] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -213,6 +212,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -223,12 +227,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} @@ -287,7 +289,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py similarity index 96% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py index 3cfc16bf3fdf..e806259e832f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py @@ -21,6 +21,8 @@ class ResourceGroupsOperations(object): """ResourceGroupsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -150,7 +152,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) if response.status_code == 201: @@ -293,7 +294,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -366,7 +366,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -384,13 +383,13 @@ def export_template( :param resource_group_name: The name of the resource group to export as a template. :type resource_group_name: str - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support - exporting specific resources. + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: + 'IncludeParameterDefaultValue', 'IncludeComments', + 'SkipResourceNameParameterization', 'SkipAllParameterization' :type options: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -441,7 +440,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroupExportResult', response) @@ -471,8 +469,7 @@ def list( ~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroupPaged[~azure.mgmt.resource.resources.v2017_05_10.models.ResourceGroup] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -505,6 +502,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -515,12 +517,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resources_operations.py similarity index 99% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resources_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resources_operations.py index 53b75df9f3fb..b8fc219ee38e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resources_operations.py @@ -21,6 +21,8 @@ class ResourcesOperations(object): """ResourcesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -63,8 +65,7 @@ def list_by_resource_group( ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -100,6 +101,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -110,12 +116,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} @@ -332,8 +336,7 @@ def list( ~azure.mgmt.resource.resources.v2017_05_10.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2017_05_10.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -368,6 +371,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -378,12 +386,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} @@ -856,7 +862,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) @@ -1257,7 +1262,6 @@ def get_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_tags_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/tags_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_tags_operations.py index cd5d1c669360..8475bfee73d0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_tags_operations.py @@ -19,6 +19,8 @@ class TagsOperations(object): """TagsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -141,7 +143,6 @@ def create_or_update_value( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagValue', response) if response.status_code == 201: @@ -206,7 +207,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagDetails', response) if response.status_code == 201: @@ -287,8 +287,7 @@ def list( ~azure.mgmt.resource.resources.v2017_05_10.models.TagDetailsPaged[~azure.mgmt.resource.resources.v2017_05_10.models.TagDetails] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -317,6 +316,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -327,12 +331,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/__init__.py index d2e3198e88e6..68bc897193ac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .resource_management_client import ResourceManagementClient -from .version import VERSION +from ._configuration import ResourceManagementClientConfiguration +from ._resource_management_client import ResourceManagementClient +__all__ = ['ResourceManagementClient', 'ResourceManagementClientConfiguration'] -__all__ = ['ResourceManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_configuration.py new file mode 100644 index 000000000000..3b326f792363 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ResourceManagementClientConfiguration(AzureConfiguration): + """Configuration for ResourceManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ResourceManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/resource_management_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_resource_management_client.py similarity index 66% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/resource_management_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_resource_management_client.py index 1c34a9d14522..bcad877fc9c3 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/resource_management_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/_resource_management_client.py @@ -11,47 +11,15 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.deployments_operations import DeploymentsOperations -from .operations.providers_operations import ProvidersOperations -from .operations.resources_operations import ResourcesOperations -from .operations.resource_groups_operations import ResourceGroupsOperations -from .operations.tags_operations import TagsOperations -from .operations.deployment_operations import DeploymentOperations -from . import models - - -class ResourceManagementClientConfiguration(AzureConfiguration): - """Configuration for ResourceManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ResourceManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ResourceManagementClientConfiguration +from .operations import DeploymentsOperations +from .operations import ProvidersOperations +from .operations import ResourcesOperations +from .operations import ResourceGroupsOperations +from .operations import TagsOperations +from .operations import DeploymentOperations +from . import models class ResourceManagementClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/__init__.py index ae4447cedf0d..7cd2a777f072 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/__init__.py @@ -10,143 +10,143 @@ # -------------------------------------------------------------------------- try: - from .deployment_extended_filter_py3 import DeploymentExtendedFilter - from .generic_resource_filter_py3 import GenericResourceFilter - from .resource_group_filter_py3 import ResourceGroupFilter - from .template_link_py3 import TemplateLink - from .parameters_link_py3 import ParametersLink - from .debug_setting_py3 import DebugSetting - from .on_error_deployment_py3 import OnErrorDeployment - from .deployment_properties_py3 import DeploymentProperties - from .deployment_py3 import Deployment - from .deployment_export_result_py3 import DeploymentExportResult - from .resource_management_error_with_details_py3 import ResourceManagementErrorWithDetails - from .alias_path_type_py3 import AliasPathType - from .alias_type_py3 import AliasType - from .provider_resource_type_py3 import ProviderResourceType - from .provider_py3 import Provider - from .basic_dependency_py3 import BasicDependency - from .dependency_py3 import Dependency - from .on_error_deployment_extended_py3 import OnErrorDeploymentExtended - from .deployment_properties_extended_py3 import DeploymentPropertiesExtended - from .deployment_validate_result_py3 import DeploymentValidateResult - from .deployment_extended_py3 import DeploymentExtended - from .plan_py3 import Plan - from .sku_py3 import Sku - from .identity_py3 import Identity - from .generic_resource_py3 import GenericResource - from .resource_group_properties_py3 import ResourceGroupProperties - from .resource_group_py3 import ResourceGroup - from .resource_group_patchable_py3 import ResourceGroupPatchable - from .resources_move_info_py3 import ResourcesMoveInfo - from .export_template_request_py3 import ExportTemplateRequest - from .tag_count_py3 import TagCount - from .tag_value_py3 import TagValue - from .tag_details_py3 import TagDetails - from .target_resource_py3 import TargetResource - from .http_message_py3 import HttpMessage - from .deployment_operation_properties_py3 import DeploymentOperationProperties - from .deployment_operation_py3 import DeploymentOperation - from .resource_provider_operation_display_properties_py3 import ResourceProviderOperationDisplayProperties - from .resource_py3 import Resource - from .sub_resource_py3 import SubResource - from .resource_group_export_result_py3 import ResourceGroupExportResult + from ._models_py3 import AliasPathType + from ._models_py3 import AliasType + from ._models_py3 import BasicDependency + from ._models_py3 import DebugSetting + from ._models_py3 import Dependency + from ._models_py3 import Deployment + from ._models_py3 import DeploymentExportResult + from ._models_py3 import DeploymentExtended + from ._models_py3 import DeploymentExtendedFilter + from ._models_py3 import DeploymentOperation + from ._models_py3 import DeploymentOperationProperties + from ._models_py3 import DeploymentProperties + from ._models_py3 import DeploymentPropertiesExtended + from ._models_py3 import DeploymentValidateResult + from ._models_py3 import ExportTemplateRequest + from ._models_py3 import GenericResource + from ._models_py3 import GenericResourceFilter + from ._models_py3 import HttpMessage + from ._models_py3 import Identity + from ._models_py3 import OnErrorDeployment + from ._models_py3 import OnErrorDeploymentExtended + from ._models_py3 import ParametersLink + from ._models_py3 import Plan + from ._models_py3 import Provider + from ._models_py3 import ProviderResourceType + from ._models_py3 import Resource + from ._models_py3 import ResourceGroup + from ._models_py3 import ResourceGroupExportResult + from ._models_py3 import ResourceGroupFilter + from ._models_py3 import ResourceGroupPatchable + from ._models_py3 import ResourceGroupProperties + from ._models_py3 import ResourceManagementErrorWithDetails + from ._models_py3 import ResourceProviderOperationDisplayProperties + from ._models_py3 import ResourcesMoveInfo + from ._models_py3 import Sku + from ._models_py3 import SubResource + from ._models_py3 import TagCount + from ._models_py3 import TagDetails + from ._models_py3 import TagValue + from ._models_py3 import TargetResource + from ._models_py3 import TemplateLink except (SyntaxError, ImportError): - from .deployment_extended_filter import DeploymentExtendedFilter - from .generic_resource_filter import GenericResourceFilter - from .resource_group_filter import ResourceGroupFilter - from .template_link import TemplateLink - from .parameters_link import ParametersLink - from .debug_setting import DebugSetting - from .on_error_deployment import OnErrorDeployment - from .deployment_properties import DeploymentProperties - from .deployment import Deployment - from .deployment_export_result import DeploymentExportResult - from .resource_management_error_with_details import ResourceManagementErrorWithDetails - from .alias_path_type import AliasPathType - from .alias_type import AliasType - from .provider_resource_type import ProviderResourceType - from .provider import Provider - from .basic_dependency import BasicDependency - from .dependency import Dependency - from .on_error_deployment_extended import OnErrorDeploymentExtended - from .deployment_properties_extended import DeploymentPropertiesExtended - from .deployment_validate_result import DeploymentValidateResult - from .deployment_extended import DeploymentExtended - from .plan import Plan - from .sku import Sku - from .identity import Identity - from .generic_resource import GenericResource - from .resource_group_properties import ResourceGroupProperties - from .resource_group import ResourceGroup - from .resource_group_patchable import ResourceGroupPatchable - from .resources_move_info import ResourcesMoveInfo - from .export_template_request import ExportTemplateRequest - from .tag_count import TagCount - from .tag_value import TagValue - from .tag_details import TagDetails - from .target_resource import TargetResource - from .http_message import HttpMessage - from .deployment_operation_properties import DeploymentOperationProperties - from .deployment_operation import DeploymentOperation - from .resource_provider_operation_display_properties import ResourceProviderOperationDisplayProperties - from .resource import Resource - from .sub_resource import SubResource - from .resource_group_export_result import ResourceGroupExportResult -from .deployment_extended_paged import DeploymentExtendedPaged -from .provider_paged import ProviderPaged -from .generic_resource_paged import GenericResourcePaged -from .resource_group_paged import ResourceGroupPaged -from .tag_details_paged import TagDetailsPaged -from .deployment_operation_paged import DeploymentOperationPaged -from .resource_management_client_enums import ( + from ._models import AliasPathType + from ._models import AliasType + from ._models import BasicDependency + from ._models import DebugSetting + from ._models import Dependency + from ._models import Deployment + from ._models import DeploymentExportResult + from ._models import DeploymentExtended + from ._models import DeploymentExtendedFilter + from ._models import DeploymentOperation + from ._models import DeploymentOperationProperties + from ._models import DeploymentProperties + from ._models import DeploymentPropertiesExtended + from ._models import DeploymentValidateResult + from ._models import ExportTemplateRequest + from ._models import GenericResource + from ._models import GenericResourceFilter + from ._models import HttpMessage + from ._models import Identity + from ._models import OnErrorDeployment + from ._models import OnErrorDeploymentExtended + from ._models import ParametersLink + from ._models import Plan + from ._models import Provider + from ._models import ProviderResourceType + from ._models import Resource + from ._models import ResourceGroup + from ._models import ResourceGroupExportResult + from ._models import ResourceGroupFilter + from ._models import ResourceGroupPatchable + from ._models import ResourceGroupProperties + from ._models import ResourceManagementErrorWithDetails + from ._models import ResourceProviderOperationDisplayProperties + from ._models import ResourcesMoveInfo + from ._models import Sku + from ._models import SubResource + from ._models import TagCount + from ._models import TagDetails + from ._models import TagValue + from ._models import TargetResource + from ._models import TemplateLink +from ._paged_models import DeploymentExtendedPaged +from ._paged_models import DeploymentOperationPaged +from ._paged_models import GenericResourcePaged +from ._paged_models import ProviderPaged +from ._paged_models import ResourceGroupPaged +from ._paged_models import TagDetailsPaged +from ._resource_management_client_enums import ( DeploymentMode, OnErrorDeploymentType, ResourceIdentityType, ) __all__ = [ - 'DeploymentExtendedFilter', - 'GenericResourceFilter', - 'ResourceGroupFilter', - 'TemplateLink', - 'ParametersLink', - 'DebugSetting', - 'OnErrorDeployment', - 'DeploymentProperties', - 'Deployment', - 'DeploymentExportResult', - 'ResourceManagementErrorWithDetails', 'AliasPathType', 'AliasType', - 'ProviderResourceType', - 'Provider', 'BasicDependency', + 'DebugSetting', 'Dependency', - 'OnErrorDeploymentExtended', + 'Deployment', + 'DeploymentExportResult', + 'DeploymentExtended', + 'DeploymentExtendedFilter', + 'DeploymentOperation', + 'DeploymentOperationProperties', + 'DeploymentProperties', 'DeploymentPropertiesExtended', 'DeploymentValidateResult', - 'DeploymentExtended', - 'Plan', - 'Sku', - 'Identity', + 'ExportTemplateRequest', 'GenericResource', - 'ResourceGroupProperties', + 'GenericResourceFilter', + 'HttpMessage', + 'Identity', + 'OnErrorDeployment', + 'OnErrorDeploymentExtended', + 'ParametersLink', + 'Plan', + 'Provider', + 'ProviderResourceType', + 'Resource', 'ResourceGroup', + 'ResourceGroupExportResult', + 'ResourceGroupFilter', 'ResourceGroupPatchable', + 'ResourceGroupProperties', + 'ResourceManagementErrorWithDetails', + 'ResourceProviderOperationDisplayProperties', 'ResourcesMoveInfo', - 'ExportTemplateRequest', + 'Sku', + 'SubResource', 'TagCount', - 'TagValue', 'TagDetails', + 'TagValue', 'TargetResource', - 'HttpMessage', - 'DeploymentOperationProperties', - 'DeploymentOperation', - 'ResourceProviderOperationDisplayProperties', - 'Resource', - 'SubResource', - 'ResourceGroupExportResult', + 'TemplateLink', 'DeploymentExtendedPaged', 'ProviderPaged', 'GenericResourcePaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models.py new file mode 100644 index 000000000000..3dc4e72999f7 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models.py @@ -0,0 +1,1313 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AliasPathType, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.api_versions = kwargs.get('api_versions', None) + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, **kwargs): + super(AliasType, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.paths = kwargs.get('paths', None) + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BasicDependency, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = kwargs.get('detail_level', None) + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2018_02_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dependency, self).__init__(**kwargs) + self.depends_on = kwargs.get('depends_on', None) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, **kwargs): + super(Deployment, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = kwargs.get('properties', None) + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2018_02_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeployment + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, + } + + def __init__(self, **kwargs): + super(DeploymentProperties, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + self.on_error_deployment = kwargs.get('on_error_deployment', None) + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2018_02_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2018_02_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentExtended + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = kwargs.get('outputs', None) + self.providers = kwargs.get('providers', None) + self.dependencies = kwargs.get('dependencies', None) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + self.on_error_deployment = kwargs.get('on_error_deployment', None) + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.properties = kwargs.get('properties', None) + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.options = kwargs.get('options', None) + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2018_02_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2018_02_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(GenericResource, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.properties = kwargs.get('properties', None) + self.kind = kwargs.get('kind', None) + self.managed_by = kwargs.get('managed_by', None) + self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.tagname = kwargs.get('tagname', None) + self.tagvalue = kwargs.get('tagvalue', None) + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(HttpMessage, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + + +class OnErrorDeployment(Model): + """Deployment on error behavior. + + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OnErrorDeployment, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.deployment_name = kwargs.get('deployment_name', None) + + +class OnErrorDeploymentExtended(Model): + """Deployment on error behavior with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning for the on error + deployment. + :vartype provisioning_state: str + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OnErrorDeploymentExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.type = kwargs.get('type', None) + self.deployment_name = kwargs.get('deployment_name', None) + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ParametersLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + self.version = kwargs.get('version', None) + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2018_02_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, **kwargs): + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = kwargs.get('namespace', None) + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.locations = kwargs.get('locations', None) + self.aliases = kwargs.get('aliases', None) + self.api_versions = kwargs.get('api_versions', None) + self.properties = kwargs.get('properties', None) + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.location = kwargs.get('location', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.error = kwargs.get('error', None) + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = kwargs.get('tag_name', None) + self.tag_value = kwargs.get('tag_value', None) + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs): + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.target_resource_group = kwargs.get('target_resource_group', None) + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + self.model = kwargs.get('model', None) + self.capacity = kwargs.get('capacity', None) + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(TagCount, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.value = kwargs.get('value', None) + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2018_02_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, **kwargs): + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = kwargs.get('tag_name', None) + self.count = kwargs.get('count', None) + self.values = kwargs.get('values', None) + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, **kwargs): + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = kwargs.get('tag_value', None) + self.count = kwargs.get('count', None) + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_name = kwargs.get('resource_name', None) + self.resource_type = kwargs.get('resource_type', None) + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TemplateLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models_py3.py new file mode 100644 index 000000000000..db2fbfda5887 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_models_py3.py @@ -0,0 +1,1313 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: + super(AliasPathType, self).__init__(**kwargs) + self.path = path + self.api_versions = api_versions + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: + super(AliasType, self).__init__(**kwargs) + self.name = name + self.paths = paths + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(BasicDependency, self).__init__(**kwargs) + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, *, detail_level: str=None, **kwargs) -> None: + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = detail_level + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2018_02_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(Dependency, self).__init__(**kwargs) + self.depends_on = depends_on + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, *, properties, **kwargs) -> None: + super(Deployment, self).__init__(**kwargs) + self.properties = properties + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, *, template=None, **kwargs) -> None: + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = template + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the deployment. + :vartype id: str + :param name: Required. The name of the deployment. + :type name: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, name: str, properties=None, **kwargs) -> None: + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = properties + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2018_02_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs) -> None: + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeployment + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, + } + + def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: + super(DeploymentProperties, self).__init__(**kwargs) + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + self.on_error_deployment = on_error_deployment + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2018_02_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2018_02_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentExtended + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, + } + + def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = outputs + self.providers = providers + self.dependencies = dependencies + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + self.on_error_deployment = on_error_deployment + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, error=None, properties=None, **kwargs) -> None: + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = error + self.properties = properties + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = resources + self.options = options + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2018_02_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2018_02_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: + super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.properties = properties + self.kind = kind + self.managed_by = managed_by + self.sku = sku + self.identity = identity + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = resource_type + self.tagname = tagname + self.tagvalue = tagvalue + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, *, content=None, **kwargs) -> None: + super(HttpMessage, self).__init__(**kwargs) + self.content = content + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceIdentityType + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + + +class OnErrorDeployment(Model): + """Deployment on error behavior. + + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: + super(OnErrorDeployment, self).__init__(**kwargs) + self.type = type + self.deployment_name = deployment_name + + +class OnErrorDeploymentExtended(Model): + """Deployment on error behavior with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning for the on error + deployment. + :vartype provisioning_state: str + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: + super(OnErrorDeploymentExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.type = type + self.deployment_name = deployment_name + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(ParametersLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + self.version = version + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2018_02_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, *, namespace: str=None, **kwargs) -> None: + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = namespace + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = resource_type + self.locations = locations + self.aliases = aliases + self.api_versions = api_versions + self.properties = properties + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = name + self.properties = properties + self.location = location + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, *, template=None, error=None, **kwargs) -> None: + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = template + self.error = error + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = tag_name + self.tag_value = tag_value + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = name + self.properties = properties + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = publisher + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = resources + self.target_resource_group = target_resource_group + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.size = size + self.family = family + self.model = model + self.capacity = capacity + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: + super(TagCount, self).__init__(**kwargs) + self.type = type + self.value = value + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2018_02_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = tag_name + self.count = count + self.values = values + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = tag_value + self.count = count + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: + super(TargetResource, self).__init__(**kwargs) + self.id = id + self.resource_name = resource_name + self.resource_type = resource_type + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(TemplateLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_paged_models.py new file mode 100644 index 000000000000..48e171f17ffe --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_paged_models.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class DeploymentExtendedPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentExtended ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) +class ProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`Provider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Provider]'} + } + + def __init__(self, *args, **kwargs): + + super(ProviderPaged, self).__init__(*args, **kwargs) +class GenericResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`GenericResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GenericResource]'} + } + + def __init__(self, *args, **kwargs): + + super(GenericResourcePaged, self).__init__(*args, **kwargs) +class ResourceGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceGroupPaged, self).__init__(*args, **kwargs) +class TagDetailsPaged(Paged): + """ + A paging container for iterating over a list of :class:`TagDetails ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TagDetails]'} + } + + def __init__(self, *args, **kwargs): + + super(TagDetailsPaged, self).__init__(*args, **kwargs) +class DeploymentOperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentOperation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_resource_management_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/_resource_management_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_path_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_path_type.py deleted file mode 100644 index ee5959ef5463..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_path_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AliasPathType, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.api_versions = kwargs.get('api_versions', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_path_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_path_type_py3.py deleted file mode 100644 index ccd48141f917..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_path_type_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: - super(AliasPathType, self).__init__(**kwargs) - self.path = path - self.api_versions = api_versions diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_type.py deleted file mode 100644 index 431b2a903825..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, **kwargs): - super(AliasType, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.paths = kwargs.get('paths', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_type_py3.py deleted file mode 100644 index bfc87d90df3b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/alias_type_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: - super(AliasType, self).__init__(**kwargs) - self.name = name - self.paths = paths diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/basic_dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/basic_dependency.py deleted file mode 100644 index 3a5ccd4aa464..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/basic_dependency.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BasicDependency, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/basic_dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/basic_dependency_py3.py deleted file mode 100644 index 49d821737930..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/basic_dependency_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(BasicDependency, self).__init__(**kwargs) - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/debug_setting.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/debug_setting.py deleted file mode 100644 index d6f778c5c86d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/debug_setting.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = kwargs.get('detail_level', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/debug_setting_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/debug_setting_py3.py deleted file mode 100644 index af571a729762..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/debug_setting_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, *, detail_level: str=None, **kwargs) -> None: - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = detail_level diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/dependency.py deleted file mode 100644 index 759549b0df7f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/dependency.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2018_02_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Dependency, self).__init__(**kwargs) - self.depends_on = kwargs.get('depends_on', None) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/dependency_py3.py deleted file mode 100644 index c45f51e11c5d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/dependency_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2018_02_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(Dependency, self).__init__(**kwargs) - self.depends_on = depends_on - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment.py deleted file mode 100644 index 8d7e061526ea..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, **kwargs): - super(Deployment, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_export_result.py deleted file mode 100644 index 807e79c8b678..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_export_result.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_export_result_py3.py deleted file mode 100644 index 63f10bf2735a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_export_result_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, *, template=None, **kwargs) -> None: - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = template diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended.py deleted file mode 100644 index 95ec87a87549..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_filter.py deleted file mode 100644 index 0839bcc12e4e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_filter.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_filter_py3.py deleted file mode 100644 index f06d0d1a4dfb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_filter_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = provisioning_state diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_paged.py deleted file mode 100644 index 61a16fb15dff..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentExtendedPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentExtended ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_py3.py deleted file mode 100644 index 0f0afa51c488..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_extended_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the deployment. - :vartype id: str - :param name: Required. The name of the deployment. - :type name: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, name: str, properties=None, **kwargs) -> None: - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation.py deleted file mode 100644 index dd24347ab3fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_paged.py deleted file mode 100644 index 443462fdfe33..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentOperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentOperation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_properties.py deleted file mode 100644 index 7f6b05659885..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_properties.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2018_02_01.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_properties_py3.py deleted file mode 100644 index 4b53e8b814e4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_properties_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2018_02_01.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2018_02_01.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs) -> None: - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_py3.py deleted file mode 100644 index 0e8e9069c2a1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_operation_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties.py deleted file mode 100644 index 1f6039eabf17..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeployment - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, - } - - def __init__(self, **kwargs): - super(DeploymentProperties, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) - self.on_error_deployment = kwargs.get('on_error_deployment', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_extended.py deleted file mode 100644 index 0e5ffa0ec439..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_extended.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2018_02_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2018_02_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentExtended - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = kwargs.get('outputs', None) - self.providers = kwargs.get('providers', None) - self.dependencies = kwargs.get('dependencies', None) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) - self.on_error_deployment = kwargs.get('on_error_deployment', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_extended_py3.py deleted file mode 100644 index aede2450595c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_extended_py3.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2018_02_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2018_02_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentExtended - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, - } - - def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = outputs - self.providers = providers - self.dependencies = dependencies - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting - self.on_error_deployment = on_error_deployment diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_py3.py deleted file mode 100644 index 2c8dbd42510e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_properties_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_02_01.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_02_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeployment - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, - } - - def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: - super(DeploymentProperties, self).__init__(**kwargs) - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting - self.on_error_deployment = on_error_deployment diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_py3.py deleted file mode 100644 index cd6c93634a2a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, *, properties, **kwargs) -> None: - super(Deployment, self).__init__(**kwargs) - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_validate_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_validate_result.py deleted file mode 100644 index 147e64dc574d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_validate_result.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_validate_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_validate_result_py3.py deleted file mode 100644 index 1234097c2b1b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/deployment_validate_result_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, error=None, properties=None, **kwargs) -> None: - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = error - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/export_template_request.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/export_template_request.py deleted file mode 100644 index 069bfbb70632..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/export_template_request.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.options = kwargs.get('options', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/export_template_request_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/export_template_request_py3.py deleted file mode 100644 index 2374c103d566..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/export_template_request_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = resources - self.options = options diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource.py deleted file mode 100644 index 2a9b41e80569..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2018_02_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2018_02_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, **kwargs): - super(GenericResource, self).__init__(**kwargs) - self.plan = kwargs.get('plan', None) - self.properties = kwargs.get('properties', None) - self.kind = kwargs.get('kind', None) - self.managed_by = kwargs.get('managed_by', None) - self.sku = kwargs.get('sku', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_filter.py deleted file mode 100644 index c4488f4cf095..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_filter.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.tagname = kwargs.get('tagname', None) - self.tagvalue = kwargs.get('tagvalue', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_filter_py3.py deleted file mode 100644 index 17ad0e58c55c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_filter_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = resource_type - self.tagname = tagname - self.tagvalue = tagvalue diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_paged.py deleted file mode 100644 index 9a79d84888f6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class GenericResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`GenericResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[GenericResource]'} - } - - def __init__(self, *args, **kwargs): - - super(GenericResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_py3.py deleted file mode 100644 index 384c9b4187e4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/generic_resource_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2018_02_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2018_02_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2018_02_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: - super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) - self.plan = plan - self.properties = properties - self.kind = kind - self.managed_by = managed_by - self.sku = sku - self.identity = identity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/http_message.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/http_message.py deleted file mode 100644 index c4a11d3ebc30..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/http_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HTTP message. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(HttpMessage, self).__init__(**kwargs) - self.content = kwargs.get('content', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/http_message_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/http_message_py3.py deleted file mode 100644 index efe1b5abd2fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/http_message_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HTTP message. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, *, content=None, **kwargs) -> None: - super(HttpMessage, self).__init__(**kwargs) - self.content = content diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/identity.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/identity.py deleted file mode 100644 index 461cc8574f08..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/identity.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned', - 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' - :type type: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/identity_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/identity_py3.py deleted file mode 100644 index 8222ca6ed4d5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/identity_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned', - 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' - :type type: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceIdentityType - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - } - - def __init__(self, *, type=None, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment.py deleted file mode 100644 index 21c57d788eb8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeployment(Model): - """Deployment on error behavior. - - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OnErrorDeployment, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.deployment_name = kwargs.get('deployment_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_extended.py deleted file mode 100644 index e1a320448b65..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_extended.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeploymentExtended(Model): - """Deployment on error behavior with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning for the on error - deployment. - :vartype provisioning_state: str - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OnErrorDeploymentExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.type = kwargs.get('type', None) - self.deployment_name = kwargs.get('deployment_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_extended_py3.py deleted file mode 100644 index 886cf00786bf..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_extended_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeploymentExtended(Model): - """Deployment on error behavior with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning for the on error - deployment. - :vartype provisioning_state: str - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: - super(OnErrorDeploymentExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.type = type - self.deployment_name = deployment_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_py3.py deleted file mode 100644 index 05245bb8f480..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/on_error_deployment_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeployment(Model): - """Deployment on error behavior. - - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_02_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: - super(OnErrorDeployment, self).__init__(**kwargs) - self.type = type - self.deployment_name = deployment_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/parameters_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/parameters_link.py deleted file mode 100644 index 0696248fc17c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/parameters_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ParametersLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/parameters_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/parameters_link_py3.py deleted file mode 100644 index 734546c362c4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/parameters_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(ParametersLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/plan.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/plan.py deleted file mode 100644 index 594d670d723c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/plan.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Plan, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.publisher = kwargs.get('publisher', None) - self.product = kwargs.get('product', None) - self.promotion_code = kwargs.get('promotion_code', None) - self.version = kwargs.get('version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/plan_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/plan_py3.py deleted file mode 100644 index 972976e1ba0f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/plan_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: - super(Plan, self).__init__(**kwargs) - self.name = name - self.publisher = publisher - self.product = product - self.promotion_code = promotion_code - self.version = version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider.py deleted file mode 100644 index 0490a5aa870a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2018_02_01.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, **kwargs): - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = kwargs.get('namespace', None) - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_paged.py deleted file mode 100644 index 7a6abf6f944b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProviderPaged(Paged): - """ - A paging container for iterating over a list of :class:`Provider ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Provider]'} - } - - def __init__(self, *args, **kwargs): - - super(ProviderPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_py3.py deleted file mode 100644 index 2dc5e8957b90..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2018_02_01.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, *, namespace: str=None, **kwargs) -> None: - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = namespace - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_resource_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_resource_type.py deleted file mode 100644 index dc26d8e7dce0..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_resource_type.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.locations = kwargs.get('locations', None) - self.aliases = kwargs.get('aliases', None) - self.api_versions = kwargs.get('api_versions', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_resource_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_resource_type_py3.py deleted file mode 100644 index 57a413154af0..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/provider_resource_type_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2018_02_01.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = resource_type - self.locations = locations - self.aliases = aliases - self.api_versions = api_versions - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource.py deleted file mode 100644 index ee7662aeee52..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group.py deleted file mode 100644 index fedbd4989401..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.location = kwargs.get('location', None) - self.managed_by = kwargs.get('managed_by', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_export_result.py deleted file mode 100644 index af7d5c621b82..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_export_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """Resource group export result. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.error = kwargs.get('error', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_export_result_py3.py deleted file mode 100644 index 41d26fb1c38b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_export_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """Resource group export result. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, *, template=None, error=None, **kwargs) -> None: - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = template - self.error = error diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_filter.py deleted file mode 100644 index c94284bf3644..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_filter.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = kwargs.get('tag_name', None) - self.tag_value = kwargs.get('tag_value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_filter_py3.py deleted file mode 100644 index d709b6afd34f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_filter_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = tag_name - self.tag_value = tag_value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_paged.py deleted file mode 100644 index e3f4bf44e308..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ResourceGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourceGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourceGroupPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_patchable.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_patchable.py deleted file mode 100644 index 809c091f2b3a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_patchable.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupPatchable(Model): - """Resource group information. - - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupPatchable, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.managed_by = kwargs.get('managed_by', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_patchable_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_patchable_py3.py deleted file mode 100644 index a50917b91f63..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_patchable_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupPatchable(Model): - """Resource group information. - - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: - super(ResourceGroupPatchable, self).__init__(**kwargs) - self.name = name - self.properties = properties - self.managed_by = managed_by - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_properties.py deleted file mode 100644 index 39411e3d79fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_properties.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_properties_py3.py deleted file mode 100644 index 67d6d06dedbd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_properties_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_py3.py deleted file mode 100644 index 00c729ab3ec2..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_group_py3.py +++ /dev/null @@ -1,62 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = name - self.properties = properties - self.location = location - self.managed_by = managed_by - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_error_with_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_error_with_details.py deleted file mode 100644 index 20f1f1bd2133..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_error_with_details.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """The detailed error message of resource management. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs): - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_error_with_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_error_with_details_py3.py deleted file mode 100644 index e6d720973c47..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_management_error_with_details_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """The detailed error message of resource management. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2018_02_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_provider_operation_display_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_provider_operation_display_properties.py deleted file mode 100644 index ac328b64bb1a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_provider_operation_display_properties.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = kwargs.get('publisher', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_provider_operation_display_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_provider_operation_display_properties_py3.py deleted file mode 100644 index aecc5a412673..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_provider_operation_display_properties_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = publisher - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_py3.py deleted file mode 100644 index 3c8102ab5262..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resources_move_info.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resources_move_info.py deleted file mode 100644 index edf946d7076b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resources_move_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.target_resource_group = kwargs.get('target_resource_group', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resources_move_info_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resources_move_info_py3.py deleted file mode 100644 index d10e2558d499..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/resources_move_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = resources - self.target_resource_group = target_resource_group diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sku.py deleted file mode 100644 index bfcda32477df..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sku.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - self.size = kwargs.get('size', None) - self.family = kwargs.get('family', None) - self.model = kwargs.get('model', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sku_py3.py deleted file mode 100644 index 676f1d770b79..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sku_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.model = model - self.capacity = capacity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sub_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sub_resource.py deleted file mode 100644 index ca48705cc825..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sub_resource.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Sub-resource. - - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sub_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sub_resource_py3.py deleted file mode 100644 index b2d0251b79df..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/sub_resource_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Sub-resource. - - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_count.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_count.py deleted file mode 100644 index a5eeb6b38cf8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_count.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(TagCount, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.value = kwargs.get('value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_count_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_count_py3.py deleted file mode 100644 index 53c80f63fdb3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_count_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: - super(TagCount, self).__init__(**kwargs) - self.type = type - self.value = value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details.py deleted file mode 100644 index 12a3a0462283..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2018_02_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, **kwargs): - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = kwargs.get('tag_name', None) - self.count = kwargs.get('count', None) - self.values = kwargs.get('values', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details_paged.py deleted file mode 100644 index c8e6889a8ce9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class TagDetailsPaged(Paged): - """ - A paging container for iterating over a list of :class:`TagDetails ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TagDetails]'} - } - - def __init__(self, *args, **kwargs): - - super(TagDetailsPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details_py3.py deleted file mode 100644 index 4aa07d3c160f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_details_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2018_02_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = tag_name - self.count = count - self.values = values diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value.py deleted file mode 100644 index 07f9f42a29fe..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, **kwargs): - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = kwargs.get('tag_value', None) - self.count = kwargs.get('count', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value_py3.py deleted file mode 100644 index acd5ab7e04ad..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/tag_value_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2018_02_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = tag_value - self.count = count diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/target_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/target_resource.py deleted file mode 100644 index 27d557645e8b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/target_resource.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_name = kwargs.get('resource_name', None) - self.resource_type = kwargs.get('resource_type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/target_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/target_resource_py3.py deleted file mode 100644 index 933347cec8f8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/target_resource_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: - super(TargetResource, self).__init__(**kwargs) - self.id = id - self.resource_name = resource_name - self.resource_type = resource_type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/template_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/template_link.py deleted file mode 100644 index 634095bb9754..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/template_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TemplateLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/template_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/template_link_py3.py deleted file mode 100644 index 00f2597ccd98..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/models/template_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(TemplateLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/__init__.py index 5aae03a99594..7ec2787ace60 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/__init__.py @@ -9,12 +9,12 @@ # regenerated. # -------------------------------------------------------------------------- -from .deployments_operations import DeploymentsOperations -from .providers_operations import ProvidersOperations -from .resources_operations import ResourcesOperations -from .resource_groups_operations import ResourceGroupsOperations -from .tags_operations import TagsOperations -from .deployment_operations import DeploymentOperations +from ._deployments_operations import DeploymentsOperations +from ._providers_operations import ProvidersOperations +from ._resources_operations import ResourcesOperations +from ._resource_groups_operations import ResourceGroupsOperations +from ._tags_operations import TagsOperations +from ._deployment_operations import DeploymentOperations __all__ = [ 'DeploymentsOperations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/deployment_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployment_operations.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/deployment_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployment_operations.py index 6a821b729e02..5594cf38c0de 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/deployment_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployment_operations.py @@ -19,6 +19,8 @@ class DeploymentOperations(object): """DeploymentOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -93,7 +95,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentOperation', response) @@ -126,8 +127,7 @@ def list( ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentOperation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -160,6 +160,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -170,12 +175,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployments_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/deployments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployments_operations.py index 6f437b5aa9d1..303364d5a01d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_deployments_operations.py @@ -21,6 +21,8 @@ class DeploymentsOperations(object): """DeploymentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -350,7 +352,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExtended', response) @@ -484,7 +485,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentValidateResult', response) if response.status_code == 400: @@ -551,7 +551,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExportResult', response) @@ -585,8 +584,7 @@ def list_by_resource_group( ~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2018_02_01.models.DeploymentExtended] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -620,6 +618,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -630,12 +633,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_providers_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/providers_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_providers_operations.py index 2d76692c9ef2..5c8aaad439f5 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_providers_operations.py @@ -19,6 +19,8 @@ class ProvidersOperations(object): """ProvidersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -86,7 +88,6 @@ def unregister( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -146,7 +147,6 @@ def register( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -179,8 +179,7 @@ def list( ~azure.mgmt.resource.resources.v2018_02_01.models.ProviderPaged[~azure.mgmt.resource.resources.v2018_02_01.models.Provider] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -213,6 +212,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -223,12 +227,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} @@ -287,7 +289,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resource_groups_operations.py similarity index 96% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/resource_groups_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resource_groups_operations.py index bf5191bfa85b..0c957ce702c7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resource_groups_operations.py @@ -21,6 +21,8 @@ class ResourceGroupsOperations(object): """ResourceGroupsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -150,7 +152,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) if response.status_code == 201: @@ -293,7 +294,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -366,7 +366,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -384,13 +383,13 @@ def export_template( :param resource_group_name: The name of the resource group to export as a template. :type resource_group_name: str - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support - exporting specific resources. + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: + 'IncludeParameterDefaultValue', 'IncludeComments', + 'SkipResourceNameParameterization', 'SkipAllParameterization' :type options: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -441,7 +440,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroupExportResult', response) @@ -471,8 +469,7 @@ def list( ~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroupPaged[~azure.mgmt.resource.resources.v2018_02_01.models.ResourceGroup] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -505,6 +502,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -515,12 +517,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resources_operations.py similarity index 99% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/resources_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resources_operations.py index 14867614a548..2174bf4fde31 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_resources_operations.py @@ -21,6 +21,8 @@ class ResourcesOperations(object): """ResourcesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -63,8 +65,7 @@ def list_by_resource_group( ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -100,6 +101,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -110,12 +116,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} @@ -332,8 +336,7 @@ def list( ~azure.mgmt.resource.resources.v2018_02_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2018_02_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -368,6 +371,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -378,12 +386,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} @@ -856,7 +862,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) @@ -1257,7 +1262,6 @@ def get_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_tags_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/tags_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_tags_operations.py index cbbd298f40db..dee545bf3450 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_02_01/operations/_tags_operations.py @@ -19,6 +19,8 @@ class TagsOperations(object): """TagsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -141,7 +143,6 @@ def create_or_update_value( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagValue', response) if response.status_code == 201: @@ -206,7 +207,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagDetails', response) if response.status_code == 201: @@ -287,8 +287,7 @@ def list( ~azure.mgmt.resource.resources.v2018_02_01.models.TagDetailsPaged[~azure.mgmt.resource.resources.v2018_02_01.models.TagDetails] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -317,6 +316,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -327,12 +331,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/__init__.py index d2e3198e88e6..68bc897193ac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .resource_management_client import ResourceManagementClient -from .version import VERSION +from ._configuration import ResourceManagementClientConfiguration +from ._resource_management_client import ResourceManagementClient +__all__ = ['ResourceManagementClient', 'ResourceManagementClientConfiguration'] -__all__ = ['ResourceManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_configuration.py new file mode 100644 index 000000000000..3b326f792363 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ResourceManagementClientConfiguration(AzureConfiguration): + """Configuration for ResourceManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ResourceManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/resource_management_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_resource_management_client.py similarity index 67% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/resource_management_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_resource_management_client.py index 848bf451ab63..2211a65cf4b0 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/resource_management_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/_resource_management_client.py @@ -11,48 +11,16 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.deployments_operations import DeploymentsOperations -from .operations.providers_operations import ProvidersOperations -from .operations.resources_operations import ResourcesOperations -from .operations.resource_groups_operations import ResourceGroupsOperations -from .operations.tags_operations import TagsOperations -from .operations.deployment_operations import DeploymentOperations -from . import models - - -class ResourceManagementClientConfiguration(AzureConfiguration): - """Configuration for ResourceManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The ID of the target subscription. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ResourceManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import ResourceManagementClientConfiguration +from .operations import Operations +from .operations import DeploymentsOperations +from .operations import ProvidersOperations +from .operations import ResourcesOperations +from .operations import ResourceGroupsOperations +from .operations import TagsOperations +from .operations import DeploymentOperations +from . import models class ResourceManagementClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/__init__.py index a25acecd0869..86c5eeb70c49 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/__init__.py @@ -10,153 +10,153 @@ # -------------------------------------------------------------------------- try: - from .deployment_extended_filter_py3 import DeploymentExtendedFilter - from .generic_resource_filter_py3 import GenericResourceFilter - from .resource_group_filter_py3 import ResourceGroupFilter - from .template_link_py3 import TemplateLink - from .parameters_link_py3 import ParametersLink - from .debug_setting_py3 import DebugSetting - from .on_error_deployment_py3 import OnErrorDeployment - from .deployment_properties_py3 import DeploymentProperties - from .deployment_py3 import Deployment - from .deployment_export_result_py3 import DeploymentExportResult - from .resource_management_error_with_details_py3 import ResourceManagementErrorWithDetails - from .alias_path_type_py3 import AliasPathType - from .alias_type_py3 import AliasType - from .provider_resource_type_py3 import ProviderResourceType - from .provider_py3 import Provider - from .basic_dependency_py3 import BasicDependency - from .dependency_py3 import Dependency - from .on_error_deployment_extended_py3 import OnErrorDeploymentExtended - from .deployment_properties_extended_py3 import DeploymentPropertiesExtended - from .deployment_validate_result_py3 import DeploymentValidateResult - from .deployment_extended_py3 import DeploymentExtended - from .plan_py3 import Plan - from .sku_py3 import Sku - from .identity_user_assigned_identities_value_py3 import IdentityUserAssignedIdentitiesValue - from .identity_py3 import Identity - from .generic_resource_py3 import GenericResource - from .resource_group_properties_py3 import ResourceGroupProperties - from .resource_group_py3 import ResourceGroup - from .resource_group_patchable_py3 import ResourceGroupPatchable - from .resources_move_info_py3 import ResourcesMoveInfo - from .export_template_request_py3 import ExportTemplateRequest - from .tag_count_py3 import TagCount - from .tag_value_py3 import TagValue - from .tag_details_py3 import TagDetails - from .target_resource_py3 import TargetResource - from .http_message_py3 import HttpMessage - from .deployment_operation_properties_py3 import DeploymentOperationProperties - from .deployment_operation_py3 import DeploymentOperation - from .resource_provider_operation_display_properties_py3 import ResourceProviderOperationDisplayProperties - from .resource_py3 import Resource - from .sub_resource_py3 import SubResource - from .resource_group_export_result_py3 import ResourceGroupExportResult - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation + from ._models_py3 import AliasPathType + from ._models_py3 import AliasType + from ._models_py3 import BasicDependency + from ._models_py3 import DebugSetting + from ._models_py3 import Dependency + from ._models_py3 import Deployment + from ._models_py3 import DeploymentExportResult + from ._models_py3 import DeploymentExtended + from ._models_py3 import DeploymentExtendedFilter + from ._models_py3 import DeploymentOperation + from ._models_py3 import DeploymentOperationProperties + from ._models_py3 import DeploymentProperties + from ._models_py3 import DeploymentPropertiesExtended + from ._models_py3 import DeploymentValidateResult + from ._models_py3 import ExportTemplateRequest + from ._models_py3 import GenericResource + from ._models_py3 import GenericResourceFilter + from ._models_py3 import HttpMessage + from ._models_py3 import Identity + from ._models_py3 import IdentityUserAssignedIdentitiesValue + from ._models_py3 import OnErrorDeployment + from ._models_py3 import OnErrorDeploymentExtended + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import ParametersLink + from ._models_py3 import Plan + from ._models_py3 import Provider + from ._models_py3 import ProviderResourceType + from ._models_py3 import Resource + from ._models_py3 import ResourceGroup + from ._models_py3 import ResourceGroupExportResult + from ._models_py3 import ResourceGroupFilter + from ._models_py3 import ResourceGroupPatchable + from ._models_py3 import ResourceGroupProperties + from ._models_py3 import ResourceManagementErrorWithDetails + from ._models_py3 import ResourceProviderOperationDisplayProperties + from ._models_py3 import ResourcesMoveInfo + from ._models_py3 import Sku + from ._models_py3 import SubResource + from ._models_py3 import TagCount + from ._models_py3 import TagDetails + from ._models_py3 import TagValue + from ._models_py3 import TargetResource + from ._models_py3 import TemplateLink except (SyntaxError, ImportError): - from .deployment_extended_filter import DeploymentExtendedFilter - from .generic_resource_filter import GenericResourceFilter - from .resource_group_filter import ResourceGroupFilter - from .template_link import TemplateLink - from .parameters_link import ParametersLink - from .debug_setting import DebugSetting - from .on_error_deployment import OnErrorDeployment - from .deployment_properties import DeploymentProperties - from .deployment import Deployment - from .deployment_export_result import DeploymentExportResult - from .resource_management_error_with_details import ResourceManagementErrorWithDetails - from .alias_path_type import AliasPathType - from .alias_type import AliasType - from .provider_resource_type import ProviderResourceType - from .provider import Provider - from .basic_dependency import BasicDependency - from .dependency import Dependency - from .on_error_deployment_extended import OnErrorDeploymentExtended - from .deployment_properties_extended import DeploymentPropertiesExtended - from .deployment_validate_result import DeploymentValidateResult - from .deployment_extended import DeploymentExtended - from .plan import Plan - from .sku import Sku - from .identity_user_assigned_identities_value import IdentityUserAssignedIdentitiesValue - from .identity import Identity - from .generic_resource import GenericResource - from .resource_group_properties import ResourceGroupProperties - from .resource_group import ResourceGroup - from .resource_group_patchable import ResourceGroupPatchable - from .resources_move_info import ResourcesMoveInfo - from .export_template_request import ExportTemplateRequest - from .tag_count import TagCount - from .tag_value import TagValue - from .tag_details import TagDetails - from .target_resource import TargetResource - from .http_message import HttpMessage - from .deployment_operation_properties import DeploymentOperationProperties - from .deployment_operation import DeploymentOperation - from .resource_provider_operation_display_properties import ResourceProviderOperationDisplayProperties - from .resource import Resource - from .sub_resource import SubResource - from .resource_group_export_result import ResourceGroupExportResult - from .operation_display import OperationDisplay - from .operation import Operation -from .operation_paged import OperationPaged -from .deployment_extended_paged import DeploymentExtendedPaged -from .provider_paged import ProviderPaged -from .generic_resource_paged import GenericResourcePaged -from .resource_group_paged import ResourceGroupPaged -from .tag_details_paged import TagDetailsPaged -from .deployment_operation_paged import DeploymentOperationPaged -from .resource_management_client_enums import ( + from ._models import AliasPathType + from ._models import AliasType + from ._models import BasicDependency + from ._models import DebugSetting + from ._models import Dependency + from ._models import Deployment + from ._models import DeploymentExportResult + from ._models import DeploymentExtended + from ._models import DeploymentExtendedFilter + from ._models import DeploymentOperation + from ._models import DeploymentOperationProperties + from ._models import DeploymentProperties + from ._models import DeploymentPropertiesExtended + from ._models import DeploymentValidateResult + from ._models import ExportTemplateRequest + from ._models import GenericResource + from ._models import GenericResourceFilter + from ._models import HttpMessage + from ._models import Identity + from ._models import IdentityUserAssignedIdentitiesValue + from ._models import OnErrorDeployment + from ._models import OnErrorDeploymentExtended + from ._models import Operation + from ._models import OperationDisplay + from ._models import ParametersLink + from ._models import Plan + from ._models import Provider + from ._models import ProviderResourceType + from ._models import Resource + from ._models import ResourceGroup + from ._models import ResourceGroupExportResult + from ._models import ResourceGroupFilter + from ._models import ResourceGroupPatchable + from ._models import ResourceGroupProperties + from ._models import ResourceManagementErrorWithDetails + from ._models import ResourceProviderOperationDisplayProperties + from ._models import ResourcesMoveInfo + from ._models import Sku + from ._models import SubResource + from ._models import TagCount + from ._models import TagDetails + from ._models import TagValue + from ._models import TargetResource + from ._models import TemplateLink +from ._paged_models import DeploymentExtendedPaged +from ._paged_models import DeploymentOperationPaged +from ._paged_models import GenericResourcePaged +from ._paged_models import OperationPaged +from ._paged_models import ProviderPaged +from ._paged_models import ResourceGroupPaged +from ._paged_models import TagDetailsPaged +from ._resource_management_client_enums import ( DeploymentMode, OnErrorDeploymentType, ResourceIdentityType, ) __all__ = [ - 'DeploymentExtendedFilter', - 'GenericResourceFilter', - 'ResourceGroupFilter', - 'TemplateLink', - 'ParametersLink', - 'DebugSetting', - 'OnErrorDeployment', - 'DeploymentProperties', - 'Deployment', - 'DeploymentExportResult', - 'ResourceManagementErrorWithDetails', 'AliasPathType', 'AliasType', - 'ProviderResourceType', - 'Provider', 'BasicDependency', + 'DebugSetting', 'Dependency', - 'OnErrorDeploymentExtended', + 'Deployment', + 'DeploymentExportResult', + 'DeploymentExtended', + 'DeploymentExtendedFilter', + 'DeploymentOperation', + 'DeploymentOperationProperties', + 'DeploymentProperties', 'DeploymentPropertiesExtended', 'DeploymentValidateResult', - 'DeploymentExtended', - 'Plan', - 'Sku', - 'IdentityUserAssignedIdentitiesValue', - 'Identity', + 'ExportTemplateRequest', 'GenericResource', - 'ResourceGroupProperties', + 'GenericResourceFilter', + 'HttpMessage', + 'Identity', + 'IdentityUserAssignedIdentitiesValue', + 'OnErrorDeployment', + 'OnErrorDeploymentExtended', + 'Operation', + 'OperationDisplay', + 'ParametersLink', + 'Plan', + 'Provider', + 'ProviderResourceType', + 'Resource', 'ResourceGroup', + 'ResourceGroupExportResult', + 'ResourceGroupFilter', 'ResourceGroupPatchable', + 'ResourceGroupProperties', + 'ResourceManagementErrorWithDetails', + 'ResourceProviderOperationDisplayProperties', 'ResourcesMoveInfo', - 'ExportTemplateRequest', + 'Sku', + 'SubResource', 'TagCount', - 'TagValue', 'TagDetails', + 'TagValue', 'TargetResource', - 'HttpMessage', - 'DeploymentOperationProperties', - 'DeploymentOperation', - 'ResourceProviderOperationDisplayProperties', - 'Resource', - 'SubResource', - 'ResourceGroupExportResult', - 'OperationDisplay', - 'Operation', + 'TemplateLink', 'OperationPaged', 'DeploymentExtendedPaged', 'ProviderPaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models.py new file mode 100644 index 000000000000..70e06e95f745 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models.py @@ -0,0 +1,1416 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AliasPathType, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.api_versions = kwargs.get('api_versions', None) + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, **kwargs): + super(AliasType, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.paths = kwargs.get('paths', None) + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BasicDependency, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = kwargs.get('detail_level', None) + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2018_05_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dependency, self).__init__(**kwargs) + self.depends_on = kwargs.get('depends_on', None) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param location: The location to store the deployment data. + :type location: str + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, **kwargs): + super(Deployment, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the deployment. + :vartype id: str + :ivar name: The name of the deployment. + :vartype name: str + :ivar type: The type of the deployment. + :vartype type: str + :param location: the location of the deployment. + :type location: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = kwargs.get('properties', None) + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2018_05_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeployment + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, + } + + def __init__(self, **kwargs): + super(DeploymentProperties, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + self.on_error_deployment = kwargs.get('on_error_deployment', None) + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2018_05_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2018_05_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentExtended + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = kwargs.get('outputs', None) + self.providers = kwargs.get('providers', None) + self.dependencies = kwargs.get('dependencies', None) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + self.on_error_deployment = kwargs.get('on_error_deployment', None) + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.properties = kwargs.get('properties', None) + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.options = kwargs.get('options', None) + + +class Resource(Model): + """Specified resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2018_05_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2018_05_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(GenericResource, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.properties = kwargs.get('properties', None) + self.kind = kwargs.get('kind', None) + self.managed_by = kwargs.get('managed_by', None) + self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.tagname = kwargs.get('tagname', None) + self.tagvalue = kwargs.get('tagvalue', None) + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(HttpMessage, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the resource. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.resource.resources.v2018_05_01.models.IdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + +class IdentityUserAssignedIdentitiesValue(Model): + """IdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class OnErrorDeployment(Model): + """Deployment on error behavior. + + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OnErrorDeployment, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.deployment_name = kwargs.get('deployment_name', None) + + +class OnErrorDeploymentExtended(Model): + """Deployment on error behavior with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning for the on error + deployment. + :vartype provisioning_state: str + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OnErrorDeploymentExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.type = kwargs.get('type', None) + self.deployment_name = kwargs.get('deployment_name', None) + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.resources.v2018_05_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ParametersLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + self.version = kwargs.get('version', None) + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2018_05_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, **kwargs): + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = kwargs.get('namespace', None) + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.locations = kwargs.get('locations', None) + self.aliases = kwargs.get('aliases', None) + self.api_versions = kwargs.get('api_versions', None) + self.properties = kwargs.get('properties', None) + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :ivar name: The name of the resource group. + :vartype name: str + :ivar type: The type of the resource group. + :vartype type: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.properties = kwargs.get('properties', None) + self.location = kwargs.get('location', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.error = kwargs.get('error', None) + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = kwargs.get('tag_name', None) + self.tag_value = kwargs.get('tag_value', None) + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs): + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Resource provider operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.target_resource_group = kwargs.get('target_resource_group', None) + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + self.model = kwargs.get('model', None) + self.capacity = kwargs.get('capacity', None) + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(TagCount, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.value = kwargs.get('value', None) + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2018_05_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, **kwargs): + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = kwargs.get('tag_name', None) + self.count = kwargs.get('count', None) + self.values = kwargs.get('values', None) + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, **kwargs): + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = kwargs.get('tag_value', None) + self.count = kwargs.get('count', None) + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_name = kwargs.get('resource_name', None) + self.resource_type = kwargs.get('resource_type', None) + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TemplateLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models_py3.py new file mode 100644 index 000000000000..9973e5db22b4 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_models_py3.py @@ -0,0 +1,1416 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: + super(AliasPathType, self).__init__(**kwargs) + self.path = path + self.api_versions = api_versions + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: + super(AliasType, self).__init__(**kwargs) + self.name = name + self.paths = paths + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(BasicDependency, self).__init__(**kwargs) + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """DebugSetting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, *, detail_level: str=None, **kwargs) -> None: + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = detail_level + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2018_05_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(Dependency, self).__init__(**kwargs) + self.depends_on = depends_on + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param location: The location to store the deployment data. + :type location: str + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, *, properties, location: str=None, **kwargs) -> None: + super(Deployment, self).__init__(**kwargs) + self.location = location + self.properties = properties + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, *, template=None, **kwargs) -> None: + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = template + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the deployment. + :vartype id: str + :ivar name: The name of the deployment. + :vartype name: str + :ivar type: The type of the deployment. + :vartype type: str + :param location: the location of the deployment. + :type location: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, location: str=None, properties=None, **kwargs) -> None: + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.properties = properties + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = properties + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2018_05_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs) -> None: + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeployment + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, + } + + def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: + super(DeploymentProperties, self).__init__(**kwargs) + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + self.on_error_deployment = on_error_deployment + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2018_05_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2018_05_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentExtended + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, + } + + def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.outputs = outputs + self.providers = providers + self.dependencies = dependencies + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + self.on_error_deployment = on_error_deployment + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, error=None, properties=None, **kwargs) -> None: + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = error + self.properties = properties + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. + :type resources: list[str] + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: 'IncludeParameterDefaultValue', + 'IncludeComments', 'SkipResourceNameParameterization', + 'SkipAllParameterization' + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = resources + self.options = options + + +class Resource(Model): + """Specified resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2018_05_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2018_05_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: + super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.properties = properties + self.kind = kind + self.managed_by = managed_by + self.sku = sku + self.identity = identity + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = resource_type + self.tagname = tagname + self.tagvalue = tagvalue + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, *, content=None, **kwargs) -> None: + super(HttpMessage, self).__init__(**kwargs) + self.content = content + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the resource. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.resource.resources.v2018_05_01.models.IdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities + + +class IdentityUserAssignedIdentitiesValue(Model): + """IdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class OnErrorDeployment(Model): + """Deployment on error behavior. + + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: + super(OnErrorDeployment, self).__init__(**kwargs) + self.type = type + self.deployment_name = deployment_name + + +class OnErrorDeploymentExtended(Model): + """Deployment on error behavior with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning for the on error + deployment. + :vartype provisioning_state: str + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: + super(OnErrorDeploymentExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.type = type + self.deployment_name = deployment_name + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.resources.v2018_05_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(ParametersLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + self.version = version + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the provider. + :vartype registration_state: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2018_05_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, *, namespace: str=None, **kwargs) -> None: + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = namespace + self.registration_state = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = resource_type + self.locations = locations + self.aliases = aliases + self.api_versions = api_versions + self.properties = properties + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :ivar name: The name of the resource group. + :vartype name: str + :ivar type: The type of the resource group. + :vartype type: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.properties = properties + self.location = location + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, *, template=None, error=None, **kwargs) -> None: + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = template + self.error = error + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = tag_name + self.tag_value = tag_value + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: + :type properties: + ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = name + self.properties = properties + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Resource provider operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = publisher + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = resources + self.target_resource_group = target_resource_group + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.size = size + self.family = family + self.model = model + self.capacity = capacity + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: + super(TagCount, self).__init__(**kwargs) + self.type = type + self.value = value + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2018_05_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = tag_name + self.count = count + self.values = values + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = tag_value + self.count = count + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: + super(TargetResource, self).__init__(**kwargs) + self.id = id + self.resource_name = resource_name + self.resource_type = resource_type + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(TemplateLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_paged_models.py new file mode 100644 index 000000000000..03bd023d6998 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_paged_models.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) +class DeploymentExtendedPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentExtended ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) +class ProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`Provider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Provider]'} + } + + def __init__(self, *args, **kwargs): + + super(ProviderPaged, self).__init__(*args, **kwargs) +class GenericResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`GenericResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GenericResource]'} + } + + def __init__(self, *args, **kwargs): + + super(GenericResourcePaged, self).__init__(*args, **kwargs) +class ResourceGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceGroupPaged, self).__init__(*args, **kwargs) +class TagDetailsPaged(Paged): + """ + A paging container for iterating over a list of :class:`TagDetails ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TagDetails]'} + } + + def __init__(self, *args, **kwargs): + + super(TagDetailsPaged, self).__init__(*args, **kwargs) +class DeploymentOperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentOperation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_resource_management_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/_resource_management_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_path_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_path_type.py deleted file mode 100644 index ee5959ef5463..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_path_type.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(AliasPathType, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.api_versions = kwargs.get('api_versions', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_path_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_path_type_py3.py deleted file mode 100644 index ccd48141f917..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_path_type_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasPathType(Model): - """The type of the paths for alias. . - - :param path: The path of an alias. - :type path: str - :param api_versions: The API versions. - :type api_versions: list[str] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - } - - def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: - super(AliasPathType, self).__init__(**kwargs) - self.path = path - self.api_versions = api_versions diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_type.py deleted file mode 100644 index 52ed507f9978..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_type.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, **kwargs): - super(AliasType, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.paths = kwargs.get('paths', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_type_py3.py deleted file mode 100644 index 8a222fc3d5bb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/alias_type_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AliasType(Model): - """The alias type. . - - :param name: The alias name. - :type name: str - :param paths: The paths for an alias. - :type paths: - list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasPathType] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, - } - - def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: - super(AliasType, self).__init__(**kwargs) - self.name = name - self.paths = paths diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/basic_dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/basic_dependency.py deleted file mode 100644 index 3a5ccd4aa464..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/basic_dependency.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BasicDependency, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/basic_dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/basic_dependency_py3.py deleted file mode 100644 index 49d821737930..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/basic_dependency_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BasicDependency(Model): - """Deployment dependency information. - - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(BasicDependency, self).__init__(**kwargs) - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/debug_setting.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/debug_setting.py deleted file mode 100644 index d6f778c5c86d..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/debug_setting.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = kwargs.get('detail_level', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/debug_setting_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/debug_setting_py3.py deleted file mode 100644 index af571a729762..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/debug_setting_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DebugSetting(Model): - """DebugSetting. - - :param detail_level: Specifies the type of information to log for - debugging. The permitted values are none, requestContent, responseContent, - or both requestContent and responseContent separated by a comma. The - default is none. When setting this value, carefully consider the type of - information you are passing in during deployment. By logging information - about the request or response, you could potentially expose sensitive data - that is retrieved through the deployment operations. - :type detail_level: str - """ - - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - - def __init__(self, *, detail_level: str=None, **kwargs) -> None: - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = detail_level diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency.py deleted file mode 100644 index f08c24d006ea..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2018_05_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Dependency, self).__init__(**kwargs) - self.depends_on = kwargs.get('depends_on', None) - self.id = kwargs.get('id', None) - self.resource_type = kwargs.get('resource_type', None) - self.resource_name = kwargs.get('resource_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency_py3.py deleted file mode 100644 index 781c2379eae7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/dependency_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Dependency(Model): - """Deployment dependency information. - - :param depends_on: The list of dependencies. - :type depends_on: - list[~azure.mgmt.resource.resources.v2018_05_01.models.BasicDependency] - :param id: The ID of the dependency. - :type id: str - :param resource_type: The dependency resource type. - :type resource_type: str - :param resource_name: The dependency resource name. - :type resource_name: str - """ - - _attribute_map = { - 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, - 'id': {'key': 'id', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - } - - def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: - super(Dependency, self).__init__(**kwargs) - self.depends_on = depends_on - self.id = id - self.resource_type = resource_type - self.resource_name = resource_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment.py deleted file mode 100644 index 2106167a7476..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param location: The location to store the deployment data. - :type location: str - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, **kwargs): - super(Deployment, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_export_result.py deleted file mode 100644 index 807e79c8b678..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_export_result.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_export_result_py3.py deleted file mode 100644 index 63f10bf2735a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_export_result_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExportResult(Model): - """The deployment export result. . - - :param template: The template content. - :type template: object - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - } - - def __init__(self, *, template=None, **kwargs) -> None: - super(DeploymentExportResult, self).__init__(**kwargs) - self.template = template diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended.py deleted file mode 100644 index d18e24c66aeb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The ID of the deployment. - :vartype id: str - :ivar name: The name of the deployment. - :vartype name: str - :ivar type: The type of the deployment. - :vartype type: str - :param location: the location of the deployment. - :type location: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_filter.py deleted file mode 100644 index 0839bcc12e4e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_filter.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_filter_py3.py deleted file mode 100644 index f06d0d1a4dfb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_filter_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtendedFilter(Model): - """Deployment filter. - - :param provisioning_state: The provisioning state. - :type provisioning_state: str - """ - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: - super(DeploymentExtendedFilter, self).__init__(**kwargs) - self.provisioning_state = provisioning_state diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_paged.py deleted file mode 100644 index def81d15a342..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentExtendedPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentExtended ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_py3.py deleted file mode 100644 index 90dab05dfe13..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_extended_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentExtended(Model): - """Deployment information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The ID of the deployment. - :vartype id: str - :ivar name: The name of the deployment. - :vartype name: str - :ivar type: The type of the deployment. - :vartype type: str - :param location: the location of the deployment. - :type location: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, location: str=None, properties=None, **kwargs) -> None: - super(DeploymentExtended, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation.py deleted file mode 100644 index ce53456c300b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_paged.py deleted file mode 100644 index ed89c78571b1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class DeploymentOperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`DeploymentOperation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} - } - - def __init__(self, *args, **kwargs): - - super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_properties.py deleted file mode 100644 index afda35641e94..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_properties.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2018_05_01.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs): - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_properties_py3.py deleted file mode 100644 index 4865550e4460..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_properties_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperationProperties(Model): - """Deployment operation properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar timestamp: The date and time of the operation. - :vartype timestamp: datetime - :ivar service_request_id: Deployment operation service request id. - :vartype service_request_id: str - :ivar status_code: Operation status code. - :vartype status_code: str - :ivar status_message: Operation status message. - :vartype status_message: object - :ivar target_resource: The target resource. - :vartype target_resource: - ~azure.mgmt.resource.resources.v2018_05_01.models.TargetResource - :ivar request: The HTTP request message. - :vartype request: - ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage - :ivar response: The HTTP response message. - :vartype response: - ~azure.mgmt.resource.resources.v2018_05_01.models.HttpMessage - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'service_request_id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'status_message': {'readonly': True}, - 'target_resource': {'readonly': True}, - 'request': {'readonly': True}, - 'response': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'object'}, - 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, - 'request': {'key': 'request', 'type': 'HttpMessage'}, - 'response': {'key': 'response', 'type': 'HttpMessage'}, - } - - def __init__(self, **kwargs) -> None: - super(DeploymentOperationProperties, self).__init__(**kwargs) - self.provisioning_state = None - self.timestamp = None - self.service_request_id = None - self.status_code = None - self.status_message = None - self.target_resource = None - self.request = None - self.response = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_py3.py deleted file mode 100644 index bf2395aff799..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_operation_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentOperation(Model): - """Deployment operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Full deployment operation ID. - :vartype id: str - :ivar operation_id: Deployment operation ID. - :vartype operation_id: str - :param properties: Deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperationProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'operation_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, - } - - def __init__(self, *, properties=None, **kwargs) -> None: - super(DeploymentOperation, self).__init__(**kwargs) - self.id = None - self.operation_id = None - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties.py deleted file mode 100644 index 9b61d74c4261..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeployment - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, - } - - def __init__(self, **kwargs): - super(DeploymentProperties, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) - self.on_error_deployment = kwargs.get('on_error_deployment', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_extended.py deleted file mode 100644 index a3539cd95092..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_extended.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2018_05_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2018_05_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentExtended - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = kwargs.get('outputs', None) - self.providers = kwargs.get('providers', None) - self.dependencies = kwargs.get('dependencies', None) - self.template = kwargs.get('template', None) - self.template_link = kwargs.get('template_link', None) - self.parameters = kwargs.get('parameters', None) - self.parameters_link = kwargs.get('parameters_link', None) - self.mode = kwargs.get('mode', None) - self.debug_setting = kwargs.get('debug_setting', None) - self.on_error_deployment = kwargs.get('on_error_deployment', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_extended_py3.py deleted file mode 100644 index f59df3ea1255..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_extended_py3.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentPropertiesExtended(Model): - """Deployment properties with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning. - :vartype provisioning_state: str - :ivar correlation_id: The correlation ID of the deployment. - :vartype correlation_id: str - :ivar timestamp: The timestamp of the template deployment. - :vartype timestamp: datetime - :param outputs: Key/value pairs that represent deployment output. - :type outputs: object - :param providers: The list of resource providers needed for the - deployment. - :type providers: - list[~azure.mgmt.resource.resources.v2018_05_01.models.Provider] - :param dependencies: The list of deployment dependencies. - :type dependencies: - list[~azure.mgmt.resource.resources.v2018_05_01.models.Dependency] - :param template: The template content. Use only one of Template or - TemplateLink. - :type template: object - :param template_link: The URI referencing the template. Use only one of - Template or TemplateLink. - :type template_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink - :param parameters: Deployment parameters. Use only one of Parameters or - ParametersLink. - :type parameters: object - :param parameters_link: The URI referencing the parameters. Use only one - of Parameters or ParametersLink. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink - :param mode: The deployment mode. Possible values are Incremental and - Complete. Possible values include: 'Incremental', 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentExtended - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'outputs': {'key': 'outputs', 'type': 'object'}, - 'providers': {'key': 'providers', 'type': '[Provider]'}, - 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, - } - - def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: - super(DeploymentPropertiesExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.correlation_id = None - self.timestamp = None - self.outputs = outputs - self.providers = providers - self.dependencies = dependencies - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting - self.on_error_deployment = on_error_deployment diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_py3.py deleted file mode 100644 index 3fc541d71871..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_properties_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentProperties(Model): - """Deployment properties. - - All required parameters must be populated in order to send to Azure. - - :param template: The template content. You use this element when you want - to pass the template syntax directly in the request rather than link to an - existing template. It can be a JObject or well-formed JSON string. Use - either the templateLink property or the template property, but not both. - :type template: object - :param template_link: The URI of the template. Use either the templateLink - property or the template property, but not both. - :type template_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.TemplateLink - :param parameters: Name and value pairs that define the deployment - parameters for the template. You use this element when you want to provide - the parameter values directly in the request rather than link to an - existing parameter file. Use either the parametersLink property or the - parameters property, but not both. It can be a JObject or a well formed - JSON string. - :type parameters: object - :param parameters_link: The URI of parameters file. You use this element - to link to an existing parameters file. Use either the parametersLink - property or the parameters property, but not both. - :type parameters_link: - ~azure.mgmt.resource.resources.v2018_05_01.models.ParametersLink - :param mode: Required. The mode that is used to deploy resources. This - value can be either Incremental or Complete. In Incremental mode, - resources are deployed without deleting existing resources that are not - included in the template. In Complete mode, resources are deployed and - existing resources in the resource group that are not included in the - template are deleted. Be careful when using Complete mode as you may - unintentionally delete resources. Possible values include: 'Incremental', - 'Complete' - :type mode: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentMode - :param debug_setting: The debug setting of the deployment. - :type debug_setting: - ~azure.mgmt.resource.resources.v2018_05_01.models.DebugSetting - :param on_error_deployment: The deployment on error behavior. - :type on_error_deployment: - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeployment - """ - - _validation = { - 'mode': {'required': True}, - } - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, - 'parameters': {'key': 'parameters', 'type': 'object'}, - 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, - 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, - 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, - 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, - } - - def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: - super(DeploymentProperties, self).__init__(**kwargs) - self.template = template - self.template_link = template_link - self.parameters = parameters - self.parameters_link = parameters_link - self.mode = mode - self.debug_setting = debug_setting - self.on_error_deployment = on_error_deployment diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_py3.py deleted file mode 100644 index 0dfdb88fc8b6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Deployment(Model): - """Deployment operation parameters. - - All required parameters must be populated in order to send to Azure. - - :param location: The location to store the deployment data. - :type location: str - :param properties: Required. The deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentProperties - """ - - _validation = { - 'properties': {'required': True}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, - } - - def __init__(self, *, properties, location: str=None, **kwargs) -> None: - super(Deployment, self).__init__(**kwargs) - self.location = location - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_validate_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_validate_result.py deleted file mode 100644 index 5a00df7a9468..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_validate_result.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, **kwargs): - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_validate_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_validate_result_py3.py deleted file mode 100644 index fbcf09daeeff..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/deployment_validate_result_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DeploymentValidateResult(Model): - """Information from validate template deployment response. - - :param error: Validation error. - :type error: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails - :param properties: The template deployment properties. - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentPropertiesExtended - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, - } - - def __init__(self, *, error=None, properties=None, **kwargs) -> None: - super(DeploymentValidateResult, self).__init__(**kwargs) - self.error = error - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/export_template_request.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/export_template_request.py deleted file mode 100644 index 069bfbb70632..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/export_template_request.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.options = kwargs.get('options', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/export_template_request_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/export_template_request_py3.py deleted file mode 100644 index 2374c103d566..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/export_template_request_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ExportTemplateRequest(Model): - """Export resource group template request parameters. - - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support exporting - specific resources. - :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments - :type options: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'options': {'key': 'options', 'type': 'str'}, - } - - def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: - super(ExportTemplateRequest, self).__init__(**kwargs) - self.resources = resources - self.options = options diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource.py deleted file mode 100644 index d76712637f74..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2018_05_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2018_05_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, **kwargs): - super(GenericResource, self).__init__(**kwargs) - self.plan = kwargs.get('plan', None) - self.properties = kwargs.get('properties', None) - self.kind = kwargs.get('kind', None) - self.managed_by = kwargs.get('managed_by', None) - self.sku = kwargs.get('sku', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_filter.py deleted file mode 100644 index c4488f4cf095..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_filter.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.tagname = kwargs.get('tagname', None) - self.tagvalue = kwargs.get('tagvalue', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_filter_py3.py deleted file mode 100644 index 17ad0e58c55c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_filter_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericResourceFilter(Model): - """Resource filter. - - :param resource_type: The resource type. - :type resource_type: str - :param tagname: The tag name. - :type tagname: str - :param tagvalue: The tag value. - :type tagvalue: str - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'tagname': {'key': 'tagname', 'type': 'str'}, - 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, - } - - def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: - super(GenericResourceFilter, self).__init__(**kwargs) - self.resource_type = resource_type - self.tagname = tagname - self.tagvalue = tagvalue diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_paged.py deleted file mode 100644 index ea1c9e76ee3c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class GenericResourcePaged(Paged): - """ - A paging container for iterating over a list of :class:`GenericResource ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[GenericResource]'} - } - - def __init__(self, *args, **kwargs): - - super(GenericResourcePaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_py3.py deleted file mode 100644 index 90fcd6d6b3c5..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/generic_resource_py3.py +++ /dev/null @@ -1,73 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class GenericResource(Resource): - """Resource information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param plan: The plan of the resource. - :type plan: ~azure.mgmt.resource.resources.v2018_05_01.models.Plan - :param properties: The resource properties. - :type properties: object - :param kind: The kind of the resource. - :type kind: str - :param managed_by: ID of the resource that manages this resource. - :type managed_by: str - :param sku: The SKU of the resource. - :type sku: ~azure.mgmt.resource.resources.v2018_05_01.models.Sku - :param identity: The identity of the resource. - :type identity: ~azure.mgmt.resource.resources.v2018_05_01.models.Identity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'plan': {'key': 'plan', 'type': 'Plan'}, - 'properties': {'key': 'properties', 'type': 'object'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - } - - def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: - super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) - self.plan = plan - self.properties = properties - self.kind = kind - self.managed_by = managed_by - self.sku = sku - self.identity = identity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/http_message.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/http_message.py deleted file mode 100644 index c4a11d3ebc30..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/http_message.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HTTP message. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(HttpMessage, self).__init__(**kwargs) - self.content = kwargs.get('content', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/http_message_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/http_message_py3.py deleted file mode 100644 index efe1b5abd2fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/http_message_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class HttpMessage(Model): - """HTTP message. - - :param content: HTTP message content. - :type content: object - """ - - _attribute_map = { - 'content': {'key': 'content', 'type': 'object'}, - } - - def __init__(self, *, content=None, **kwargs) -> None: - super(HttpMessage, self).__init__(**kwargs) - self.content = content diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity.py deleted file mode 100644 index 0f7499f31cfa..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned', - 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' - :type type: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceIdentityType - :param user_assigned_identities: The list of user identities associated - with the resource. The user identity dictionary key references will be ARM - resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.resource.resources.v2018_05_01.models.IdentityUserAssignedIdentitiesValue] - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) - self.user_assigned_identities = kwargs.get('user_assigned_identities', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_py3.py deleted file mode 100644 index 6624bd2c5cf2..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_py3.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type: The identity type. Possible values include: 'SystemAssigned', - 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' - :type type: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceIdentityType - :param user_assigned_identities: The list of user identities associated - with the resource. The user identity dictionary key references will be ARM - resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.resource.resources.v2018_05_01.models.IdentityUserAssignedIdentitiesValue] - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, - } - - def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type - self.user_assigned_identities = user_assigned_identities diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_user_assigned_identities_value.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_user_assigned_identities_value.py deleted file mode 100644 index d4f566ff2086..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_user_assigned_identities_value.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IdentityUserAssignedIdentitiesValue(Model): - """IdentityUserAssignedIdentitiesValue. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_user_assigned_identities_value_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_user_assigned_identities_value_py3.py deleted file mode 100644 index 16159b444f4f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/identity_user_assigned_identities_value_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IdentityUserAssignedIdentitiesValue(Model): - """IdentityUserAssignedIdentitiesValue. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment.py deleted file mode 100644 index 19e73517ef4b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeployment(Model): - """Deployment on error behavior. - - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OnErrorDeployment, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.deployment_name = kwargs.get('deployment_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_extended.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_extended.py deleted file mode 100644 index afa622af1482..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_extended.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeploymentExtended(Model): - """Deployment on error behavior with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning for the on error - deployment. - :vartype provisioning_state: str - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OnErrorDeploymentExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.type = kwargs.get('type', None) - self.deployment_name = kwargs.get('deployment_name', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_extended_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_extended_py3.py deleted file mode 100644 index 4f7d387c3c44..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_extended_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeploymentExtended(Model): - """Deployment on error behavior with additional details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The state of the provisioning for the on error - deployment. - :vartype provisioning_state: str - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: - super(OnErrorDeploymentExtended, self).__init__(**kwargs) - self.provisioning_state = None - self.type = type - self.deployment_name = deployment_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_py3.py deleted file mode 100644 index ec48dfbc6911..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/on_error_deployment_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OnErrorDeployment(Model): - """Deployment on error behavior. - - :param type: The deployment on error behavior type. Possible values are - LastSuccessful and SpecificDeployment. Possible values include: - 'LastSuccessful', 'SpecificDeployment' - :type type: str or - ~azure.mgmt.resource.resources.v2018_05_01.models.OnErrorDeploymentType - :param deployment_name: The deployment to be used on error case. - :type deployment_name: str - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - } - - def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: - super(OnErrorDeployment, self).__init__(**kwargs) - self.type = type - self.deployment_name = deployment_name diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation.py deleted file mode 100644 index f0617b3edee0..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.resources.v2018_05_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_display.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_display.py deleted file mode 100644 index 98e3ef7e561c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_display_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_display_py3.py deleted file mode 100644 index 9579860dfd81..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_paged.py deleted file mode 100644 index a998427204db..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_py3.py deleted file mode 100644 index 64bbbe2fb4d7..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/operation_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.resources.v2018_05_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/parameters_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/parameters_link.py deleted file mode 100644 index 0696248fc17c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/parameters_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ParametersLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/parameters_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/parameters_link_py3.py deleted file mode 100644 index 734546c362c4..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/parameters_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParametersLink(Model): - """Entity representing the reference to the deployment parameters. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the parameters file. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(ParametersLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/plan.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/plan.py deleted file mode 100644 index 594d670d723c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/plan.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Plan, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.publisher = kwargs.get('publisher', None) - self.product = kwargs.get('product', None) - self.promotion_code = kwargs.get('promotion_code', None) - self.version = kwargs.get('version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/plan_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/plan_py3.py deleted file mode 100644 index 972976e1ba0f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/plan_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Plan(Model): - """Plan for the resource. - - :param name: The plan ID. - :type name: str - :param publisher: The publisher ID. - :type publisher: str - :param product: The offer ID. - :type product: str - :param promotion_code: The promotion code. - :type promotion_code: str - :param version: The plan's version. - :type version: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'product': {'key': 'product', 'type': 'str'}, - 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, - 'version': {'key': 'version', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: - super(Plan, self).__init__(**kwargs) - self.name = name - self.publisher = publisher - self.product = product - self.promotion_code = promotion_code - self.version = version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider.py deleted file mode 100644 index d5d0f036be4b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2018_05_01.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, **kwargs): - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = kwargs.get('namespace', None) - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_paged.py deleted file mode 100644 index b4a173aacd62..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProviderPaged(Paged): - """ - A paging container for iterating over a list of :class:`Provider ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Provider]'} - } - - def __init__(self, *args, **kwargs): - - super(ProviderPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_py3.py deleted file mode 100644 index 3303d966f152..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Provider(Model): - """Resource provider information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The provider ID. - :vartype id: str - :param namespace: The namespace of the resource provider. - :type namespace: str - :ivar registration_state: The registration state of the provider. - :vartype registration_state: str - :ivar resource_types: The collection of provider resource types. - :vartype resource_types: - list[~azure.mgmt.resource.resources.v2018_05_01.models.ProviderResourceType] - """ - - _validation = { - 'id': {'readonly': True}, - 'registration_state': {'readonly': True}, - 'resource_types': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'namespace': {'key': 'namespace', 'type': 'str'}, - 'registration_state': {'key': 'registrationState', 'type': 'str'}, - 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, - } - - def __init__(self, *, namespace: str=None, **kwargs) -> None: - super(Provider, self).__init__(**kwargs) - self.id = None - self.namespace = namespace - self.registration_state = None - self.resource_types = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_resource_type.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_resource_type.py deleted file mode 100644 index e3dfa15e7eac..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_resource_type.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = kwargs.get('resource_type', None) - self.locations = kwargs.get('locations', None) - self.aliases = kwargs.get('aliases', None) - self.api_versions = kwargs.get('api_versions', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_resource_type_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_resource_type_py3.py deleted file mode 100644 index ed90d4ae5241..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/provider_resource_type_py3.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProviderResourceType(Model): - """Resource type managed by the resource provider. - - :param resource_type: The resource type. - :type resource_type: str - :param locations: The collection of locations where this resource type can - be created. - :type locations: list[str] - :param aliases: The aliases that are supported by this resource type. - :type aliases: - list[~azure.mgmt.resource.resources.v2018_05_01.models.AliasType] - :param api_versions: The API version. - :type api_versions: list[str] - :param properties: The properties. - :type properties: dict[str, str] - """ - - _attribute_map = { - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'locations': {'key': 'locations', 'type': '[str]'}, - 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, - 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, - 'properties': {'key': 'properties', 'type': '{str}'}, - } - - def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, properties=None, **kwargs) -> None: - super(ProviderResourceType, self).__init__(**kwargs) - self.resource_type = resource_type - self.locations = locations - self.aliases = aliases - self.api_versions = api_versions - self.properties = properties diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource.py deleted file mode 100644 index 35452c4dbcfc..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Specified resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group.py deleted file mode 100644 index 3c4d19363466..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :ivar name: The name of the resource group. - :vartype name: str - :ivar type: The type of the resource group. - :vartype type: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.properties = kwargs.get('properties', None) - self.location = kwargs.get('location', None) - self.managed_by = kwargs.get('managed_by', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_export_result.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_export_result.py deleted file mode 100644 index 5bef1757ea43..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_export_result.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """Resource group export result. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = kwargs.get('template', None) - self.error = kwargs.get('error', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_export_result_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_export_result_py3.py deleted file mode 100644 index 375768fe00b6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_export_result_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupExportResult(Model): - """Resource group export result. - - :param template: The template content. - :type template: object - :param error: The error. - :type error: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails - """ - - _attribute_map = { - 'template': {'key': 'template', 'type': 'object'}, - 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, - } - - def __init__(self, *, template=None, error=None, **kwargs) -> None: - super(ResourceGroupExportResult, self).__init__(**kwargs) - self.template = template - self.error = error diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_filter.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_filter.py deleted file mode 100644 index c94284bf3644..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_filter.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = kwargs.get('tag_name', None) - self.tag_value = kwargs.get('tag_value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_filter_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_filter_py3.py deleted file mode 100644 index d709b6afd34f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_filter_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupFilter(Model): - """Resource group filter. - - :param tag_name: The tag name. - :type tag_name: str - :param tag_value: The tag value. - :type tag_value: str - """ - - _attribute_map = { - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - } - - def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: - super(ResourceGroupFilter, self).__init__(**kwargs) - self.tag_name = tag_name - self.tag_value = tag_value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_paged.py deleted file mode 100644 index 72da89821e0f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ResourceGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`ResourceGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(ResourceGroupPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_patchable.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_patchable.py deleted file mode 100644 index e3915ff82581..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_patchable.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupPatchable(Model): - """Resource group information. - - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupPatchable, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.properties = kwargs.get('properties', None) - self.managed_by = kwargs.get('managed_by', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_patchable_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_patchable_py3.py deleted file mode 100644 index 1c2a7582afc6..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_patchable_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupPatchable(Model): - """Resource group information. - - :param name: The name of the resource group. - :type name: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: - super(ResourceGroupPatchable, self).__init__(**kwargs) - self.name = name - self.properties = properties - self.managed_by = managed_by - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_properties.py deleted file mode 100644 index 39411e3d79fb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_properties.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_properties_py3.py deleted file mode 100644 index 67d6d06dedbd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_properties_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroupProperties(Model): - """The resource group properties. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provisioning_state: The provisioning state. - :vartype provisioning_state: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceGroupProperties, self).__init__(**kwargs) - self.provisioning_state = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_py3.py deleted file mode 100644 index 10effdf3740e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_group_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceGroup(Model): - """Resource group information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: The ID of the resource group. - :vartype id: str - :ivar name: The name of the resource group. - :vartype name: str - :ivar type: The type of the resource group. - :vartype type: str - :param properties: - :type properties: - ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupProperties - :param location: Required. The location of the resource group. It cannot - be changed after the resource group has been created. It must be one of - the supported Azure locations. - :type location: str - :param managed_by: The ID of the resource that manages this resource - group. - :type managed_by: str - :param tags: The tags attached to the resource group. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, - 'location': {'key': 'location', 'type': 'str'}, - 'managed_by': {'key': 'managedBy', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: - super(ResourceGroup, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.properties = properties - self.location = location - self.managed_by = managed_by - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_error_with_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_error_with_details.py deleted file mode 100644 index b1a16311ea8a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_error_with_details.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """The detailed error message of resource management. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs): - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_error_with_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_error_with_details_py3.py deleted file mode 100644 index 82c79cfe5366..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_management_error_with_details_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceManagementErrorWithDetails(Model): - """The detailed error message of resource management. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code returned when exporting the template. - :vartype code: str - :ivar message: The error message describing the export error. - :vartype message: str - :ivar target: The target of the error. - :vartype target: str - :ivar details: Validation error. - :vartype details: - list[~azure.mgmt.resource.resources.v2018_05_01.models.ResourceManagementErrorWithDetails] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'details': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, - } - - def __init__(self, **kwargs) -> None: - super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.details = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_provider_operation_display_properties.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_provider_operation_display_properties.py deleted file mode 100644 index 975778dcb9c9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_provider_operation_display_properties.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Resource provider operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = kwargs.get('publisher', None) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_provider_operation_display_properties_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_provider_operation_display_properties_py3.py deleted file mode 100644 index 853e93d8a01b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_provider_operation_display_properties_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceProviderOperationDisplayProperties(Model): - """Resource provider operation's display properties. - - :param publisher: Operation description. - :type publisher: str - :param provider: Operation provider. - :type provider: str - :param resource: Operation resource. - :type resource: str - :param operation: Resource provider operation. - :type operation: str - :param description: Operation description. - :type description: str - """ - - _attribute_map = { - 'publisher': {'key': 'publisher', 'type': 'str'}, - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) - self.publisher = publisher - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_py3.py deleted file mode 100644 index 0b12546aafd3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resource_py3.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Specified resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource ID - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resources_move_info.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resources_move_info.py deleted file mode 100644 index edf946d7076b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resources_move_info.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = kwargs.get('resources', None) - self.target_resource_group = kwargs.get('target_resource_group', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resources_move_info_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resources_move_info_py3.py deleted file mode 100644 index d10e2558d499..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/resources_move_info_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourcesMoveInfo(Model): - """Parameters of move resources. - - :param resources: The IDs of the resources. - :type resources: list[str] - :param target_resource_group: The target resource group. - :type target_resource_group: str - """ - - _attribute_map = { - 'resources': {'key': 'resources', 'type': '[str]'}, - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - } - - def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: - super(ResourcesMoveInfo, self).__init__(**kwargs) - self.resources = resources - self.target_resource_group = target_resource_group diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sku.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sku.py deleted file mode 100644 index bfcda32477df..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sku.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(Sku, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.tier = kwargs.get('tier', None) - self.size = kwargs.get('size', None) - self.family = kwargs.get('family', None) - self.model = kwargs.get('model', None) - self.capacity = kwargs.get('capacity', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sku_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sku_py3.py deleted file mode 100644 index 676f1d770b79..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sku_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """SKU for the resource. - - :param name: The SKU name. - :type name: str - :param tier: The SKU tier. - :type tier: str - :param size: The SKU size. - :type size: str - :param family: The SKU family. - :type family: str - :param model: The SKU model. - :type model: str - :param capacity: The SKU capacity. - :type capacity: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'str'}, - 'family': {'key': 'family', 'type': 'str'}, - 'model': {'key': 'model', 'type': 'str'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = tier - self.size = size - self.family = family - self.model = model - self.capacity = capacity diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sub_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sub_resource.py deleted file mode 100644 index ca48705cc825..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sub_resource.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Sub-resource. - - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sub_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sub_resource_py3.py deleted file mode 100644 index b2d0251b79df..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/sub_resource_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """Sub-resource. - - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_count.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_count.py deleted file mode 100644 index a5eeb6b38cf8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_count.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(TagCount, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.value = kwargs.get('value', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_count_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_count_py3.py deleted file mode 100644 index 53c80f63fdb3..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_count_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagCount(Model): - """Tag count. - - :param type: Type of count. - :type type: str - :param value: Value of count. - :type value: int - """ - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: - super(TagCount, self).__init__(**kwargs) - self.type = type - self.value = value diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details.py deleted file mode 100644 index 86b2b3153e58..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2018_05_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, **kwargs): - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = kwargs.get('tag_name', None) - self.count = kwargs.get('count', None) - self.values = kwargs.get('values', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details_paged.py deleted file mode 100644 index 90602cbf0815..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class TagDetailsPaged(Paged): - """ - A paging container for iterating over a list of :class:`TagDetails ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TagDetails]'} - } - - def __init__(self, *args, **kwargs): - - super(TagDetailsPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details_py3.py deleted file mode 100644 index 8393a62b467e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_details_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagDetails(Model): - """Tag details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_name: The tag name. - :type tag_name: str - :param count: The total number of resources that use the resource tag. - When a tag is initially created and has no associated resources, the value - is 0. - :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount - :param values: The list of tag values. - :type values: - list[~azure.mgmt.resource.resources.v2018_05_01.models.TagValue] - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_name': {'key': 'tagName', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - 'values': {'key': 'values', 'type': '[TagValue]'}, - } - - def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: - super(TagDetails, self).__init__(**kwargs) - self.id = None - self.tag_name = tag_name - self.count = count - self.values = values diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_value.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_value.py deleted file mode 100644 index fa304cb38711..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_value.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, **kwargs): - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = kwargs.get('tag_value', None) - self.count = kwargs.get('count', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_value_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_value_py3.py deleted file mode 100644 index 59f916db8888..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/tag_value_py3.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TagValue(Model): - """Tag information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The tag ID. - :vartype id: str - :param tag_value: The tag value. - :type tag_value: str - :param count: The tag value count. - :type count: ~azure.mgmt.resource.resources.v2018_05_01.models.TagCount - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tag_value': {'key': 'tagValue', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'TagCount'}, - } - - def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: - super(TagValue, self).__init__(**kwargs) - self.id = None - self.tag_value = tag_value - self.count = count diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/target_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/target_resource.py deleted file mode 100644 index 27d557645e8b..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/target_resource.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TargetResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.resource_name = kwargs.get('resource_name', None) - self.resource_type = kwargs.get('resource_type', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/target_resource_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/target_resource_py3.py deleted file mode 100644 index 933347cec8f8..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/target_resource_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TargetResource(Model): - """Target resource. - - :param id: The ID of the resource. - :type id: str - :param resource_name: The name of the resource. - :type resource_name: str - :param resource_type: The type of the resource. - :type resource_type: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: - super(TargetResource, self).__init__(**kwargs) - self.id = id - self.resource_name = resource_name - self.resource_type = resource_type diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/template_link.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/template_link.py deleted file mode 100644 index 634095bb9754..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/template_link.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TemplateLink, self).__init__(**kwargs) - self.uri = kwargs.get('uri', None) - self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/template_link_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/template_link_py3.py deleted file mode 100644 index 00f2597ccd98..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/models/template_link_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TemplateLink(Model): - """Entity representing the reference to the template. - - All required parameters must be populated in order to send to Azure. - - :param uri: Required. The URI of the template to deploy. - :type uri: str - :param content_version: If included, must match the ContentVersion in the - template. - :type content_version: str - """ - - _validation = { - 'uri': {'required': True}, - } - - _attribute_map = { - 'uri': {'key': 'uri', 'type': 'str'}, - 'content_version': {'key': 'contentVersion', 'type': 'str'}, - } - - def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: - super(TemplateLink, self).__init__(**kwargs) - self.uri = uri - self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/__init__.py index 2276b11c175a..41027cf11028 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/__init__.py @@ -9,13 +9,13 @@ # regenerated. # -------------------------------------------------------------------------- -from .operations import Operations -from .deployments_operations import DeploymentsOperations -from .providers_operations import ProvidersOperations -from .resources_operations import ResourcesOperations -from .resource_groups_operations import ResourceGroupsOperations -from .tags_operations import TagsOperations -from .deployment_operations import DeploymentOperations +from ._operations import Operations +from ._deployments_operations import DeploymentsOperations +from ._providers_operations import ProvidersOperations +from ._resources_operations import ResourcesOperations +from ._resource_groups_operations import ResourceGroupsOperations +from ._tags_operations import TagsOperations +from ._deployment_operations import DeploymentOperations __all__ = [ 'Operations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/deployment_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployment_operations.py similarity index 95% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/deployment_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployment_operations.py index 58d056d7682e..123030099d95 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/deployment_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployment_operations.py @@ -19,6 +19,8 @@ class DeploymentOperations(object): """DeploymentOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -89,7 +91,6 @@ def get_at_subscription_scope( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentOperation', response) @@ -119,8 +120,7 @@ def list_at_subscription_scope( ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_subscription_scope.metadata['url'] @@ -152,6 +152,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -162,12 +167,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations'} @@ -228,7 +231,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentOperation', response) @@ -261,8 +263,7 @@ def list( ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentOperation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -295,6 +296,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -305,12 +311,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployments_operations.py similarity index 98% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/deployments_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployments_operations.py index 79b2fd90cd45..1d83f0280f43 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/deployments_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_deployments_operations.py @@ -21,6 +21,8 @@ class DeploymentsOperations(object): """DeploymentsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -333,7 +335,6 @@ def get_at_subscription_scope( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExtended', response) @@ -461,7 +462,6 @@ def validate_at_subscription_scope( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentValidateResult', response) if response.status_code == 400: @@ -524,7 +524,6 @@ def export_template_at_subscription_scope( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExportResult', response) @@ -555,8 +554,7 @@ def list_at_subscription_scope( ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentExtended] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_at_subscription_scope.metadata['url'] @@ -589,6 +587,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -599,12 +602,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/'} @@ -923,7 +924,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExtended', response) @@ -1059,7 +1059,6 @@ def validate( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentValidateResult', response) if response.status_code == 400: @@ -1126,7 +1125,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DeploymentExportResult', response) @@ -1160,8 +1158,7 @@ def list_by_resource_group( ~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2018_05_01.models.DeploymentExtended] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -1195,6 +1192,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -1205,12 +1207,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_operations.py similarity index 90% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_operations.py index 606acfd13829..8cade6551b72 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_operations.py @@ -19,6 +19,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.resource.resources.v2018_05_01.models.OperationPaged[~azure.mgmt.resource.resources.v2018_05_01.models.Operation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.Resources/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_providers_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/providers_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_providers_operations.py index 1fb8b5429b35..5e9519eff351 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/providers_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_providers_operations.py @@ -19,6 +19,8 @@ class ProvidersOperations(object): """ProvidersOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -86,7 +88,6 @@ def unregister( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -146,7 +147,6 @@ def register( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) @@ -179,8 +179,7 @@ def list( ~azure.mgmt.resource.resources.v2018_05_01.models.ProviderPaged[~azure.mgmt.resource.resources.v2018_05_01.models.Provider] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -213,6 +212,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -223,12 +227,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} @@ -287,7 +289,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Provider', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resource_groups_operations.py similarity index 96% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/resource_groups_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resource_groups_operations.py index 1bfec99bf6d3..acd291a21793 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/resource_groups_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resource_groups_operations.py @@ -21,6 +21,8 @@ class ResourceGroupsOperations(object): """ResourceGroupsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -152,7 +154,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) if response.status_code == 201: @@ -295,7 +296,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -368,7 +368,6 @@ def update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroup', response) @@ -386,13 +385,13 @@ def export_template( :param resource_group_name: The name of the resource group to export as a template. :type resource_group_name: str - :param resources: The IDs of the resources. The only supported string - currently is '*' (all resources). Future updates will support - exporting specific resources. + :param resources: The IDs of the resources to filter the export by. To + export all resources, supply an array with single entry '*'. :type resources: list[str] - :param options: The export template options. Supported values include - 'IncludeParameterDefaultValue', 'IncludeComments' or - 'IncludeParameterDefaultValue, IncludeComments + :param options: The export template options. A CSV-formatted list + containing zero or more of the following: + 'IncludeParameterDefaultValue', 'IncludeComments', + 'SkipResourceNameParameterization', 'SkipAllParameterization' :type options: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -443,7 +442,6 @@ def export_template( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ResourceGroupExportResult', response) @@ -475,8 +473,7 @@ def list( ~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroupPaged[~azure.mgmt.resource.resources.v2018_05_01.models.ResourceGroup] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -509,6 +506,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -519,12 +521,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resources_operations.py similarity index 99% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/resources_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resources_operations.py index e8c1a037ea81..f848d737bd5c 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/resources_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_resources_operations.py @@ -21,6 +21,8 @@ class ResourcesOperations(object): """ResourcesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -82,8 +84,7 @@ def list_by_resource_group( ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -119,6 +120,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -129,12 +135,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} @@ -370,8 +374,7 @@ def list( ~azure.mgmt.resource.resources.v2018_05_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2018_05_01.models.GenericResource] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -406,6 +409,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -416,12 +424,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} @@ -894,7 +900,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) @@ -1295,7 +1300,6 @@ def get_by_id( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GenericResource', response) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_tags_operations.py similarity index 97% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/tags_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_tags_operations.py index b8ca76185c60..3dc2b1b0b9d6 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/tags_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2018_05_01/operations/_tags_operations.py @@ -19,6 +19,8 @@ class TagsOperations(object): """TagsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -141,7 +143,6 @@ def create_or_update_value( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagValue', response) if response.status_code == 201: @@ -206,7 +207,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('TagDetails', response) if response.status_code == 201: @@ -287,8 +287,7 @@ def list( ~azure.mgmt.resource.resources.v2018_05_01.models.TagDetailsPaged[~azure.mgmt.resource.resources.v2018_05_01.models.TagDetails] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -317,6 +316,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -327,12 +331,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sub_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/__init__.py similarity index 58% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sub_resource.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/__init__.py index 2c8b30771873..68bc897193ac 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_09_01/models/sub_resource.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/__init__.py @@ -9,20 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from ._configuration import ResourceManagementClientConfiguration +from ._resource_management_client import ResourceManagementClient +__all__ = ['ResourceManagementClient', 'ResourceManagementClientConfiguration'] +from .version import VERSION -class SubResource(Model): - """SubResource. +__version__ = VERSION - :param id: Resource ID - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_configuration.py new file mode 100644 index 000000000000..3b326f792363 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_configuration.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class ResourceManagementClientConfiguration(AzureConfiguration): + """Configuration for ResourceManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ResourceManagementClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_resource_management_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_resource_management_client.py new file mode 100644 index 000000000000..17733bac95da --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/_resource_management_client.py @@ -0,0 +1,79 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer + +from ._configuration import ResourceManagementClientConfiguration +from .operations import Operations +from .operations import DeploymentsOperations +from .operations import ProvidersOperations +from .operations import ResourcesOperations +from .operations import ResourceGroupsOperations +from .operations import TagsOperations +from .operations import DeploymentOperations +from . import models + + +class ResourceManagementClient(SDKClient): + """Provides operations for working with resources and resource groups. + + :ivar config: Configuration for client. + :vartype config: ResourceManagementClientConfiguration + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.resource.resources.v2019_05_01.operations.Operations + :ivar deployments: Deployments operations + :vartype deployments: azure.mgmt.resource.resources.v2019_05_01.operations.DeploymentsOperations + :ivar providers: Providers operations + :vartype providers: azure.mgmt.resource.resources.v2019_05_01.operations.ProvidersOperations + :ivar resources: Resources operations + :vartype resources: azure.mgmt.resource.resources.v2019_05_01.operations.ResourcesOperations + :ivar resource_groups: ResourceGroups operations + :vartype resource_groups: azure.mgmt.resource.resources.v2019_05_01.operations.ResourceGroupsOperations + :ivar tags: Tags operations + :vartype tags: azure.mgmt.resource.resources.v2019_05_01.operations.TagsOperations + :ivar deployment_operations: DeploymentOperations operations + :vartype deployment_operations: azure.mgmt.resource.resources.v2019_05_01.operations.DeploymentOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The ID of the target subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = ResourceManagementClientConfiguration(credentials, subscription_id, base_url) + super(ResourceManagementClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2019-05-01' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.deployments = DeploymentsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.providers = ProvidersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.resources = ResourcesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.resource_groups = ResourceGroupsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.tags = TagsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.deployment_operations = DeploymentOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/__init__.py new file mode 100644 index 000000000000..86c5eeb70c49 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/__init__.py @@ -0,0 +1,170 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from ._models_py3 import AliasPathType + from ._models_py3 import AliasType + from ._models_py3 import BasicDependency + from ._models_py3 import DebugSetting + from ._models_py3 import Dependency + from ._models_py3 import Deployment + from ._models_py3 import DeploymentExportResult + from ._models_py3 import DeploymentExtended + from ._models_py3 import DeploymentExtendedFilter + from ._models_py3 import DeploymentOperation + from ._models_py3 import DeploymentOperationProperties + from ._models_py3 import DeploymentProperties + from ._models_py3 import DeploymentPropertiesExtended + from ._models_py3 import DeploymentValidateResult + from ._models_py3 import ExportTemplateRequest + from ._models_py3 import GenericResource + from ._models_py3 import GenericResourceFilter + from ._models_py3 import HttpMessage + from ._models_py3 import Identity + from ._models_py3 import IdentityUserAssignedIdentitiesValue + from ._models_py3 import OnErrorDeployment + from ._models_py3 import OnErrorDeploymentExtended + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import ParametersLink + from ._models_py3 import Plan + from ._models_py3 import Provider + from ._models_py3 import ProviderResourceType + from ._models_py3 import Resource + from ._models_py3 import ResourceGroup + from ._models_py3 import ResourceGroupExportResult + from ._models_py3 import ResourceGroupFilter + from ._models_py3 import ResourceGroupPatchable + from ._models_py3 import ResourceGroupProperties + from ._models_py3 import ResourceManagementErrorWithDetails + from ._models_py3 import ResourceProviderOperationDisplayProperties + from ._models_py3 import ResourcesMoveInfo + from ._models_py3 import Sku + from ._models_py3 import SubResource + from ._models_py3 import TagCount + from ._models_py3 import TagDetails + from ._models_py3 import TagValue + from ._models_py3 import TargetResource + from ._models_py3 import TemplateLink +except (SyntaxError, ImportError): + from ._models import AliasPathType + from ._models import AliasType + from ._models import BasicDependency + from ._models import DebugSetting + from ._models import Dependency + from ._models import Deployment + from ._models import DeploymentExportResult + from ._models import DeploymentExtended + from ._models import DeploymentExtendedFilter + from ._models import DeploymentOperation + from ._models import DeploymentOperationProperties + from ._models import DeploymentProperties + from ._models import DeploymentPropertiesExtended + from ._models import DeploymentValidateResult + from ._models import ExportTemplateRequest + from ._models import GenericResource + from ._models import GenericResourceFilter + from ._models import HttpMessage + from ._models import Identity + from ._models import IdentityUserAssignedIdentitiesValue + from ._models import OnErrorDeployment + from ._models import OnErrorDeploymentExtended + from ._models import Operation + from ._models import OperationDisplay + from ._models import ParametersLink + from ._models import Plan + from ._models import Provider + from ._models import ProviderResourceType + from ._models import Resource + from ._models import ResourceGroup + from ._models import ResourceGroupExportResult + from ._models import ResourceGroupFilter + from ._models import ResourceGroupPatchable + from ._models import ResourceGroupProperties + from ._models import ResourceManagementErrorWithDetails + from ._models import ResourceProviderOperationDisplayProperties + from ._models import ResourcesMoveInfo + from ._models import Sku + from ._models import SubResource + from ._models import TagCount + from ._models import TagDetails + from ._models import TagValue + from ._models import TargetResource + from ._models import TemplateLink +from ._paged_models import DeploymentExtendedPaged +from ._paged_models import DeploymentOperationPaged +from ._paged_models import GenericResourcePaged +from ._paged_models import OperationPaged +from ._paged_models import ProviderPaged +from ._paged_models import ResourceGroupPaged +from ._paged_models import TagDetailsPaged +from ._resource_management_client_enums import ( + DeploymentMode, + OnErrorDeploymentType, + ResourceIdentityType, +) + +__all__ = [ + 'AliasPathType', + 'AliasType', + 'BasicDependency', + 'DebugSetting', + 'Dependency', + 'Deployment', + 'DeploymentExportResult', + 'DeploymentExtended', + 'DeploymentExtendedFilter', + 'DeploymentOperation', + 'DeploymentOperationProperties', + 'DeploymentProperties', + 'DeploymentPropertiesExtended', + 'DeploymentValidateResult', + 'ExportTemplateRequest', + 'GenericResource', + 'GenericResourceFilter', + 'HttpMessage', + 'Identity', + 'IdentityUserAssignedIdentitiesValue', + 'OnErrorDeployment', + 'OnErrorDeploymentExtended', + 'Operation', + 'OperationDisplay', + 'ParametersLink', + 'Plan', + 'Provider', + 'ProviderResourceType', + 'Resource', + 'ResourceGroup', + 'ResourceGroupExportResult', + 'ResourceGroupFilter', + 'ResourceGroupPatchable', + 'ResourceGroupProperties', + 'ResourceManagementErrorWithDetails', + 'ResourceProviderOperationDisplayProperties', + 'ResourcesMoveInfo', + 'Sku', + 'SubResource', + 'TagCount', + 'TagDetails', + 'TagValue', + 'TargetResource', + 'TemplateLink', + 'OperationPaged', + 'DeploymentExtendedPaged', + 'ProviderPaged', + 'GenericResourcePaged', + 'ResourceGroupPaged', + 'TagDetailsPaged', + 'DeploymentOperationPaged', + 'DeploymentMode', + 'OnErrorDeploymentType', + 'ResourceIdentityType', +] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models.py new file mode 100644 index 000000000000..f462889c1d7e --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models.py @@ -0,0 +1,1437 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AliasPathType, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.api_versions = kwargs.get('api_versions', None) + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2019_05_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, **kwargs): + super(AliasType, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.paths = kwargs.get('paths', None) + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BasicDependency, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """The debug setting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = kwargs.get('detail_level', None) + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2019_05_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dependency, self).__init__(**kwargs) + self.depends_on = kwargs.get('depends_on', None) + self.id = kwargs.get('id', None) + self.resource_type = kwargs.get('resource_type', None) + self.resource_name = kwargs.get('resource_name', None) + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param location: The location to store the deployment data. + :type location: str + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, **kwargs): + super(Deployment, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the deployment. + :vartype id: str + :ivar name: The name of the deployment. + :vartype name: str + :ivar type: The type of the deployment. + :vartype type: str + :param location: the location of the deployment. + :type location: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.properties = kwargs.get('properties', None) + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = kwargs.get('properties', None) + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar duration: The duration of the operation. + :vartype duration: str + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2019_05_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2019_05_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2019_05_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'duration': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'str'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs): + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.duration = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2019_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeployment + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, + } + + def __init__(self, **kwargs): + super(DeploymentProperties, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + self.on_error_deployment = kwargs.get('on_error_deployment', None) + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :ivar duration: The duration of the template deployment. + :vartype duration: str + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2019_05_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2019_05_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2019_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeploymentExtended + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'duration': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.duration = None + self.outputs = kwargs.get('outputs', None) + self.providers = kwargs.get('providers', None) + self.dependencies = kwargs.get('dependencies', None) + self.template = kwargs.get('template', None) + self.template_link = kwargs.get('template_link', None) + self.parameters = kwargs.get('parameters', None) + self.parameters_link = kwargs.get('parameters_link', None) + self.mode = kwargs.get('mode', None) + self.debug_setting = kwargs.get('debug_setting', None) + self.on_error_deployment = kwargs.get('on_error_deployment', None) + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, **kwargs): + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + self.properties = kwargs.get('properties', None) + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources. The only supported string + currently is '*' (all resources). Future updates will support exporting + specific resources. + :type resources: list[str] + :param options: The export template options. Supported values include + 'IncludeParameterDefaultValue', 'IncludeComments' or + 'IncludeParameterDefaultValue, IncludeComments + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.options = kwargs.get('options', None) + + +class Resource(Model): + """Specified resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2019_05_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2019_05_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2019_05_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, **kwargs): + super(GenericResource, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.properties = kwargs.get('properties', None) + self.kind = kwargs.get('kind', None) + self.managed_by = kwargs.get('managed_by', None) + self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.tagname = kwargs.get('tagname', None) + self.tagvalue = kwargs.get('tagvalue', None) + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(HttpMessage, self).__init__(**kwargs) + self.content = kwargs.get('content', None) + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the resource. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.resource.resources.v2019_05_01.models.IdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + +class IdentityUserAssignedIdentitiesValue(Model): + """IdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class OnErrorDeployment(Model): + """Deployment on error behavior. + + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OnErrorDeployment, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.deployment_name = kwargs.get('deployment_name', None) + + +class OnErrorDeploymentExtended(Model): + """Deployment on error behavior with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning for the on error + deployment. + :vartype provisioning_state: str + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OnErrorDeploymentExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.type = kwargs.get('type', None) + self.deployment_name = kwargs.get('deployment_name', None) + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.resources.v2019_05_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ParametersLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Plan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.publisher = kwargs.get('publisher', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + self.version = kwargs.get('version', None) + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the resource provider. + :vartype registration_state: str + :ivar registration_policy: The registration policy of the resource + provider. + :vartype registration_policy: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2019_05_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'registration_policy': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'registration_policy': {'key': 'registrationPolicy', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, **kwargs): + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = kwargs.get('namespace', None) + self.registration_state = None + self.registration_policy = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2019_05_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param capabilities: The additional capabilities offered by this resource + type. + :type capabilities: str + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'capabilities': {'key': 'capabilities', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.locations = kwargs.get('locations', None) + self.aliases = kwargs.get('aliases', None) + self.api_versions = kwargs.get('api_versions', None) + self.capabilities = kwargs.get('capabilities', None) + self.properties = kwargs.get('properties', None) + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :ivar name: The name of the resource group. + :vartype name: str + :ivar type: The type of the resource group. + :vartype type: str + :param properties: The resource group properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.properties = kwargs.get('properties', None) + self.location = kwargs.get('location', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = kwargs.get('template', None) + self.error = kwargs.get('error', None) + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = kwargs.get('tag_name', None) + self.tag_value = kwargs.get('tag_value', None) + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: The resource group properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) + self.managed_by = kwargs.get('managed_by', None) + self.tags = kwargs.get('tags', None) + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs): + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Resource provider operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = kwargs.get('publisher', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = kwargs.get('resources', None) + self.target_resource_group = kwargs.get('target_resource_group', None) + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + self.model = kwargs.get('model', None) + self.capacity = kwargs.get('capacity', None) + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(TagCount, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.value = kwargs.get('value', None) + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2019_05_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2019_05_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, **kwargs): + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = kwargs.get('tag_name', None) + self.count = kwargs.get('count', None) + self.values = kwargs.get('values', None) + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2019_05_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, **kwargs): + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = kwargs.get('tag_value', None) + self.count = kwargs.get('count', None) + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TargetResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.resource_name = kwargs.get('resource_name', None) + self.resource_type = kwargs.get('resource_type', None) + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TemplateLink, self).__init__(**kwargs) + self.uri = kwargs.get('uri', None) + self.content_version = kwargs.get('content_version', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models_py3.py new file mode 100644 index 000000000000..cf7b3f385174 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_models_py3.py @@ -0,0 +1,1437 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AliasPathType(Model): + """The type of the paths for alias. . + + :param path: The path of an alias. + :type path: str + :param api_versions: The API versions. + :type api_versions: list[str] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + } + + def __init__(self, *, path: str=None, api_versions=None, **kwargs) -> None: + super(AliasPathType, self).__init__(**kwargs) + self.path = path + self.api_versions = api_versions + + +class AliasType(Model): + """The alias type. . + + :param name: The alias name. + :type name: str + :param paths: The paths for an alias. + :type paths: + list[~azure.mgmt.resource.resources.v2019_05_01.models.AliasPathType] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'paths': {'key': 'paths', 'type': '[AliasPathType]'}, + } + + def __init__(self, *, name: str=None, paths=None, **kwargs) -> None: + super(AliasType, self).__init__(**kwargs) + self.name = name + self.paths = paths + + +class BasicDependency(Model): + """Deployment dependency information. + + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(BasicDependency, self).__init__(**kwargs) + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class DebugSetting(Model): + """The debug setting. + + :param detail_level: Specifies the type of information to log for + debugging. The permitted values are none, requestContent, responseContent, + or both requestContent and responseContent separated by a comma. The + default is none. When setting this value, carefully consider the type of + information you are passing in during deployment. By logging information + about the request or response, you could potentially expose sensitive data + that is retrieved through the deployment operations. + :type detail_level: str + """ + + _attribute_map = { + 'detail_level': {'key': 'detailLevel', 'type': 'str'}, + } + + def __init__(self, *, detail_level: str=None, **kwargs) -> None: + super(DebugSetting, self).__init__(**kwargs) + self.detail_level = detail_level + + +class Dependency(Model): + """Deployment dependency information. + + :param depends_on: The list of dependencies. + :type depends_on: + list[~azure.mgmt.resource.resources.v2019_05_01.models.BasicDependency] + :param id: The ID of the dependency. + :type id: str + :param resource_type: The dependency resource type. + :type resource_type: str + :param resource_name: The dependency resource name. + :type resource_name: str + """ + + _attribute_map = { + 'depends_on': {'key': 'dependsOn', 'type': '[BasicDependency]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + } + + def __init__(self, *, depends_on=None, id: str=None, resource_type: str=None, resource_name: str=None, **kwargs) -> None: + super(Dependency, self).__init__(**kwargs) + self.depends_on = depends_on + self.id = id + self.resource_type = resource_type + self.resource_name = resource_name + + +class Deployment(Model): + """Deployment operation parameters. + + All required parameters must be populated in order to send to Azure. + + :param location: The location to store the deployment data. + :type location: str + :param properties: Required. The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + """ + + _validation = { + 'properties': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentProperties'}, + } + + def __init__(self, *, properties, location: str=None, **kwargs) -> None: + super(Deployment, self).__init__(**kwargs) + self.location = location + self.properties = properties + + +class DeploymentExportResult(Model): + """The deployment export result. . + + :param template: The template content. + :type template: object + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + } + + def __init__(self, *, template=None, **kwargs) -> None: + super(DeploymentExportResult, self).__init__(**kwargs) + self.template = template + + +class DeploymentExtended(Model): + """Deployment information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the deployment. + :vartype id: str + :ivar name: The name of the deployment. + :vartype name: str + :ivar type: The type of the deployment. + :vartype type: str + :param location: the location of the deployment. + :type location: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentPropertiesExtended + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, location: str=None, properties=None, **kwargs) -> None: + super(DeploymentExtended, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.properties = properties + + +class DeploymentExtendedFilter(Model): + """Deployment filter. + + :param provisioning_state: The provisioning state. + :type provisioning_state: str + """ + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, provisioning_state: str=None, **kwargs) -> None: + super(DeploymentExtendedFilter, self).__init__(**kwargs) + self.provisioning_state = provisioning_state + + +class DeploymentOperation(Model): + """Deployment operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Full deployment operation ID. + :vartype id: str + :ivar operation_id: Deployment operation ID. + :vartype operation_id: str + :param properties: Deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperationProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'operation_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'DeploymentOperationProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(DeploymentOperation, self).__init__(**kwargs) + self.id = None + self.operation_id = None + self.properties = properties + + +class DeploymentOperationProperties(Model): + """Deployment operation properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar timestamp: The date and time of the operation. + :vartype timestamp: datetime + :ivar duration: The duration of the operation. + :vartype duration: str + :ivar service_request_id: Deployment operation service request id. + :vartype service_request_id: str + :ivar status_code: Operation status code. + :vartype status_code: str + :ivar status_message: Operation status message. + :vartype status_message: object + :ivar target_resource: The target resource. + :vartype target_resource: + ~azure.mgmt.resource.resources.v2019_05_01.models.TargetResource + :ivar request: The HTTP request message. + :vartype request: + ~azure.mgmt.resource.resources.v2019_05_01.models.HttpMessage + :ivar response: The HTTP response message. + :vartype response: + ~azure.mgmt.resource.resources.v2019_05_01.models.HttpMessage + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'duration': {'readonly': True}, + 'service_request_id': {'readonly': True}, + 'status_code': {'readonly': True}, + 'status_message': {'readonly': True}, + 'target_resource': {'readonly': True}, + 'request': {'readonly': True}, + 'response': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'str'}, + 'service_request_id': {'key': 'serviceRequestId', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'object'}, + 'target_resource': {'key': 'targetResource', 'type': 'TargetResource'}, + 'request': {'key': 'request', 'type': 'HttpMessage'}, + 'response': {'key': 'response', 'type': 'HttpMessage'}, + } + + def __init__(self, **kwargs) -> None: + super(DeploymentOperationProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.timestamp = None + self.duration = None + self.service_request_id = None + self.status_code = None + self.status_message = None + self.target_resource = None + self.request = None + self.response = None + + +class DeploymentProperties(Model): + """Deployment properties. + + All required parameters must be populated in order to send to Azure. + + :param template: The template content. You use this element when you want + to pass the template syntax directly in the request rather than link to an + existing template. It can be a JObject or well-formed JSON string. Use + either the templateLink property or the template property, but not both. + :type template: object + :param template_link: The URI of the template. Use either the templateLink + property or the template property, but not both. + :type template_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink + :param parameters: Name and value pairs that define the deployment + parameters for the template. You use this element when you want to provide + the parameter values directly in the request rather than link to an + existing parameter file. Use either the parametersLink property or the + parameters property, but not both. It can be a JObject or a well formed + JSON string. + :type parameters: object + :param parameters_link: The URI of parameters file. You use this element + to link to an existing parameters file. Use either the parametersLink + property or the parameters property, but not both. + :type parameters_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.ParametersLink + :param mode: Required. The mode that is used to deploy resources. This + value can be either Incremental or Complete. In Incremental mode, + resources are deployed without deleting existing resources that are not + included in the template. In Complete mode, resources are deployed and + existing resources in the resource group that are not included in the + template are deleted. Be careful when using Complete mode as you may + unintentionally delete resources. Possible values include: 'Incremental', + 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2019_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeployment + """ + + _validation = { + 'mode': {'required': True}, + } + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeployment'}, + } + + def __init__(self, *, mode, template=None, template_link=None, parameters=None, parameters_link=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: + super(DeploymentProperties, self).__init__(**kwargs) + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + self.on_error_deployment = on_error_deployment + + +class DeploymentPropertiesExtended(Model): + """Deployment properties with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning. + :vartype provisioning_state: str + :ivar correlation_id: The correlation ID of the deployment. + :vartype correlation_id: str + :ivar timestamp: The timestamp of the template deployment. + :vartype timestamp: datetime + :ivar duration: The duration of the template deployment. + :vartype duration: str + :param outputs: Key/value pairs that represent deployment output. + :type outputs: object + :param providers: The list of resource providers needed for the + deployment. + :type providers: + list[~azure.mgmt.resource.resources.v2019_05_01.models.Provider] + :param dependencies: The list of deployment dependencies. + :type dependencies: + list[~azure.mgmt.resource.resources.v2019_05_01.models.Dependency] + :param template: The template content. Use only one of Template or + TemplateLink. + :type template: object + :param template_link: The URI referencing the template. Use only one of + Template or TemplateLink. + :type template_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.TemplateLink + :param parameters: Deployment parameters. Use only one of Parameters or + ParametersLink. + :type parameters: object + :param parameters_link: The URI referencing the parameters. Use only one + of Parameters or ParametersLink. + :type parameters_link: + ~azure.mgmt.resource.resources.v2019_05_01.models.ParametersLink + :param mode: The deployment mode. Possible values are Incremental and + Complete. Possible values include: 'Incremental', 'Complete' + :type mode: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentMode + :param debug_setting: The debug setting of the deployment. + :type debug_setting: + ~azure.mgmt.resource.resources.v2019_05_01.models.DebugSetting + :param on_error_deployment: The deployment on error behavior. + :type on_error_deployment: + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeploymentExtended + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'timestamp': {'readonly': True}, + 'duration': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, + 'duration': {'key': 'duration', 'type': 'str'}, + 'outputs': {'key': 'outputs', 'type': 'object'}, + 'providers': {'key': 'providers', 'type': '[Provider]'}, + 'dependencies': {'key': 'dependencies', 'type': '[Dependency]'}, + 'template': {'key': 'template', 'type': 'object'}, + 'template_link': {'key': 'templateLink', 'type': 'TemplateLink'}, + 'parameters': {'key': 'parameters', 'type': 'object'}, + 'parameters_link': {'key': 'parametersLink', 'type': 'ParametersLink'}, + 'mode': {'key': 'mode', 'type': 'DeploymentMode'}, + 'debug_setting': {'key': 'debugSetting', 'type': 'DebugSetting'}, + 'on_error_deployment': {'key': 'onErrorDeployment', 'type': 'OnErrorDeploymentExtended'}, + } + + def __init__(self, *, outputs=None, providers=None, dependencies=None, template=None, template_link=None, parameters=None, parameters_link=None, mode=None, debug_setting=None, on_error_deployment=None, **kwargs) -> None: + super(DeploymentPropertiesExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.correlation_id = None + self.timestamp = None + self.duration = None + self.outputs = outputs + self.providers = providers + self.dependencies = dependencies + self.template = template + self.template_link = template_link + self.parameters = parameters + self.parameters_link = parameters_link + self.mode = mode + self.debug_setting = debug_setting + self.on_error_deployment = on_error_deployment + + +class DeploymentValidateResult(Model): + """Information from validate template deployment response. + + :param error: Validation error. + :type error: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails + :param properties: The template deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentPropertiesExtended + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, + } + + def __init__(self, *, error=None, properties=None, **kwargs) -> None: + super(DeploymentValidateResult, self).__init__(**kwargs) + self.error = error + self.properties = properties + + +class ExportTemplateRequest(Model): + """Export resource group template request parameters. + + :param resources: The IDs of the resources. The only supported string + currently is '*' (all resources). Future updates will support exporting + specific resources. + :type resources: list[str] + :param options: The export template options. Supported values include + 'IncludeParameterDefaultValue', 'IncludeComments' or + 'IncludeParameterDefaultValue, IncludeComments + :type options: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'options': {'key': 'options', 'type': 'str'}, + } + + def __init__(self, *, resources=None, options: str=None, **kwargs) -> None: + super(ExportTemplateRequest, self).__init__(**kwargs) + self.resources = resources + self.options = options + + +class Resource(Model): + """Specified resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + + +class GenericResource(Resource): + """Resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: The plan of the resource. + :type plan: ~azure.mgmt.resource.resources.v2019_05_01.models.Plan + :param properties: The resource properties. + :type properties: object + :param kind: The kind of the resource. + :type kind: str + :param managed_by: ID of the resource that manages this resource. + :type managed_by: str + :param sku: The SKU of the resource. + :type sku: ~azure.mgmt.resource.resources.v2019_05_01.models.Sku + :param identity: The identity of the resource. + :type identity: ~azure.mgmt.resource.resources.v2019_05_01.models.Identity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'pattern': r'^[-\w\._,\(\)]+$'}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'Plan'}, + 'properties': {'key': 'properties', 'type': 'object'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + } + + def __init__(self, *, location: str=None, tags=None, plan=None, properties=None, kind: str=None, managed_by: str=None, sku=None, identity=None, **kwargs) -> None: + super(GenericResource, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.properties = properties + self.kind = kind + self.managed_by = managed_by + self.sku = sku + self.identity = identity + + +class GenericResourceFilter(Model): + """Resource filter. + + :param resource_type: The resource type. + :type resource_type: str + :param tagname: The tag name. + :type tagname: str + :param tagvalue: The tag value. + :type tagvalue: str + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'tagname': {'key': 'tagname', 'type': 'str'}, + 'tagvalue': {'key': 'tagvalue', 'type': 'str'}, + } + + def __init__(self, *, resource_type: str=None, tagname: str=None, tagvalue: str=None, **kwargs) -> None: + super(GenericResourceFilter, self).__init__(**kwargs) + self.resource_type = resource_type + self.tagname = tagname + self.tagvalue = tagvalue + + +class HttpMessage(Model): + """HTTP message. + + :param content: HTTP message content. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__(self, *, content=None, **kwargs) -> None: + super(HttpMessage, self).__init__(**kwargs) + self.content = content + + +class Identity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: The identity type. Possible values include: 'SystemAssigned', + 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the resource. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.resource.resources.v2019_05_01.models.IdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{IdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities + + +class IdentityUserAssignedIdentitiesValue(Model): + """IdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(IdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class OnErrorDeployment(Model): + """Deployment on error behavior. + + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: + super(OnErrorDeployment, self).__init__(**kwargs) + self.type = type + self.deployment_name = deployment_name + + +class OnErrorDeploymentExtended(Model): + """Deployment on error behavior with additional details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The state of the provisioning for the on error + deployment. + :vartype provisioning_state: str + :param type: The deployment on error behavior type. Possible values are + LastSuccessful and SpecificDeployment. Possible values include: + 'LastSuccessful', 'SpecificDeployment' + :type type: str or + ~azure.mgmt.resource.resources.v2019_05_01.models.OnErrorDeploymentType + :param deployment_name: The deployment to be used on error case. + :type deployment_name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'OnErrorDeploymentType'}, + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + } + + def __init__(self, *, type=None, deployment_name: str=None, **kwargs) -> None: + super(OnErrorDeploymentExtended, self).__init__(**kwargs) + self.provisioning_state = None + self.type = type + self.deployment_name = deployment_name + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.resources.v2019_05_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ParametersLink(Model): + """Entity representing the reference to the deployment parameters. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the parameters file. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(ParametersLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version + + +class Plan(Model): + """Plan for the resource. + + :param name: The plan ID. + :type name: str + :param publisher: The publisher ID. + :type publisher: str + :param product: The offer ID. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param version: The plan's version. + :type version: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, publisher: str=None, product: str=None, promotion_code: str=None, version: str=None, **kwargs) -> None: + super(Plan, self).__init__(**kwargs) + self.name = name + self.publisher = publisher + self.product = product + self.promotion_code = promotion_code + self.version = version + + +class Provider(Model): + """Resource provider information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The provider ID. + :vartype id: str + :param namespace: The namespace of the resource provider. + :type namespace: str + :ivar registration_state: The registration state of the resource provider. + :vartype registration_state: str + :ivar registration_policy: The registration policy of the resource + provider. + :vartype registration_policy: str + :ivar resource_types: The collection of provider resource types. + :vartype resource_types: + list[~azure.mgmt.resource.resources.v2019_05_01.models.ProviderResourceType] + """ + + _validation = { + 'id': {'readonly': True}, + 'registration_state': {'readonly': True}, + 'registration_policy': {'readonly': True}, + 'resource_types': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'registration_state': {'key': 'registrationState', 'type': 'str'}, + 'registration_policy': {'key': 'registrationPolicy', 'type': 'str'}, + 'resource_types': {'key': 'resourceTypes', 'type': '[ProviderResourceType]'}, + } + + def __init__(self, *, namespace: str=None, **kwargs) -> None: + super(Provider, self).__init__(**kwargs) + self.id = None + self.namespace = namespace + self.registration_state = None + self.registration_policy = None + self.resource_types = None + + +class ProviderResourceType(Model): + """Resource type managed by the resource provider. + + :param resource_type: The resource type. + :type resource_type: str + :param locations: The collection of locations where this resource type can + be created. + :type locations: list[str] + :param aliases: The aliases that are supported by this resource type. + :type aliases: + list[~azure.mgmt.resource.resources.v2019_05_01.models.AliasType] + :param api_versions: The API version. + :type api_versions: list[str] + :param capabilities: The additional capabilities offered by this resource + type. + :type capabilities: str + :param properties: The properties. + :type properties: dict[str, str] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'aliases': {'key': 'aliases', 'type': '[AliasType]'}, + 'api_versions': {'key': 'apiVersions', 'type': '[str]'}, + 'capabilities': {'key': 'capabilities', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{str}'}, + } + + def __init__(self, *, resource_type: str=None, locations=None, aliases=None, api_versions=None, capabilities: str=None, properties=None, **kwargs) -> None: + super(ProviderResourceType, self).__init__(**kwargs) + self.resource_type = resource_type + self.locations = locations + self.aliases = aliases + self.api_versions = api_versions + self.capabilities = capabilities + self.properties = properties + + +class ResourceGroup(Model): + """Resource group information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The ID of the resource group. + :vartype id: str + :ivar name: The name of the resource group. + :vartype name: str + :ivar type: The type of the resource group. + :vartype type: str + :param properties: The resource group properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroupProperties + :param location: Required. The location of the resource group. It cannot + be changed after the resource group has been created. It must be one of + the supported Azure locations. + :type location: str + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'location': {'key': 'location', 'type': 'str'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroup, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.properties = properties + self.location = location + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupExportResult(Model): + """Resource group export result. + + :param template: The template content. + :type template: object + :param error: The error. + :type error: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails + """ + + _attribute_map = { + 'template': {'key': 'template', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ResourceManagementErrorWithDetails'}, + } + + def __init__(self, *, template=None, error=None, **kwargs) -> None: + super(ResourceGroupExportResult, self).__init__(**kwargs) + self.template = template + self.error = error + + +class ResourceGroupFilter(Model): + """Resource group filter. + + :param tag_name: The tag name. + :type tag_name: str + :param tag_value: The tag value. + :type tag_value: str + """ + + _attribute_map = { + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + } + + def __init__(self, *, tag_name: str=None, tag_value: str=None, **kwargs) -> None: + super(ResourceGroupFilter, self).__init__(**kwargs) + self.tag_name = tag_name + self.tag_value = tag_value + + +class ResourceGroupPatchable(Model): + """Resource group information. + + :param name: The name of the resource group. + :type name: str + :param properties: The resource group properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroupProperties + :param managed_by: The ID of the resource that manages this resource + group. + :type managed_by: str + :param tags: The tags attached to the resource group. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ResourceGroupProperties'}, + 'managed_by': {'key': 'managedBy', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, name: str=None, properties=None, managed_by: str=None, tags=None, **kwargs) -> None: + super(ResourceGroupPatchable, self).__init__(**kwargs) + self.name = name + self.properties = properties + self.managed_by = managed_by + self.tags = tags + + +class ResourceGroupProperties(Model): + """The resource group properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state. + :vartype provisioning_state: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceGroupProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class ResourceManagementErrorWithDetails(Model): + """The detailed error message of resource management. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code returned when exporting the template. + :vartype code: str + :ivar message: The error message describing the export error. + :vartype message: str + :ivar target: The target of the error. + :vartype target: str + :ivar details: Validation error. + :vartype details: + list[~azure.mgmt.resource.resources.v2019_05_01.models.ResourceManagementErrorWithDetails] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ResourceManagementErrorWithDetails]'}, + } + + def __init__(self, **kwargs) -> None: + super(ResourceManagementErrorWithDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + + +class ResourceProviderOperationDisplayProperties(Model): + """Resource provider operation's display properties. + + :param publisher: Operation description. + :type publisher: str + :param provider: Operation provider. + :type provider: str + :param resource: Operation resource. + :type resource: str + :param operation: Resource provider operation. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'publisher': {'key': 'publisher', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, publisher: str=None, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(ResourceProviderOperationDisplayProperties, self).__init__(**kwargs) + self.publisher = publisher + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class ResourcesMoveInfo(Model): + """Parameters of move resources. + + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + """ + + _attribute_map = { + 'resources': {'key': 'resources', 'type': '[str]'}, + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + } + + def __init__(self, *, resources=None, target_resource_group: str=None, **kwargs) -> None: + super(ResourcesMoveInfo, self).__init__(**kwargs) + self.resources = resources + self.target_resource_group = target_resource_group + + +class Sku(Model): + """SKU for the resource. + + :param name: The SKU name. + :type name: str + :param tier: The SKU tier. + :type tier: str + :param size: The SKU size. + :type size: str + :param family: The SKU family. + :type family: str + :param model: The SKU model. + :type model: str + :param capacity: The SKU capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + 'model': {'key': 'model', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, tier: str=None, size: str=None, family: str=None, model: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.size = size + self.family = family + self.model = model + self.capacity = capacity + + +class SubResource(Model): + """Sub-resource. + + :param id: Resource ID + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id + + +class TagCount(Model): + """Tag count. + + :param type: Type of count. + :type type: str + :param value: Value of count. + :type value: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, *, type: str=None, value: int=None, **kwargs) -> None: + super(TagCount, self).__init__(**kwargs) + self.type = type + self.value = value + + +class TagDetails(Model): + """Tag details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_name: The tag name. + :type tag_name: str + :param count: The total number of resources that use the resource tag. + When a tag is initially created and has no associated resources, the value + is 0. + :type count: ~azure.mgmt.resource.resources.v2019_05_01.models.TagCount + :param values: The list of tag values. + :type values: + list[~azure.mgmt.resource.resources.v2019_05_01.models.TagValue] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_name': {'key': 'tagName', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + 'values': {'key': 'values', 'type': '[TagValue]'}, + } + + def __init__(self, *, tag_name: str=None, count=None, values=None, **kwargs) -> None: + super(TagDetails, self).__init__(**kwargs) + self.id = None + self.tag_name = tag_name + self.count = count + self.values = values + + +class TagValue(Model): + """Tag information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The tag ID. + :vartype id: str + :param tag_value: The tag value. + :type tag_value: str + :param count: The tag value count. + :type count: ~azure.mgmt.resource.resources.v2019_05_01.models.TagCount + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tag_value': {'key': 'tagValue', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'TagCount'}, + } + + def __init__(self, *, tag_value: str=None, count=None, **kwargs) -> None: + super(TagValue, self).__init__(**kwargs) + self.id = None + self.tag_value = tag_value + self.count = count + + +class TargetResource(Model): + """Target resource. + + :param id: The ID of the resource. + :type id: str + :param resource_name: The name of the resource. + :type resource_name: str + :param resource_type: The type of the resource. + :type resource_type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, resource_name: str=None, resource_type: str=None, **kwargs) -> None: + super(TargetResource, self).__init__(**kwargs) + self.id = id + self.resource_name = resource_name + self.resource_type = resource_type + + +class TemplateLink(Model): + """Entity representing the reference to the template. + + All required parameters must be populated in order to send to Azure. + + :param uri: Required. The URI of the template to deploy. + :type uri: str + :param content_version: If included, must match the ContentVersion in the + template. + :type content_version: str + """ + + _validation = { + 'uri': {'required': True}, + } + + _attribute_map = { + 'uri': {'key': 'uri', 'type': 'str'}, + 'content_version': {'key': 'contentVersion', 'type': 'str'}, + } + + def __init__(self, *, uri: str, content_version: str=None, **kwargs) -> None: + super(TemplateLink, self).__init__(**kwargs) + self.uri = uri + self.content_version = content_version diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_paged_models.py new file mode 100644 index 000000000000..d62c78b76495 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_paged_models.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) +class DeploymentExtendedPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentExtended ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentExtended]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentExtendedPaged, self).__init__(*args, **kwargs) +class ProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`Provider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Provider]'} + } + + def __init__(self, *args, **kwargs): + + super(ProviderPaged, self).__init__(*args, **kwargs) +class GenericResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`GenericResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[GenericResource]'} + } + + def __init__(self, *args, **kwargs): + + super(GenericResourcePaged, self).__init__(*args, **kwargs) +class ResourceGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceGroupPaged, self).__init__(*args, **kwargs) +class TagDetailsPaged(Paged): + """ + A paging container for iterating over a list of :class:`TagDetails ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TagDetails]'} + } + + def __init__(self, *args, **kwargs): + + super(TagDetailsPaged, self).__init__(*args, **kwargs) +class DeploymentOperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`DeploymentOperation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DeploymentOperation]'} + } + + def __init__(self, *args, **kwargs): + + super(DeploymentOperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/debug_setting_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_resource_management_client_enums.py similarity index 52% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/debug_setting_py3.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_resource_management_client_enums.py index cb479a2500f0..9fd73ca1de47 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/debug_setting_py3.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/models/_resource_management_client_enums.py @@ -9,20 +9,24 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +from enum import Enum -class DebugSetting(Model): - """DebugSetting. +class DeploymentMode(str, Enum): - :param detail_level: The debug detail level. - :type detail_level: str - """ + incremental = "Incremental" + complete = "Complete" - _attribute_map = { - 'detail_level': {'key': 'detailLevel', 'type': 'str'}, - } - def __init__(self, *, detail_level: str=None, **kwargs) -> None: - super(DebugSetting, self).__init__(**kwargs) - self.detail_level = detail_level +class OnErrorDeploymentType(str, Enum): + + last_successful = "LastSuccessful" + specific_deployment = "SpecificDeployment" + + +class ResourceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + user_assigned = "UserAssigned" + system_assigned_user_assigned = "SystemAssigned, UserAssigned" + none = "None" diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/__init__.py new file mode 100644 index 000000000000..41027cf11028 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/__init__.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from ._operations import Operations +from ._deployments_operations import DeploymentsOperations +from ._providers_operations import ProvidersOperations +from ._resources_operations import ResourcesOperations +from ._resource_groups_operations import ResourceGroupsOperations +from ._tags_operations import TagsOperations +from ._deployment_operations import DeploymentOperations + +__all__ = [ + 'Operations', + 'DeploymentsOperations', + 'ProvidersOperations', + 'ResourcesOperations', + 'ResourceGroupsOperations', + 'TagsOperations', + 'DeploymentOperations', +] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployment_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployment_operations.py new file mode 100644 index 000000000000..f3041278894f --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployment_operations.py @@ -0,0 +1,457 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class DeploymentOperations(object): + """DeploymentOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def get_at_management_group_scope( + self, group_id, deployment_name, operation_id, custom_headers=None, raw=False, **operation_config): + """Gets a deployments operation. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param operation_id: The ID of the operation to get. + :type operation_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentOperation or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperation + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'operationId': self._serialize.url("operation_id", operation_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentOperation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}'} + + def list_at_management_group_scope( + self, group_id, deployment_name, top=None, custom_headers=None, raw=False, **operation_config): + """Gets all deployments operations for a deployment. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param top: The number of results to return. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DeploymentOperation + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperation] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations'} + + def get_at_subscription_scope( + self, deployment_name, operation_id, custom_headers=None, raw=False, **operation_config): + """Gets a deployments operation. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param operation_id: The ID of the operation to get. + :type operation_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentOperation or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperation + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'operationId': self._serialize.url("operation_id", operation_id, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentOperation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}'} + + def list_at_subscription_scope( + self, deployment_name, top=None, custom_headers=None, raw=False, **operation_config): + """Gets all deployments operations for a deployment. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param top: The number of results to return. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DeploymentOperation + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperation] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations'} + + def get( + self, resource_group_name, deployment_name, operation_id, custom_headers=None, raw=False, **operation_config): + """Gets a deployments operation. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param operation_id: The ID of the operation to get. + :type operation_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentOperation or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperation + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'operationId': self._serialize.url("operation_id", operation_id, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentOperation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}'} + + def list( + self, resource_group_name, deployment_name, top=None, custom_headers=None, raw=False, **operation_config): + """Gets all deployments operations for a deployment. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param top: The number of results to return. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DeploymentOperation + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperationPaged[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentOperation] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.DeploymentOperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployments_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployments_operations.py new file mode 100644 index 000000000000..13465c8bfa50 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_deployments_operations.py @@ -0,0 +1,1800 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class DeploymentsOperations(object): + """DeploymentsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + + def _delete_at_management_group_scope_initial( + self, group_id, deployment_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete_at_management_group_scope( + self, group_id, deployment_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a deployment from the deployment history. + + A template deployment that is currently running cannot be deleted. + Deleting a template deployment removes the associated deployment + operations. This is an asynchronous operation that returns a status of + 202 until the template deployment is successfully deleted. The Location + response header contains the URI that is used to obtain the status of + the process. While the process is running, a call to the URI in the + Location header returns a status of 202. When the process finishes, the + URI in the Location header returns a status of 204 on success. If the + asynchronous request failed, the URI in the Location header returns an + error-level status code. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_at_management_group_scope_initial( + group_id=group_id, + deployment_name=deployment_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def check_existence_at_management_group_scope( + self, group_id, deployment_name, custom_headers=None, raw=False, **operation_config): + """Checks whether the deployment exists. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_existence_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + check_existence_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + + def _create_or_update_at_management_group_scope_initial( + self, group_id, deployment_name, properties, location=None, custom_headers=None, raw=False, **operation_config): + parameters = models.Deployment(location=location, properties=properties) + + # Construct URL + url = self.create_or_update_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'Deployment') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExtended', response) + if response.status_code == 201: + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update_at_management_group_scope( + self, group_id, deployment_name, properties, location=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Deploys resources at management group scope. + + You can provide the template and parameters directly in the request or + link to JSON files. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + :param location: The location to store the deployment data. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns DeploymentExtended or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_at_management_group_scope_initial( + group_id=group_id, + deployment_name=deployment_name, + properties=properties, + location=location, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def get_at_management_group_scope( + self, group_id, deployment_name, custom_headers=None, raw=False, **operation_config): + """Gets a deployment. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentExtended or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def cancel_at_management_group_scope( + self, group_id, deployment_name, custom_headers=None, raw=False, **operation_config): + """Cancels a currently running template deployment. + + You can cancel a deployment only if the provisioningState is Accepted + or Running. After the deployment is canceled, the provisioningState is + set to Canceled. Canceling a template deployment stops the currently + running template deployment and leaves the resources partially + deployed. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.cancel_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + cancel_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'} + + def validate_at_management_group_scope( + self, group_id, deployment_name, properties, location=None, custom_headers=None, raw=False, **operation_config): + """Validates whether the specified template is syntactically correct and + will be accepted by Azure Resource Manager.. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + :param location: The location to store the deployment data. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentValidateResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentValidateResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + parameters = models.Deployment(location=location, properties=properties) + + # Construct URL + url = self.validate_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'Deployment') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 400]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentValidateResult', response) + if response.status_code == 400: + deserialized = self._deserialize('DeploymentValidateResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + validate_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'} + + def export_template_at_management_group_scope( + self, group_id, deployment_name, custom_headers=None, raw=False, **operation_config): + """Exports the template used for specified deployment. + + :param group_id: The management group ID. + :type group_id: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentExportResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExportResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.export_template_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExportResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + export_template_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'} + + def list_at_management_group_scope( + self, group_id, filter=None, top=None, custom_headers=None, raw=False, **operation_config): + """Get all the deployments for a management group. + + :param group_id: The management group ID. + :type group_id: str + :param filter: The filter to apply on the operation. For example, you + can use $filter=provisioningState eq '{state}'. + :type filter: str + :param top: The number of results to get. If null is passed, returns + all deployments. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DeploymentExtended + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_at_management_group_scope.metadata['url'] + path_format_arguments = { + 'groupId': self._serialize.url("group_id", group_id, 'str', max_length=90, min_length=1) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_at_management_group_scope.metadata = {'url': '/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/'} + + + def _delete_at_subscription_scope_initial( + self, deployment_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete_at_subscription_scope( + self, deployment_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a deployment from the deployment history. + + A template deployment that is currently running cannot be deleted. + Deleting a template deployment removes the associated deployment + operations. This is an asynchronous operation that returns a status of + 202 until the template deployment is successfully deleted. The Location + response header contains the URI that is used to obtain the status of + the process. While the process is running, a call to the URI in the + Location header returns a status of 202. When the process finishes, the + URI in the Location header returns a status of 204 on success. If the + asynchronous request failed, the URI in the Location header returns an + error-level status code. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_at_subscription_scope_initial( + deployment_name=deployment_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def check_existence_at_subscription_scope( + self, deployment_name, custom_headers=None, raw=False, **operation_config): + """Checks whether the deployment exists. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_existence_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + check_existence_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + + def _create_or_update_at_subscription_scope_initial( + self, deployment_name, properties, location=None, custom_headers=None, raw=False, **operation_config): + parameters = models.Deployment(location=location, properties=properties) + + # Construct URL + url = self.create_or_update_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'Deployment') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExtended', response) + if response.status_code == 201: + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update_at_subscription_scope( + self, deployment_name, properties, location=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Deploys resources at subscription scope. + + You can provide the template and parameters directly in the request or + link to JSON files. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + :param location: The location to store the deployment data. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns DeploymentExtended or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_at_subscription_scope_initial( + deployment_name=deployment_name, + properties=properties, + location=location, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def get_at_subscription_scope( + self, deployment_name, custom_headers=None, raw=False, **operation_config): + """Gets a deployment. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentExtended or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def cancel_at_subscription_scope( + self, deployment_name, custom_headers=None, raw=False, **operation_config): + """Cancels a currently running template deployment. + + You can cancel a deployment only if the provisioningState is Accepted + or Running. After the deployment is canceled, the provisioningState is + set to Canceled. Canceling a template deployment stops the currently + running template deployment and leaves the resources partially + deployed. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.cancel_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + cancel_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'} + + def validate_at_subscription_scope( + self, deployment_name, properties, location=None, custom_headers=None, raw=False, **operation_config): + """Validates whether the specified template is syntactically correct and + will be accepted by Azure Resource Manager.. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + :param location: The location to store the deployment data. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentValidateResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentValidateResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + parameters = models.Deployment(location=location, properties=properties) + + # Construct URL + url = self.validate_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'Deployment') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 400]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentValidateResult', response) + if response.status_code == 400: + deserialized = self._deserialize('DeploymentValidateResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + validate_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'} + + def export_template_at_subscription_scope( + self, deployment_name, custom_headers=None, raw=False, **operation_config): + """Exports the template used for specified deployment. + + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentExportResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExportResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.export_template_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExportResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + export_template_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'} + + def list_at_subscription_scope( + self, filter=None, top=None, custom_headers=None, raw=False, **operation_config): + """Get all the deployments for a subscription. + + :param filter: The filter to apply on the operation. For example, you + can use $filter=provisioningState eq '{state}'. + :type filter: str + :param top: The number of results to get. If null is passed, returns + all deployments. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DeploymentExtended + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_at_subscription_scope.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_at_subscription_scope.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/'} + + + def _delete_initial( + self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, deployment_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a deployment from the deployment history. + + A template deployment that is currently running cannot be deleted. + Deleting a template deployment removes the associated deployment + operations. Deleting a template deployment does not affect the state of + the resource group. This is an asynchronous operation that returns a + status of 202 until the template deployment is successfully deleted. + The Location response header contains the URI that is used to obtain + the status of the process. While the process is running, a call to the + URI in the Location header returns a status of 202. When the process + finishes, the URI in the Location header returns a status of 204 on + success. If the asynchronous request failed, the URI in the Location + header returns an error-level status code. + + :param resource_group_name: The name of the resource group with the + deployment to delete. The name is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + deployment_name=deployment_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def check_existence( + self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): + """Checks whether the deployment exists. + + :param resource_group_name: The name of the resource group with the + deployment to check. The name is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_existence.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + + def _create_or_update_initial( + self, resource_group_name, deployment_name, properties, location=None, custom_headers=None, raw=False, **operation_config): + parameters = models.Deployment(location=location, properties=properties) + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'Deployment') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExtended', response) + if response.status_code == 201: + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, deployment_name, properties, location=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Deploys resources to a resource group. + + You can provide the template and parameters directly in the request or + link to JSON files. + + :param resource_group_name: The name of the resource group to deploy + the resources to. The name is case insensitive. The resource group + must already exist. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + :param location: The location to store the deployment data. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns DeploymentExtended or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + deployment_name=deployment_name, + properties=properties, + location=location, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def get( + self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): + """Gets a deployment. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentExtended or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExtended', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}'} + + def cancel( + self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): + """Cancels a currently running template deployment. + + You can cancel a deployment only if the provisioningState is Accepted + or Running. After the deployment is canceled, the provisioningState is + set to Canceled. Canceling a template deployment stops the currently + running template deployment and leaves the resource group partially + deployed. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.cancel.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + cancel.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel'} + + def validate( + self, resource_group_name, deployment_name, properties, location=None, custom_headers=None, raw=False, **operation_config): + """Validates whether the specified template is syntactically correct and + will be accepted by Azure Resource Manager.. + + :param resource_group_name: The name of the resource group the + template will be deployed to. The name is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param properties: The deployment properties. + :type properties: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentProperties + :param location: The location to store the deployment data. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentValidateResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentValidateResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + parameters = models.Deployment(location=location, properties=properties) + + # Construct URL + url = self.validate.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'Deployment') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 400]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentValidateResult', response) + if response.status_code == 400: + deserialized = self._deserialize('DeploymentValidateResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + validate.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate'} + + def export_template( + self, resource_group_name, deployment_name, custom_headers=None, raw=False, **operation_config): + """Exports the template used for specified deployment. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param deployment_name: The name of the deployment. + :type deployment_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DeploymentExportResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExportResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.export_template.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DeploymentExportResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate'} + + def list_by_resource_group( + self, resource_group_name, filter=None, top=None, custom_headers=None, raw=False, **operation_config): + """Get all the deployments for a resource group. + + :param resource_group_name: The name of the resource group with the + deployments to get. The name is case insensitive. + :type resource_group_name: str + :param filter: The filter to apply on the operation. For example, you + can use $filter=provisioningState eq '{state}'. + :type filter: str + :param top: The number of results to get. If null is passed, returns + all deployments. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DeploymentExtended + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtendedPaged[~azure.mgmt.resource.resources.v2019_05_01.models.DeploymentExtended] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.DeploymentExtendedPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_operations.py new file mode 100644 index 000000000000..a7143c98e194 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_operations.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class Operations(object): + """Operations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available Microsoft.Resources REST API operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.OperationPaged[~azure.mgmt.resource.resources.v2019_05_01.models.Operation] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/providers/Microsoft.Resources/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_providers_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_providers_operations.py new file mode 100644 index 000000000000..62f3a46ff684 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_providers_operations.py @@ -0,0 +1,300 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ProvidersOperations(object): + """ProvidersOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def unregister( + self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config): + """Unregisters a subscription from a resource provider. + + :param resource_provider_namespace: The namespace of the resource + provider to unregister. + :type resource_provider_namespace: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Provider or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.resource.resources.v2019_05_01.models.Provider or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.unregister.metadata['url'] + path_format_arguments = { + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Provider', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + unregister.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister'} + + def register( + self, resource_provider_namespace, custom_headers=None, raw=False, **operation_config): + """Registers a subscription with a resource provider. + + :param resource_provider_namespace: The namespace of the resource + provider to register. + :type resource_provider_namespace: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Provider or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.resource.resources.v2019_05_01.models.Provider or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.register.metadata['url'] + path_format_arguments = { + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Provider', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + register.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register'} + + def list( + self, top=None, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets all resource providers for a subscription. + + :param top: The number of results to return. If null is passed returns + all deployments. + :type top: int + :param expand: The properties to include in the results. For example, + use &$expand=metadata in the query string to retrieve resource + provider metadata. To include property aliases in response, use + $expand=resourceTypes/aliases. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Provider + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.ProviderPaged[~azure.mgmt.resource.resources.v2019_05_01.models.Provider] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers'} + + def get( + self, resource_provider_namespace, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified resource provider. + + :param resource_provider_namespace: The namespace of the resource + provider. + :type resource_provider_namespace: str + :param expand: The $expand query parameter. For example, to include + property aliases in response, use $expand=resourceTypes/aliases. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Provider or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.resource.resources.v2019_05_01.models.Provider or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Provider', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resource_groups_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resource_groups_operations.py new file mode 100644 index 000000000000..95f3ed8f4522 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resource_groups_operations.py @@ -0,0 +1,530 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ResourceGroupsOperations(object): + """ResourceGroupsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def check_existence( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Checks whether a resource group exists. + + :param resource_group_name: The name of the resource group to check. + The name is case insensitive. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_existence.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} + + def create_or_update( + self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a resource group. + + :param resource_group_name: The name of the resource group to create + or update. Can include alphanumeric, underscore, parentheses, hyphen, + period (except at end), and Unicode characters that match the allowed + characters. + :type resource_group_name: str + :param parameters: Parameters supplied to the create or update a + resource group. + :type parameters: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroup + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceGroup or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroup or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ResourceGroup') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceGroup', response) + if response.status_code == 201: + deserialized = self._deserialize('ResourceGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} + + + def _delete_initial( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a resource group. + + When you delete a resource group, all of its resources are also + deleted. Deleting a resource group deletes all of its template + deployments and currently stored operations. + + :param resource_group_name: The name of the resource group to delete. + The name is case insensitive. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} + + def get( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets a resource group. + + :param resource_group_name: The name of the resource group to get. The + name is case insensitive. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceGroup or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroup or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} + + def update( + self, resource_group_name, parameters, custom_headers=None, raw=False, **operation_config): + """Updates a resource group. + + Resource groups can be updated through a simple PATCH operation to a + group address. The format of the request is the same as that for + creating a resource group. If a field is unspecified, the current value + is retained. + + :param resource_group_name: The name of the resource group to update. + The name is case insensitive. + :type resource_group_name: str + :param parameters: Parameters supplied to update a resource group. + :type parameters: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroupPatchable + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceGroup or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroup or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ResourceGroupPatchable') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}'} + + def export_template( + self, resource_group_name, resources=None, options=None, custom_headers=None, raw=False, **operation_config): + """Captures the specified resource group as a template. + + :param resource_group_name: The name of the resource group to export + as a template. + :type resource_group_name: str + :param resources: The IDs of the resources. The only supported string + currently is '*' (all resources). Future updates will support + exporting specific resources. + :type resources: list[str] + :param options: The export template options. Supported values include + 'IncludeParameterDefaultValue', 'IncludeComments' or + 'IncludeParameterDefaultValue, IncludeComments + :type options: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ResourceGroupExportResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroupExportResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + parameters = models.ExportTemplateRequest(resources=resources, options=options) + + # Construct URL + url = self.export_template.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ExportTemplateRequest') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ResourceGroupExportResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + export_template.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate'} + + def list( + self, filter=None, top=None, custom_headers=None, raw=False, **operation_config): + """Gets all the resource groups for a subscription. + + :param filter: The filter to apply on the operation.

You can + filter by tag names and values. For example, to filter for a tag name + and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1' + :type filter: str + :param top: The number of results to return. If null is passed, + returns all resource groups. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ResourceGroup + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroupPaged[~azure.mgmt.resource.resources.v2019_05_01.models.ResourceGroup] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ResourceGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resources_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resources_operations.py new file mode 100644 index 000000000000..2e72aa97762b --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_resources_operations.py @@ -0,0 +1,1311 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ResourcesOperations(object): + """ResourcesOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def list_by_resource_group( + self, resource_group_name, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config): + """Get all the resources for a resource group. + + :param resource_group_name: The resource group with the resources to + get. + :type resource_group_name: str + :param filter: The filter to apply on the operation.

The + properties you can use for eq (equals) or ne (not equals) are: + location, resourceType, name, resourceGroup, identity, + identity/principalId, plan, plan/publisher, plan/product, plan/name, + plan/version, and plan/promotionCode.

For example, to filter by + a resource type, use: $filter=resourceType eq + 'Microsoft.Network/virtualNetworks'

You can use + substringof(value, property) in the filter. The properties you can use + for substring are: name and resourceGroup.

For example, to get + all resources with 'demo' anywhere in the name, use: + $filter=substringof('demo', name)

You can link more than one + substringof together by adding and/or operators.

You can filter + by tag names and values. For example, to filter for a tag name and + value, use $filter=tagName eq 'tag1' and tagValue eq + 'Value1'

You can use some properties together when filtering. + The combinations you can use are: substringof and/or resourceType, + plan and plan/publisher and plan/name, identity and + identity/principalId. + :type filter: str + :param expand: The $expand query parameter. You can expand createdTime + and changedTime. For example, to expand both properties, use + $expand=changedTime,createdTime + :type expand: str + :param top: The number of results to return. If null is passed, + returns all resources. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of GenericResource + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources'} + + + def _move_resources_initial( + self, source_resource_group_name, resources=None, target_resource_group=None, custom_headers=None, raw=False, **operation_config): + parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) + + # Construct URL + url = self.move_resources.metadata['url'] + path_format_arguments = { + 'sourceResourceGroupName': self._serialize.url("source_resource_group_name", source_resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ResourcesMoveInfo') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def move_resources( + self, source_resource_group_name, resources=None, target_resource_group=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Moves resources from one resource group to another resource group. + + The resources to move must be in the same source resource group. The + target resource group may be in a different subscription. When moving + resources, both the source group and the target group are locked for + the duration of the operation. Write and delete operations are blocked + on the groups until the move completes. . + + :param source_resource_group_name: The name of the resource group + containing the resources to move. + :type source_resource_group_name: str + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._move_resources_initial( + source_resource_group_name=source_resource_group_name, + resources=resources, + target_resource_group=target_resource_group, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + move_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources'} + + + def _validate_move_resources_initial( + self, source_resource_group_name, resources=None, target_resource_group=None, custom_headers=None, raw=False, **operation_config): + parameters = models.ResourcesMoveInfo(resources=resources, target_resource_group=target_resource_group) + + # Construct URL + url = self.validate_move_resources.metadata['url'] + path_format_arguments = { + 'sourceResourceGroupName': self._serialize.url("source_resource_group_name", source_resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ResourcesMoveInfo') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204, 409]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def validate_move_resources( + self, source_resource_group_name, resources=None, target_resource_group=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Validates whether resources can be moved from one resource group to + another resource group. + + This operation checks whether the specified resources can be moved to + the target. The resources to move must be in the same source resource + group. The target resource group may be in a different subscription. If + validation succeeds, it returns HTTP response code 204 (no content). If + validation fails, it returns HTTP response code 409 (Conflict) with an + error message. Retrieve the URL in the Location header value to check + the result of the long-running operation. + + :param source_resource_group_name: The name of the resource group + containing the resources to validate for move. + :type source_resource_group_name: str + :param resources: The IDs of the resources. + :type resources: list[str] + :param target_resource_group: The target resource group. + :type target_resource_group: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._validate_move_resources_initial( + source_resource_group_name=source_resource_group_name, + resources=resources, + target_resource_group=target_resource_group, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + validate_move_resources.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources'} + + def list( + self, filter=None, expand=None, top=None, custom_headers=None, raw=False, **operation_config): + """Get all the resources in a subscription. + + :param filter: The filter to apply on the operation.

The + properties you can use for eq (equals) or ne (not equals) are: + location, resourceType, name, resourceGroup, identity, + identity/principalId, plan, plan/publisher, plan/product, plan/name, + plan/version, and plan/promotionCode.

For example, to filter by + a resource type, use: $filter=resourceType eq + 'Microsoft.Network/virtualNetworks'

You can use + substringof(value, property) in the filter. The properties you can use + for substring are: name and resourceGroup.

For example, to get + all resources with 'demo' anywhere in the name, use: + $filter=substringof('demo', name)

You can link more than one + substringof together by adding and/or operators.

You can filter + by tag names and values. For example, to filter for a tag name and + value, use $filter=tagName eq 'tag1' and tagValue eq + 'Value1'

You can use some properties together when filtering. + The combinations you can use are: substringof and/or resourceType, + plan and plan/publisher and plan/name, identity and + identity/principalId. + :type filter: str + :param expand: The $expand query parameter. You can expand createdTime + and changedTime. For example, to expand both properties, use + $expand=changedTime,createdTime + :type expand: str + :param top: The number of results to return. If null is passed, + returns all resource groups. + :type top: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of GenericResource + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResourcePaged[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.GenericResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resources'} + + def check_existence( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): + """Checks whether a resource exists. + + :param resource_group_name: The name of the resource group containing + the resource to check. The name is case insensitive. + :type resource_group_name: str + :param resource_provider_namespace: The resource provider of the + resource to check. + :type resource_provider_namespace: str + :param parent_resource_path: The parent resource identity. + :type parent_resource_path: str + :param resource_type: The resource type. + :type resource_type: str + :param resource_name: The name of the resource to check whether it + exists. + :type resource_name: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_existence.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'parentResourcePath': self._serialize.url("parent_resource_path", parent_resource_path, 'str', skip_quote=True), + 'resourceType': self._serialize.url("resource_type", resource_type, 'str', skip_quote=True), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + check_existence.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} + + + def _delete_initial( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'parentResourcePath': self._serialize.url("parent_resource_path", parent_resource_path, 'str', skip_quote=True), + 'resourceType': self._serialize.url("resource_type", resource_type, 'str', skip_quote=True), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a resource. + + :param resource_group_name: The name of the resource group that + contains the resource to delete. The name is case insensitive. + :type resource_group_name: str + :param resource_provider_namespace: The namespace of the resource + provider. + :type resource_provider_namespace: str + :param parent_resource_path: The parent resource identity. + :type parent_resource_path: str + :param resource_type: The resource type. + :type resource_type: str + :param resource_name: The name of the resource to delete. + :type resource_name: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + resource_provider_namespace=resource_provider_namespace, + parent_resource_path=parent_resource_path, + resource_type=resource_type, + resource_name=resource_name, + api_version=api_version, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} + + + def _create_or_update_initial( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'parentResourcePath': self._serialize.url("parent_resource_path", parent_resource_path, 'str', skip_quote=True), + 'resourceType': self._serialize.url("resource_type", resource_type, 'str', skip_quote=True), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'GenericResource') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GenericResource', response) + if response.status_code == 201: + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a resource. + + :param resource_group_name: The name of the resource group for the + resource. The name is case insensitive. + :type resource_group_name: str + :param resource_provider_namespace: The namespace of the resource + provider. + :type resource_provider_namespace: str + :param parent_resource_path: The parent resource identity. + :type parent_resource_path: str + :param resource_type: The resource type of the resource to create. + :type resource_type: str + :param resource_name: The name of the resource to create. + :type resource_name: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param parameters: Parameters for creating or updating the resource. + :type parameters: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GenericResource or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + resource_provider_namespace=resource_provider_namespace, + parent_resource_path=parent_resource_path, + resource_type=resource_type, + resource_name=resource_name, + api_version=api_version, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} + + + def _update_initial( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'parentResourcePath': self._serialize.url("parent_resource_path", parent_resource_path, 'str', skip_quote=True), + 'resourceType': self._serialize.url("resource_type", resource_type, 'str', skip_quote=True), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'GenericResource') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a resource. + + :param resource_group_name: The name of the resource group for the + resource. The name is case insensitive. + :type resource_group_name: str + :param resource_provider_namespace: The namespace of the resource + provider. + :type resource_provider_namespace: str + :param parent_resource_path: The parent resource identity. + :type parent_resource_path: str + :param resource_type: The resource type of the resource to update. + :type resource_type: str + :param resource_name: The name of the resource to update. + :type resource_name: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param parameters: Parameters for updating the resource. + :type parameters: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GenericResource or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + resource_provider_namespace=resource_provider_namespace, + parent_resource_path=parent_resource_path, + resource_type=resource_type, + resource_name=resource_name, + api_version=api_version, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} + + def get( + self, resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, api_version, custom_headers=None, raw=False, **operation_config): + """Gets a resource. + + :param resource_group_name: The name of the resource group containing + the resource to get. The name is case insensitive. + :type resource_group_name: str + :param resource_provider_namespace: The namespace of the resource + provider. + :type resource_provider_namespace: str + :param parent_resource_path: The parent resource identity. + :type parent_resource_path: str + :param resource_type: The resource type of the resource. + :type resource_type: str + :param resource_name: The name of the resource to get. + :type resource_name: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: GenericResource or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceProviderNamespace': self._serialize.url("resource_provider_namespace", resource_provider_namespace, 'str'), + 'parentResourcePath': self._serialize.url("parent_resource_path", parent_resource_path, 'str', skip_quote=True), + 'resourceType': self._serialize.url("resource_type", resource_type, 'str', skip_quote=True), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}'} + + def check_existence_by_id( + self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): + """Checks by ID whether a resource exists. + + :param resource_id: The fully qualified ID of the resource, including + the resource name and resource type. Use the format, + /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} + :type resource_id: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: bool or ClientRawResponse if raw=true + :rtype: bool or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_existence_by_id.metadata['url'] + path_format_arguments = { + 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + check_existence_by_id.metadata = {'url': '/{resourceId}'} + + + def _delete_by_id_initial( + self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete_by_id.metadata['url'] + path_format_arguments = { + 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete_by_id( + self, resource_id, api_version, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a resource by ID. + + :param resource_id: The fully qualified ID of the resource, including + the resource name and resource type. Use the format, + /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} + :type resource_id: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_by_id_initial( + resource_id=resource_id, + api_version=api_version, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete_by_id.metadata = {'url': '/{resourceId}'} + + + def _create_or_update_by_id_initial( + self, resource_id, api_version, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update_by_id.metadata['url'] + path_format_arguments = { + 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'GenericResource') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GenericResource', response) + if response.status_code == 201: + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update_by_id( + self, resource_id, api_version, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Create a resource by ID. + + :param resource_id: The fully qualified ID of the resource, including + the resource name and resource type. Use the format, + /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} + :type resource_id: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param parameters: Create or update resource parameters. + :type parameters: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GenericResource or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_by_id_initial( + resource_id=resource_id, + api_version=api_version, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update_by_id.metadata = {'url': '/{resourceId}'} + + + def _update_by_id_initial( + self, resource_id, api_version, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update_by_id.metadata['url'] + path_format_arguments = { + 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'GenericResource') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_by_id( + self, resource_id, api_version, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a resource by ID. + + :param resource_id: The fully qualified ID of the resource, including + the resource name and resource type. Use the format, + /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} + :type resource_id: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param parameters: Update resource parameters. + :type parameters: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GenericResource or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource]] + :raises: :class:`CloudError` + """ + raw_result = self._update_by_id_initial( + resource_id=resource_id, + api_version=api_version, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_by_id.metadata = {'url': '/{resourceId}'} + + def get_by_id( + self, resource_id, api_version, custom_headers=None, raw=False, **operation_config): + """Gets a resource by ID. + + :param resource_id: The fully qualified ID of the resource, including + the resource name and resource type. Use the format, + /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name} + :type resource_id: str + :param api_version: The API version to use for the operation. + :type api_version: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: GenericResource or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.GenericResource or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_by_id.metadata['url'] + path_format_arguments = { + 'resourceId': self._serialize.url("resource_id", resource_id, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('GenericResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_by_id.metadata = {'url': '/{resourceId}'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_tags_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_tags_operations.py new file mode 100644 index 000000000000..64cedaf97d4b --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/operations/_tags_operations.py @@ -0,0 +1,340 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class TagsOperations(object): + """TagsOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version to use for this operation. Constant value: "2019-05-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01" + + self.config = config + + def delete_value( + self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config): + """Deletes a tag value. + + :param tag_name: The name of the tag. + :type tag_name: str + :param tag_value: The value of the tag to delete. + :type tag_value: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete_value.metadata['url'] + path_format_arguments = { + 'tagName': self._serialize.url("tag_name", tag_name, 'str'), + 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} + + def create_or_update_value( + self, tag_name, tag_value, custom_headers=None, raw=False, **operation_config): + """Creates a tag value. The name of the tag must already exist. + + :param tag_name: The name of the tag. + :type tag_name: str + :param tag_value: The value of the tag to create. + :type tag_value: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: TagValue or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.resource.resources.v2019_05_01.models.TagValue or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.create_or_update_value.metadata['url'] + path_format_arguments = { + 'tagName': self._serialize.url("tag_name", tag_name, 'str'), + 'tagValue': self._serialize.url("tag_value", tag_value, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('TagValue', response) + if response.status_code == 201: + deserialized = self._deserialize('TagValue', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update_value.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}'} + + def create_or_update( + self, tag_name, custom_headers=None, raw=False, **operation_config): + """Creates a tag in the subscription. + + The tag name can have a maximum of 512 characters and is case + insensitive. Tag names created by Azure have prefixes of microsoft, + azure, or windows. You cannot create tags with one of these prefixes. + + :param tag_name: The name of the tag to create. + :type tag_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: TagDetails or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.resource.resources.v2019_05_01.models.TagDetails + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'tagName': self._serialize.url("tag_name", tag_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('TagDetails', response) + if response.status_code == 201: + deserialized = self._deserialize('TagDetails', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} + + def delete( + self, tag_name, custom_headers=None, raw=False, **operation_config): + """Deletes a tag from the subscription. + + You must remove all values from a resource tag before you can delete + it. + + :param tag_name: The name of the tag. + :type tag_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'tagName': self._serialize.url("tag_name", tag_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames/{tagName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets the names and values of all resource tags that are defined in a + subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of TagDetails + :rtype: + ~azure.mgmt.resource.resources.v2019_05_01.models.TagDetailsPaged[~azure.mgmt.resource.resources.v2019_05_01.models.TagDetails] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.TagDetailsPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/tagNames'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sub_resource.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/version.py similarity index 58% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sub_resource.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/version.py index 11e092cc6ff5..a0f07a74dc04 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2016_02_01/models/sub_resource.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_05_01/version.py @@ -9,20 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model +VERSION = "2019-05-01" - -class SubResource(Model): - """SubResource. - - :param id: Resource Id - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = kwargs.get('id', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/__init__.py index 5d3ad3efa760..b268f0af22b7 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/__init__.py @@ -1,10 +1,19 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- -from .subscription_client import SubscriptionClient +from ._configuration import SubscriptionClientConfiguration +from ._subscription_client import SubscriptionClient +__all__ = ['SubscriptionClient', 'SubscriptionClientConfiguration'] + +from ..version import VERSION + +__version__ = VERSION -__all__ = ['SubscriptionClient'] diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/_configuration.py new file mode 100644 index 000000000000..2c43c852b1e5 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/_configuration.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from ..version import VERSION + + +class SubscriptionClientConfiguration(AzureConfiguration): + """Configuration for SubscriptionClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(SubscriptionClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/subscription_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/_subscription_client.py similarity index 83% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/subscription_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/_subscription_client.py index 47ebb8735ff6..d594f287777f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/subscription_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/_subscription_client.py @@ -11,43 +11,24 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin -from ..version import VERSION +from ._configuration import SubscriptionClientConfiguration -class SubscriptionClientConfiguration(AzureConfiguration): - """Configuration for SubscriptionClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param str base_url: Service URL - """ - - def __init__( - self, credentials, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(SubscriptionClientConfiguration, self).__init__(base_url) - - self.add_user_agent('subscriptionclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - class SubscriptionClient(MultiApiClientMixin, SDKClient): """All resource groups and resources exist within subscriptions. These operation enable you get information about your subscriptions and tenants. A tenant is a dedicated instance of Azure Active Directory (Azure AD) for your organization. + This ready contains multiple API versions, to help you deal with all Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, uses latest API version available on public Azure. + For production, you should stick a particular api-version and/or profile. + The profile sets a mapping between the operation group and an API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + :ivar config: Configuration for client. :vartype config: SubscriptionClientConfiguration @@ -61,11 +42,11 @@ class SubscriptionClient(MultiApiClientMixin, SDKClient): :type profile: azure.profiles.KnownProfiles """ - DEFAULT_API_VERSION='2018-06-01' + DEFAULT_API_VERSION = '2018-06-01' _PROFILE_TAG = "azure.mgmt.resource.subscriptions.SubscriptionClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { - None: DEFAULT_API_VERSION + None: DEFAULT_API_VERSION, }}, _PROFILE_TAG + " latest" ) @@ -79,8 +60,6 @@ def __init__(self, credentials, api_version=None, base_url=None, profile=KnownPr profile=profile ) -############ Generated from here ############ - @classmethod def _models_dict(cls, api_version): return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/models.py index 56d82efc4d57..bbe3c974d0a8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/models.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/models.py @@ -1,7 +1,8 @@ -# coding=utf-8 +# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2018_06_01.models import * \ No newline at end of file +from .v2016_06_01.models import * +from .v2018_06_01.models import * diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/__init__.py index ce1112dc9c59..399e93fb102f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .subscription_client import SubscriptionClient -from .version import VERSION +from ._configuration import SubscriptionClientConfiguration +from ._subscription_client import SubscriptionClient +__all__ = ['SubscriptionClient', 'SubscriptionClientConfiguration'] -__all__ = ['SubscriptionClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_configuration.py new file mode 100644 index 000000000000..935bf662873f --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_configuration.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class SubscriptionClientConfiguration(AzureConfiguration): + """Configuration for SubscriptionClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(SubscriptionClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/subscription_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_subscription_client.py similarity index 67% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/subscription_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_subscription_client.py index dfc36bb76bfb..bd145dc5256e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/subscription_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/_subscription_client.py @@ -11,39 +11,12 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.subscriptions_operations import SubscriptionsOperations -from .operations.tenants_operations import TenantsOperations -from . import models - - -class SubscriptionClientConfiguration(AzureConfiguration): - """Configuration for SubscriptionClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param str base_url: Service URL - """ - - def __init__( - self, credentials, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(SubscriptionClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials +from ._configuration import SubscriptionClientConfiguration +from .operations import Operations +from .operations import SubscriptionsOperations +from .operations import TenantsOperations +from . import models class SubscriptionClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py index 93bb9b27a0d5..cd1fb5a0855e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/__init__.py @@ -10,35 +10,35 @@ # -------------------------------------------------------------------------- try: - from .location_py3 import Location - from .subscription_policies_py3 import SubscriptionPolicies - from .subscription_py3 import Subscription - from .tenant_id_description_py3 import TenantIdDescription - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation + from ._models_py3 import Location + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import Subscription + from ._models_py3 import SubscriptionPolicies + from ._models_py3 import TenantIdDescription except (SyntaxError, ImportError): - from .location import Location - from .subscription_policies import SubscriptionPolicies - from .subscription import Subscription - from .tenant_id_description import TenantIdDescription - from .operation_display import OperationDisplay - from .operation import Operation -from .operation_paged import OperationPaged -from .location_paged import LocationPaged -from .subscription_paged import SubscriptionPaged -from .tenant_id_description_paged import TenantIdDescriptionPaged -from .subscription_client_enums import ( + from ._models import Location + from ._models import Operation + from ._models import OperationDisplay + from ._models import Subscription + from ._models import SubscriptionPolicies + from ._models import TenantIdDescription +from ._paged_models import LocationPaged +from ._paged_models import OperationPaged +from ._paged_models import SubscriptionPaged +from ._paged_models import TenantIdDescriptionPaged +from ._subscription_client_enums import ( SubscriptionState, SpendingLimit, ) __all__ = [ 'Location', - 'SubscriptionPolicies', + 'Operation', + 'OperationDisplay', 'Subscription', + 'SubscriptionPolicies', 'TenantIdDescription', - 'OperationDisplay', - 'Operation', 'OperationPaged', 'LocationPaged', 'SubscriptionPaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_models.py new file mode 100644 index 000000000000..125586e447e0 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_models.py @@ -0,0 +1,240 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Location(Model): + """Location information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the location. For example, + /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar name: The location name. + :vartype name: str + :ivar display_name: The display name of the location. + :vartype display_name: str + :ivar latitude: The latitude of the location. + :vartype latitude: str + :ivar longitude: The longitude of the location. + :vartype longitude: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'latitude': {'readonly': True}, + 'longitude': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'latitude': {'key': 'latitude', 'type': 'str'}, + 'longitude': {'key': 'longitude', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Location, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.name = None + self.display_name = None + self.latitude = None + self.longitude = None + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class Subscription(Model): + """Subscription information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID for the subscription. For example, + /subscriptions/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar display_name: The subscription display name. + :vartype display_name: str + :ivar state: The subscription state. Possible values are Enabled, Warned, + PastDue, Disabled, and Deleted. Possible values include: 'Enabled', + 'Warned', 'PastDue', 'Disabled', 'Deleted' + :vartype state: str or + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionState + :param subscription_policies: The subscription policies. + :type subscription_policies: + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionPolicies + :param authorization_source: The authorization source of the request. + Valid values are one or more combinations of Legacy, RoleBased, Bypassed, + Direct and Management. For example, 'Legacy, RoleBased'. + :type authorization_source: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'display_name': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'SubscriptionState'}, + 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, + 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Subscription, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.display_name = None + self.state = None + self.subscription_policies = kwargs.get('subscription_policies', None) + self.authorization_source = kwargs.get('authorization_source', None) + + +class SubscriptionPolicies(Model): + """Subscription policies. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar location_placement_id: The subscription location placement ID. The + ID indicates which regions are visible for a subscription. For example, a + subscription with a location placement Id of Public_2014-09-01 has access + to Azure public regions. + :vartype location_placement_id: str + :ivar quota_id: The subscription quota ID. + :vartype quota_id: str + :ivar spending_limit: The subscription spending limit. Possible values + include: 'On', 'Off', 'CurrentPeriodOff' + :vartype spending_limit: str or + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SpendingLimit + """ + + _validation = { + 'location_placement_id': {'readonly': True}, + 'quota_id': {'readonly': True}, + 'spending_limit': {'readonly': True}, + } + + _attribute_map = { + 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, + 'quota_id': {'key': 'quotaId', 'type': 'str'}, + 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, + } + + def __init__(self, **kwargs): + super(SubscriptionPolicies, self).__init__(**kwargs) + self.location_placement_id = None + self.quota_id = None + self.spending_limit = None + + +class TenantIdDescription(Model): + """Tenant Id information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the tenant. For example, + /tenants/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar tenant_id: The tenant ID. For example, + 00000000-0000-0000-0000-000000000000. + :vartype tenant_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TenantIdDescription, self).__init__(**kwargs) + self.id = None + self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_models_py3.py new file mode 100644 index 000000000000..43c5a4f3d4fc --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_models_py3.py @@ -0,0 +1,240 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Location(Model): + """Location information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the location. For example, + /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar name: The location name. + :vartype name: str + :ivar display_name: The display name of the location. + :vartype display_name: str + :ivar latitude: The latitude of the location. + :vartype latitude: str + :ivar longitude: The longitude of the location. + :vartype longitude: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'latitude': {'readonly': True}, + 'longitude': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'latitude': {'key': 'latitude', 'type': 'str'}, + 'longitude': {'key': 'longitude', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Location, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.name = None + self.display_name = None + self.latitude = None + self.longitude = None + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class Subscription(Model): + """Subscription information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID for the subscription. For example, + /subscriptions/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar display_name: The subscription display name. + :vartype display_name: str + :ivar state: The subscription state. Possible values are Enabled, Warned, + PastDue, Disabled, and Deleted. Possible values include: 'Enabled', + 'Warned', 'PastDue', 'Disabled', 'Deleted' + :vartype state: str or + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionState + :param subscription_policies: The subscription policies. + :type subscription_policies: + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionPolicies + :param authorization_source: The authorization source of the request. + Valid values are one or more combinations of Legacy, RoleBased, Bypassed, + Direct and Management. For example, 'Legacy, RoleBased'. + :type authorization_source: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'display_name': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'SubscriptionState'}, + 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, + 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, + } + + def __init__(self, *, subscription_policies=None, authorization_source: str=None, **kwargs) -> None: + super(Subscription, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.display_name = None + self.state = None + self.subscription_policies = subscription_policies + self.authorization_source = authorization_source + + +class SubscriptionPolicies(Model): + """Subscription policies. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar location_placement_id: The subscription location placement ID. The + ID indicates which regions are visible for a subscription. For example, a + subscription with a location placement Id of Public_2014-09-01 has access + to Azure public regions. + :vartype location_placement_id: str + :ivar quota_id: The subscription quota ID. + :vartype quota_id: str + :ivar spending_limit: The subscription spending limit. Possible values + include: 'On', 'Off', 'CurrentPeriodOff' + :vartype spending_limit: str or + ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SpendingLimit + """ + + _validation = { + 'location_placement_id': {'readonly': True}, + 'quota_id': {'readonly': True}, + 'spending_limit': {'readonly': True}, + } + + _attribute_map = { + 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, + 'quota_id': {'key': 'quotaId', 'type': 'str'}, + 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, + } + + def __init__(self, **kwargs) -> None: + super(SubscriptionPolicies, self).__init__(**kwargs) + self.location_placement_id = None + self.quota_id = None + self.spending_limit = None + + +class TenantIdDescription(Model): + """Tenant Id information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the tenant. For example, + /tenants/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar tenant_id: The tenant ID. For example, + 00000000-0000-0000-0000-000000000000. + :vartype tenant_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(TenantIdDescription, self).__init__(**kwargs) + self.id = None + self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_paged_models.py new file mode 100644 index 000000000000..98d92fbff5ce --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_paged_models.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) +class LocationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Location ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Location]'} + } + + def __init__(self, *args, **kwargs): + + super(LocationPaged, self).__init__(*args, **kwargs) +class SubscriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`Subscription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Subscription]'} + } + + def __init__(self, *args, **kwargs): + + super(SubscriptionPaged, self).__init__(*args, **kwargs) +class TenantIdDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`TenantIdDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TenantIdDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(TenantIdDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_subscription_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/_subscription_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location.py deleted file mode 100644 index 691616984d27..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Location(Model): - """Location information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the location. For example, - /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar name: The location name. - :vartype name: str - :ivar display_name: The display name of the location. - :vartype display_name: str - :ivar latitude: The latitude of the location. - :vartype latitude: str - :ivar longitude: The longitude of the location. - :vartype longitude: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'latitude': {'readonly': True}, - 'longitude': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'latitude': {'key': 'latitude', 'type': 'str'}, - 'longitude': {'key': 'longitude', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Location, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.name = None - self.display_name = None - self.latitude = None - self.longitude = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location_paged.py deleted file mode 100644 index 3e25376e7938..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class LocationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Location ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Location]'} - } - - def __init__(self, *args, **kwargs): - - super(LocationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location_py3.py deleted file mode 100644 index 40af216a6647..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/location_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Location(Model): - """Location information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the location. For example, - /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar name: The location name. - :vartype name: str - :ivar display_name: The display name of the location. - :vartype display_name: str - :ivar latitude: The latitude of the location. - :vartype latitude: str - :ivar longitude: The longitude of the location. - :vartype longitude: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'latitude': {'readonly': True}, - 'longitude': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'latitude': {'key': 'latitude', 'type': 'str'}, - 'longitude': {'key': 'longitude', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Location, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.name = None - self.display_name = None - self.latitude = None - self.longitude = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation.py deleted file mode 100644 index 17371783a238..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_display.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_display.py deleted file mode 100644 index 98e3ef7e561c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_display_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_display_py3.py deleted file mode 100644 index 9579860dfd81..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_paged.py deleted file mode 100644 index 7637539cb607..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_py3.py deleted file mode 100644 index 392fc49eaefa..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/operation_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription.py deleted file mode 100644 index 44beb231a2bb..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Subscription(Model): - """Subscription information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID for the subscription. For example, - /subscriptions/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar display_name: The subscription display name. - :vartype display_name: str - :ivar state: The subscription state. Possible values are Enabled, Warned, - PastDue, Disabled, and Deleted. Possible values include: 'Enabled', - 'Warned', 'PastDue', 'Disabled', 'Deleted' - :vartype state: str or - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionState - :param subscription_policies: The subscription policies. - :type subscription_policies: - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionPolicies - :param authorization_source: The authorization source of the request. - Valid values are one or more combinations of Legacy, RoleBased, Bypassed, - Direct and Management. For example, 'Legacy, RoleBased'. - :type authorization_source: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'display_name': {'readonly': True}, - 'state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'SubscriptionState'}, - 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, - 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Subscription, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.display_name = None - self.state = None - self.subscription_policies = kwargs.get('subscription_policies', None) - self.authorization_source = kwargs.get('authorization_source', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_paged.py deleted file mode 100644 index 17c5812ae934..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class SubscriptionPaged(Paged): - """ - A paging container for iterating over a list of :class:`Subscription ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Subscription]'} - } - - def __init__(self, *args, **kwargs): - - super(SubscriptionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_policies.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_policies.py deleted file mode 100644 index 14c6f09aa39f..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_policies.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubscriptionPolicies(Model): - """Subscription policies. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar location_placement_id: The subscription location placement ID. The - ID indicates which regions are visible for a subscription. For example, a - subscription with a location placement Id of Public_2014-09-01 has access - to Azure public regions. - :vartype location_placement_id: str - :ivar quota_id: The subscription quota ID. - :vartype quota_id: str - :ivar spending_limit: The subscription spending limit. Possible values - include: 'On', 'Off', 'CurrentPeriodOff' - :vartype spending_limit: str or - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SpendingLimit - """ - - _validation = { - 'location_placement_id': {'readonly': True}, - 'quota_id': {'readonly': True}, - 'spending_limit': {'readonly': True}, - } - - _attribute_map = { - 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, - 'quota_id': {'key': 'quotaId', 'type': 'str'}, - 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, - } - - def __init__(self, **kwargs): - super(SubscriptionPolicies, self).__init__(**kwargs) - self.location_placement_id = None - self.quota_id = None - self.spending_limit = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_policies_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_policies_py3.py deleted file mode 100644 index 94eabde9f289..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_policies_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubscriptionPolicies(Model): - """Subscription policies. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar location_placement_id: The subscription location placement ID. The - ID indicates which regions are visible for a subscription. For example, a - subscription with a location placement Id of Public_2014-09-01 has access - to Azure public regions. - :vartype location_placement_id: str - :ivar quota_id: The subscription quota ID. - :vartype quota_id: str - :ivar spending_limit: The subscription spending limit. Possible values - include: 'On', 'Off', 'CurrentPeriodOff' - :vartype spending_limit: str or - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SpendingLimit - """ - - _validation = { - 'location_placement_id': {'readonly': True}, - 'quota_id': {'readonly': True}, - 'spending_limit': {'readonly': True}, - } - - _attribute_map = { - 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, - 'quota_id': {'key': 'quotaId', 'type': 'str'}, - 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, - } - - def __init__(self, **kwargs) -> None: - super(SubscriptionPolicies, self).__init__(**kwargs) - self.location_placement_id = None - self.quota_id = None - self.spending_limit = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_py3.py deleted file mode 100644 index dfad65822705..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/subscription_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Subscription(Model): - """Subscription information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID for the subscription. For example, - /subscriptions/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar display_name: The subscription display name. - :vartype display_name: str - :ivar state: The subscription state. Possible values are Enabled, Warned, - PastDue, Disabled, and Deleted. Possible values include: 'Enabled', - 'Warned', 'PastDue', 'Disabled', 'Deleted' - :vartype state: str or - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionState - :param subscription_policies: The subscription policies. - :type subscription_policies: - ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionPolicies - :param authorization_source: The authorization source of the request. - Valid values are one or more combinations of Legacy, RoleBased, Bypassed, - Direct and Management. For example, 'Legacy, RoleBased'. - :type authorization_source: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'display_name': {'readonly': True}, - 'state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'SubscriptionState'}, - 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, - 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, - } - - def __init__(self, *, subscription_policies=None, authorization_source: str=None, **kwargs) -> None: - super(Subscription, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.display_name = None - self.state = None - self.subscription_policies = subscription_policies - self.authorization_source = authorization_source diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description.py deleted file mode 100644 index dc4ddc3edde9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TenantIdDescription(Model): - """Tenant Id information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the tenant. For example, - /tenants/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar tenant_id: The tenant ID. For example, - 00000000-0000-0000-0000-000000000000. - :vartype tenant_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TenantIdDescription, self).__init__(**kwargs) - self.id = None - self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description_paged.py deleted file mode 100644 index 9521e439fe0c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class TenantIdDescriptionPaged(Paged): - """ - A paging container for iterating over a list of :class:`TenantIdDescription ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TenantIdDescription]'} - } - - def __init__(self, *args, **kwargs): - - super(TenantIdDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description_py3.py deleted file mode 100644 index 3b1103d1b9dd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/models/tenant_id_description_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TenantIdDescription(Model): - """Tenant Id information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the tenant. For example, - /tenants/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar tenant_id: The tenant ID. For example, - 00000000-0000-0000-0000-000000000000. - :vartype tenant_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(TenantIdDescription, self).__init__(**kwargs) - self.id = None - self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/__init__.py index f6906611d0e7..5b07794f3097 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/__init__.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- -from .operations import Operations -from .subscriptions_operations import SubscriptionsOperations -from .tenants_operations import TenantsOperations +from ._operations import Operations +from ._subscriptions_operations import SubscriptionsOperations +from ._tenants_operations import TenantsOperations __all__ = [ 'Operations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_operations.py similarity index 90% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_operations.py index 62c7155f056c..bcaba08cf08a 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_operations.py @@ -19,6 +19,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.resource.subscriptions.v2016_06_01.models.OperationPaged[~azure.mgmt.resource.subscriptions.v2016_06_01.models.Operation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.Resources/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_subscriptions_operations.py similarity index 93% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_subscriptions_operations.py index fde956c88828..1b5ab1d052c1 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/subscriptions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_subscriptions_operations.py @@ -19,6 +19,8 @@ class SubscriptionsOperations(object): """SubscriptionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -57,8 +59,7 @@ def list_locations( ~azure.mgmt.resource.subscriptions.v2016_06_01.models.LocationPaged[~azure.mgmt.resource.subscriptions.v2016_06_01.models.Location] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_locations.metadata['url'] @@ -87,6 +88,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -97,12 +103,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LocationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LocationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LocationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_locations.metadata = {'url': '/subscriptions/{subscriptionId}/locations'} @@ -155,7 +159,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Subscription', response) @@ -180,8 +183,7 @@ def list( ~azure.mgmt.resource.subscriptions.v2016_06_01.models.SubscriptionPaged[~azure.mgmt.resource.subscriptions.v2016_06_01.models.Subscription] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -206,6 +208,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -216,12 +223,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SubscriptionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SubscriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SubscriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/tenants_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_tenants_operations.py similarity index 90% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/tenants_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_tenants_operations.py index 5e18e7b59032..890babe9f99d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/tenants_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2016_06_01/operations/_tenants_operations.py @@ -19,6 +19,8 @@ class TenantsOperations(object): """TenantsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.resource.subscriptions.v2016_06_01.models.TenantIdDescriptionPaged[~azure.mgmt.resource.subscriptions.v2016_06_01.models.TenantIdDescription] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TenantIdDescriptionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TenantIdDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TenantIdDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/tenants'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/__init__.py index ce1112dc9c59..399e93fb102f 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .subscription_client import SubscriptionClient -from .version import VERSION +from ._configuration import SubscriptionClientConfiguration +from ._subscription_client import SubscriptionClient +__all__ = ['SubscriptionClient', 'SubscriptionClientConfiguration'] -__all__ = ['SubscriptionClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_configuration.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_configuration.py new file mode 100644 index 000000000000..935bf662873f --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_configuration.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class SubscriptionClientConfiguration(AzureConfiguration): + """Configuration for SubscriptionClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(SubscriptionClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/subscription_client.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_subscription_client.py similarity index 67% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/subscription_client.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_subscription_client.py index 4000d6d613a6..056165548568 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/subscription_client.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/_subscription_client.py @@ -11,39 +11,12 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.subscriptions_operations import SubscriptionsOperations -from .operations.tenants_operations import TenantsOperations -from . import models - - -class SubscriptionClientConfiguration(AzureConfiguration): - """Configuration for SubscriptionClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param str base_url: Service URL - """ - - def __init__( - self, credentials, base_url=None): - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(SubscriptionClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-resource/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials +from ._configuration import SubscriptionClientConfiguration +from .operations import Operations +from .operations import SubscriptionsOperations +from .operations import TenantsOperations +from . import models class SubscriptionClient(SDKClient): diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/__init__.py index 93bb9b27a0d5..cd1fb5a0855e 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/__init__.py @@ -10,35 +10,35 @@ # -------------------------------------------------------------------------- try: - from .location_py3 import Location - from .subscription_policies_py3 import SubscriptionPolicies - from .subscription_py3 import Subscription - from .tenant_id_description_py3 import TenantIdDescription - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation + from ._models_py3 import Location + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import Subscription + from ._models_py3 import SubscriptionPolicies + from ._models_py3 import TenantIdDescription except (SyntaxError, ImportError): - from .location import Location - from .subscription_policies import SubscriptionPolicies - from .subscription import Subscription - from .tenant_id_description import TenantIdDescription - from .operation_display import OperationDisplay - from .operation import Operation -from .operation_paged import OperationPaged -from .location_paged import LocationPaged -from .subscription_paged import SubscriptionPaged -from .tenant_id_description_paged import TenantIdDescriptionPaged -from .subscription_client_enums import ( + from ._models import Location + from ._models import Operation + from ._models import OperationDisplay + from ._models import Subscription + from ._models import SubscriptionPolicies + from ._models import TenantIdDescription +from ._paged_models import LocationPaged +from ._paged_models import OperationPaged +from ._paged_models import SubscriptionPaged +from ._paged_models import TenantIdDescriptionPaged +from ._subscription_client_enums import ( SubscriptionState, SpendingLimit, ) __all__ = [ 'Location', - 'SubscriptionPolicies', + 'Operation', + 'OperationDisplay', 'Subscription', + 'SubscriptionPolicies', 'TenantIdDescription', - 'OperationDisplay', - 'Operation', 'OperationPaged', 'LocationPaged', 'SubscriptionPaged', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_models.py new file mode 100644 index 000000000000..5518d500947d --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_models.py @@ -0,0 +1,245 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Location(Model): + """Location information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the location. For example, + /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar name: The location name. + :vartype name: str + :ivar display_name: The display name of the location. + :vartype display_name: str + :ivar latitude: The latitude of the location. + :vartype latitude: str + :ivar longitude: The longitude of the location. + :vartype longitude: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'latitude': {'readonly': True}, + 'longitude': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'latitude': {'key': 'latitude', 'type': 'str'}, + 'longitude': {'key': 'longitude', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Location, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.name = None + self.display_name = None + self.latitude = None + self.longitude = None + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class Subscription(Model): + """Subscription information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID for the subscription. For example, + /subscriptions/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar display_name: The subscription display name. + :vartype display_name: str + :ivar tenant_id: The subscription tenant ID. + :vartype tenant_id: str + :ivar state: The subscription state. Possible values are Enabled, Warned, + PastDue, Disabled, and Deleted. Possible values include: 'Enabled', + 'Warned', 'PastDue', 'Disabled', 'Deleted' + :vartype state: str or + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionState + :param subscription_policies: The subscription policies. + :type subscription_policies: + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionPolicies + :param authorization_source: The authorization source of the request. + Valid values are one or more combinations of Legacy, RoleBased, Bypassed, + Direct and Management. For example, 'Legacy, RoleBased'. + :type authorization_source: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'display_name': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'SubscriptionState'}, + 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, + 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Subscription, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.display_name = None + self.tenant_id = None + self.state = None + self.subscription_policies = kwargs.get('subscription_policies', None) + self.authorization_source = kwargs.get('authorization_source', None) + + +class SubscriptionPolicies(Model): + """Subscription policies. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar location_placement_id: The subscription location placement ID. The + ID indicates which regions are visible for a subscription. For example, a + subscription with a location placement Id of Public_2014-09-01 has access + to Azure public regions. + :vartype location_placement_id: str + :ivar quota_id: The subscription quota ID. + :vartype quota_id: str + :ivar spending_limit: The subscription spending limit. Possible values + include: 'On', 'Off', 'CurrentPeriodOff' + :vartype spending_limit: str or + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SpendingLimit + """ + + _validation = { + 'location_placement_id': {'readonly': True}, + 'quota_id': {'readonly': True}, + 'spending_limit': {'readonly': True}, + } + + _attribute_map = { + 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, + 'quota_id': {'key': 'quotaId', 'type': 'str'}, + 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, + } + + def __init__(self, **kwargs): + super(SubscriptionPolicies, self).__init__(**kwargs) + self.location_placement_id = None + self.quota_id = None + self.spending_limit = None + + +class TenantIdDescription(Model): + """Tenant Id information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the tenant. For example, + /tenants/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar tenant_id: The tenant ID. For example, + 00000000-0000-0000-0000-000000000000. + :vartype tenant_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TenantIdDescription, self).__init__(**kwargs) + self.id = None + self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_models_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_models_py3.py new file mode 100644 index 000000000000..141c8b28d2b4 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_models_py3.py @@ -0,0 +1,245 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class Location(Model): + """Location information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the location. For example, + /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar name: The location name. + :vartype name: str + :ivar display_name: The display name of the location. + :vartype display_name: str + :ivar latitude: The latitude of the location. + :vartype latitude: str + :ivar longitude: The longitude of the location. + :vartype longitude: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'name': {'readonly': True}, + 'display_name': {'readonly': True}, + 'latitude': {'readonly': True}, + 'longitude': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'latitude': {'key': 'latitude', 'type': 'str'}, + 'longitude': {'key': 'longitude', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Location, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.name = None + self.display_name = None + self.latitude = None + self.longitude = None + + +class Operation(Model): + """Microsoft.Resources operation. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: Service provider: Microsoft.Resources + :type provider: str + :param resource: Resource on which the operation is performed: Profile, + endpoint, etc. + :type resource: str + :param operation: Operation type: Read, write, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class Subscription(Model): + """Subscription information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID for the subscription. For example, + /subscriptions/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar subscription_id: The subscription ID. + :vartype subscription_id: str + :ivar display_name: The subscription display name. + :vartype display_name: str + :ivar tenant_id: The subscription tenant ID. + :vartype tenant_id: str + :ivar state: The subscription state. Possible values are Enabled, Warned, + PastDue, Disabled, and Deleted. Possible values include: 'Enabled', + 'Warned', 'PastDue', 'Disabled', 'Deleted' + :vartype state: str or + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionState + :param subscription_policies: The subscription policies. + :type subscription_policies: + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionPolicies + :param authorization_source: The authorization source of the request. + Valid values are one or more combinations of Legacy, RoleBased, Bypassed, + Direct and Management. For example, 'Legacy, RoleBased'. + :type authorization_source: str + """ + + _validation = { + 'id': {'readonly': True}, + 'subscription_id': {'readonly': True}, + 'display_name': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'SubscriptionState'}, + 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, + 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, + } + + def __init__(self, *, subscription_policies=None, authorization_source: str=None, **kwargs) -> None: + super(Subscription, self).__init__(**kwargs) + self.id = None + self.subscription_id = None + self.display_name = None + self.tenant_id = None + self.state = None + self.subscription_policies = subscription_policies + self.authorization_source = authorization_source + + +class SubscriptionPolicies(Model): + """Subscription policies. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar location_placement_id: The subscription location placement ID. The + ID indicates which regions are visible for a subscription. For example, a + subscription with a location placement Id of Public_2014-09-01 has access + to Azure public regions. + :vartype location_placement_id: str + :ivar quota_id: The subscription quota ID. + :vartype quota_id: str + :ivar spending_limit: The subscription spending limit. Possible values + include: 'On', 'Off', 'CurrentPeriodOff' + :vartype spending_limit: str or + ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SpendingLimit + """ + + _validation = { + 'location_placement_id': {'readonly': True}, + 'quota_id': {'readonly': True}, + 'spending_limit': {'readonly': True}, + } + + _attribute_map = { + 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, + 'quota_id': {'key': 'quotaId', 'type': 'str'}, + 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, + } + + def __init__(self, **kwargs) -> None: + super(SubscriptionPolicies, self).__init__(**kwargs) + self.location_placement_id = None + self.quota_id = None + self.spending_limit = None + + +class TenantIdDescription(Model): + """Tenant Id information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The fully qualified ID of the tenant. For example, + /tenants/00000000-0000-0000-0000-000000000000. + :vartype id: str + :ivar tenant_id: The tenant ID. For example, + 00000000-0000-0000-0000-000000000000. + :vartype tenant_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(TenantIdDescription, self).__init__(**kwargs) + self.id = None + self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_paged_models.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_paged_models.py new file mode 100644 index 000000000000..abeccdbcc762 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_paged_models.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) +class LocationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Location ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Location]'} + } + + def __init__(self, *args, **kwargs): + + super(LocationPaged, self).__init__(*args, **kwargs) +class SubscriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`Subscription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Subscription]'} + } + + def __init__(self, *args, **kwargs): + + super(SubscriptionPaged, self).__init__(*args, **kwargs) +class TenantIdDescriptionPaged(Paged): + """ + A paging container for iterating over a list of :class:`TenantIdDescription ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[TenantIdDescription]'} + } + + def __init__(self, *args, **kwargs): + + super(TenantIdDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_client_enums.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_subscription_client_enums.py similarity index 100% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_client_enums.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/_subscription_client_enums.py diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location.py deleted file mode 100644 index 691616984d27..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Location(Model): - """Location information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the location. For example, - /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar name: The location name. - :vartype name: str - :ivar display_name: The display name of the location. - :vartype display_name: str - :ivar latitude: The latitude of the location. - :vartype latitude: str - :ivar longitude: The longitude of the location. - :vartype longitude: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'latitude': {'readonly': True}, - 'longitude': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'latitude': {'key': 'latitude', 'type': 'str'}, - 'longitude': {'key': 'longitude', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Location, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.name = None - self.display_name = None - self.latitude = None - self.longitude = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_paged.py deleted file mode 100644 index e15bc5331eb9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class LocationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Location ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Location]'} - } - - def __init__(self, *args, **kwargs): - - super(LocationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_py3.py deleted file mode 100644 index 40af216a6647..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Location(Model): - """Location information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the location. For example, - /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar name: The location name. - :vartype name: str - :ivar display_name: The display name of the location. - :vartype display_name: str - :ivar latitude: The latitude of the location. - :vartype latitude: str - :ivar longitude: The longitude of the location. - :vartype longitude: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'name': {'readonly': True}, - 'display_name': {'readonly': True}, - 'latitude': {'readonly': True}, - 'longitude': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'latitude': {'key': 'latitude', 'type': 'str'}, - 'longitude': {'key': 'longitude', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Location, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.name = None - self.display_name = None - self.latitude = None - self.longitude = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation.py deleted file mode 100644 index b5f5d9b993f9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_display.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_display.py deleted file mode 100644 index 98e3ef7e561c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_display.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_display_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_display_py3.py deleted file mode 100644 index 9579860dfd81..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_display_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: Service provider: Microsoft.Resources - :type provider: str - :param resource: Resource on which the operation is performed: Profile, - endpoint, etc. - :type resource: str - :param operation: Operation type: Read, write, delete, etc. - :type operation: str - :param description: Description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_paged.py deleted file mode 100644 index d1b8f2f1279e..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_py3.py deleted file mode 100644 index c40d85b2856c..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_py3.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Microsoft.Resources operation. - - :param name: Operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription.py deleted file mode 100644 index 3ea6938c1795..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Subscription(Model): - """Subscription information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID for the subscription. For example, - /subscriptions/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar display_name: The subscription display name. - :vartype display_name: str - :ivar tenant_id: The subscription tenant ID. - :vartype tenant_id: str - :ivar state: The subscription state. Possible values are Enabled, Warned, - PastDue, Disabled, and Deleted. Possible values include: 'Enabled', - 'Warned', 'PastDue', 'Disabled', 'Deleted' - :vartype state: str or - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionState - :param subscription_policies: The subscription policies. - :type subscription_policies: - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionPolicies - :param authorization_source: The authorization source of the request. - Valid values are one or more combinations of Legacy, RoleBased, Bypassed, - Direct and Management. For example, 'Legacy, RoleBased'. - :type authorization_source: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'display_name': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'SubscriptionState'}, - 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, - 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Subscription, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.display_name = None - self.tenant_id = None - self.state = None - self.subscription_policies = kwargs.get('subscription_policies', None) - self.authorization_source = kwargs.get('authorization_source', None) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_paged.py deleted file mode 100644 index 17abdb42ba7a..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class SubscriptionPaged(Paged): - """ - A paging container for iterating over a list of :class:`Subscription ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Subscription]'} - } - - def __init__(self, *args, **kwargs): - - super(SubscriptionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_policies.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_policies.py deleted file mode 100644 index 3726a86eedfd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_policies.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubscriptionPolicies(Model): - """Subscription policies. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar location_placement_id: The subscription location placement ID. The - ID indicates which regions are visible for a subscription. For example, a - subscription with a location placement Id of Public_2014-09-01 has access - to Azure public regions. - :vartype location_placement_id: str - :ivar quota_id: The subscription quota ID. - :vartype quota_id: str - :ivar spending_limit: The subscription spending limit. Possible values - include: 'On', 'Off', 'CurrentPeriodOff' - :vartype spending_limit: str or - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SpendingLimit - """ - - _validation = { - 'location_placement_id': {'readonly': True}, - 'quota_id': {'readonly': True}, - 'spending_limit': {'readonly': True}, - } - - _attribute_map = { - 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, - 'quota_id': {'key': 'quotaId', 'type': 'str'}, - 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, - } - - def __init__(self, **kwargs): - super(SubscriptionPolicies, self).__init__(**kwargs) - self.location_placement_id = None - self.quota_id = None - self.spending_limit = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_policies_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_policies_py3.py deleted file mode 100644 index de232506bede..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_policies_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubscriptionPolicies(Model): - """Subscription policies. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar location_placement_id: The subscription location placement ID. The - ID indicates which regions are visible for a subscription. For example, a - subscription with a location placement Id of Public_2014-09-01 has access - to Azure public regions. - :vartype location_placement_id: str - :ivar quota_id: The subscription quota ID. - :vartype quota_id: str - :ivar spending_limit: The subscription spending limit. Possible values - include: 'On', 'Off', 'CurrentPeriodOff' - :vartype spending_limit: str or - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SpendingLimit - """ - - _validation = { - 'location_placement_id': {'readonly': True}, - 'quota_id': {'readonly': True}, - 'spending_limit': {'readonly': True}, - } - - _attribute_map = { - 'location_placement_id': {'key': 'locationPlacementId', 'type': 'str'}, - 'quota_id': {'key': 'quotaId', 'type': 'str'}, - 'spending_limit': {'key': 'spendingLimit', 'type': 'SpendingLimit'}, - } - - def __init__(self, **kwargs) -> None: - super(SubscriptionPolicies, self).__init__(**kwargs) - self.location_placement_id = None - self.quota_id = None - self.spending_limit = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_py3.py deleted file mode 100644 index ffe4fc556aaf..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/subscription_py3.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Subscription(Model): - """Subscription information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID for the subscription. For example, - /subscriptions/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar subscription_id: The subscription ID. - :vartype subscription_id: str - :ivar display_name: The subscription display name. - :vartype display_name: str - :ivar tenant_id: The subscription tenant ID. - :vartype tenant_id: str - :ivar state: The subscription state. Possible values are Enabled, Warned, - PastDue, Disabled, and Deleted. Possible values include: 'Enabled', - 'Warned', 'PastDue', 'Disabled', 'Deleted' - :vartype state: str or - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionState - :param subscription_policies: The subscription policies. - :type subscription_policies: - ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionPolicies - :param authorization_source: The authorization source of the request. - Valid values are one or more combinations of Legacy, RoleBased, Bypassed, - Direct and Management. For example, 'Legacy, RoleBased'. - :type authorization_source: str - """ - - _validation = { - 'id': {'readonly': True}, - 'subscription_id': {'readonly': True}, - 'display_name': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'SubscriptionState'}, - 'subscription_policies': {'key': 'subscriptionPolicies', 'type': 'SubscriptionPolicies'}, - 'authorization_source': {'key': 'authorizationSource', 'type': 'str'}, - } - - def __init__(self, *, subscription_policies=None, authorization_source: str=None, **kwargs) -> None: - super(Subscription, self).__init__(**kwargs) - self.id = None - self.subscription_id = None - self.display_name = None - self.tenant_id = None - self.state = None - self.subscription_policies = subscription_policies - self.authorization_source = authorization_source diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description.py deleted file mode 100644 index dc4ddc3edde9..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TenantIdDescription(Model): - """Tenant Id information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the tenant. For example, - /tenants/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar tenant_id: The tenant ID. For example, - 00000000-0000-0000-0000-000000000000. - :vartype tenant_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TenantIdDescription, self).__init__(**kwargs) - self.id = None - self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description_paged.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description_paged.py deleted file mode 100644 index 35265e5a32a1..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class TenantIdDescriptionPaged(Paged): - """ - A paging container for iterating over a list of :class:`TenantIdDescription ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[TenantIdDescription]'} - } - - def __init__(self, *args, **kwargs): - - super(TenantIdDescriptionPaged, self).__init__(*args, **kwargs) diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description_py3.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description_py3.py deleted file mode 100644 index 3b1103d1b9dd..000000000000 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/tenant_id_description_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class TenantIdDescription(Model): - """Tenant Id information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The fully qualified ID of the tenant. For example, - /tenants/00000000-0000-0000-0000-000000000000. - :vartype id: str - :ivar tenant_id: The tenant ID. For example, - 00000000-0000-0000-0000-000000000000. - :vartype tenant_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(TenantIdDescription, self).__init__(**kwargs) - self.id = None - self.tenant_id = None diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/__init__.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/__init__.py index f6906611d0e7..5b07794f3097 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/__init__.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/__init__.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- -from .operations import Operations -from .subscriptions_operations import SubscriptionsOperations -from .tenants_operations import TenantsOperations +from ._operations import Operations +from ._subscriptions_operations import SubscriptionsOperations +from ._tenants_operations import TenantsOperations __all__ = [ 'Operations', diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_operations.py similarity index 90% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_operations.py index a75f3a7a8dfd..88f938fc4e31 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_operations.py @@ -19,6 +19,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.resource.subscriptions.v2018_06_01.models.OperationPaged[~azure.mgmt.resource.subscriptions.v2018_06_01.models.Operation] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.Resources/operations'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/subscriptions_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_subscriptions_operations.py similarity index 93% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/subscriptions_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_subscriptions_operations.py index 999256e03252..bccda2e3bb8d 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/subscriptions_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_subscriptions_operations.py @@ -19,6 +19,8 @@ class SubscriptionsOperations(object): """SubscriptionsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -57,8 +59,7 @@ def list_locations( ~azure.mgmt.resource.subscriptions.v2018_06_01.models.LocationPaged[~azure.mgmt.resource.subscriptions.v2018_06_01.models.Location] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_locations.metadata['url'] @@ -87,6 +88,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -97,12 +103,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.LocationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.LocationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.LocationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_locations.metadata = {'url': '/subscriptions/{subscriptionId}/locations'} @@ -155,7 +159,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Subscription', response) @@ -180,8 +183,7 @@ def list( ~azure.mgmt.resource.subscriptions.v2018_06_01.models.SubscriptionPaged[~azure.mgmt.resource.subscriptions.v2018_06_01.models.Subscription] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -206,6 +208,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -216,12 +223,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.SubscriptionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SubscriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SubscriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/tenants_operations.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_tenants_operations.py similarity index 90% rename from sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/tenants_operations.py rename to sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_tenants_operations.py index 11c3b1811ca4..d0e2fb118ff8 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/tenants_operations.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/operations/_tenants_operations.py @@ -19,6 +19,8 @@ class TenantsOperations(object): """TenantsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( ~azure.mgmt.resource.subscriptions.v2018_06_01.models.TenantIdDescriptionPaged[~azure.mgmt.resource.subscriptions.v2018_06_01.models.TenantIdDescription] :raises: :class:`CloudError` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -87,12 +93,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.TenantIdDescriptionPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.TenantIdDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.TenantIdDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/tenants'} diff --git a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/version.py b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/version.py index 39bc8ba8c51c..63bcd0444b12 100644 --- a/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/version.py +++ b/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/version.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "2.2.0" +VERSION = "3.0.0" diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml index cb6b3b6e8fca..4a05dedd5f1f 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_basic.yaml @@ -5,19 +5,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['109'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:54:29 GMT'] + date: ['Fri, 31 May 2019 16:12:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -39,25 +38,25 @@ interactions: Connection: [keep-alive] Content-Length: ['728'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","properties":{"templateHash":"10806851314671316010","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-06-13T16:54:33.1749111Z","duration":"PT1.0641247S","correlationId":"611391aa-3c48-42aa-bcf9-51156153ce45","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14982310942895243311","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-05-31T16:12:29.8834906Z","duration":"PT1.0123317S","correlationId":"54145862-80a0-486d-811e-de14b0df661c","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586726980133668277?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586422877366064541?api-version=2019-05-01'] cache-control: [no-cache] - content-length: ['660'] + content-length: ['701'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:54:32 GMT'] + date: ['Fri, 31 May 2019 16:12:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -65,17 +64,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586726980133668277?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operationStatuses/08586422877366064541?api-version=2019-05-01 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:03 GMT'] + date: ['Fri, 31 May 2019 16:13:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -88,18 +87,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","properties":{"templateHash":"10806851314671316010","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-06-13T16:54:44.4623031Z","duration":"PT12.3515167S","correlationId":"611391aa-3c48-42aa-bcf9-51156153ce45","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14982310942895243311","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-05-31T16:12:33.8531622Z","duration":"PT4.9820033S","correlationId":"54145862-80a0-486d-811e-de14b0df661c","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} headers: cache-control: [no-cache] - content-length: ['983'] + content-length: ['1023'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:03 GMT'] + date: ['Fri, 31 May 2019 16:13:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -112,20 +111,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/?api-version=2019-05-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","properties":{"templateHash":"10806851314671316010","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-06-13T16:54:44.4623031Z","duration":"PT12.3515167S","correlationId":"611391aa-3c48-42aa-bcf9-51156153ce45","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14982310942895243311","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-05-31T16:12:33.8531622Z","duration":"PT4.9820033S","correlationId":"54145862-80a0-486d-811e-de14b0df661c","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}'} headers: cache-control: [no-cache] - content-length: ['995'] + content-length: ['1035'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:04 GMT'] + date: ['Fri, 31 May 2019 16:13:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -138,20 +136,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","properties":{"templateHash":"10806851314671316010","parameters":{"location":{"type":"String","value":"West - US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-06-13T16:54:44.4623031Z","duration":"PT12.3515167S","correlationId":"611391aa-3c48-42aa-bcf9-51156153ce45","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe","name":"pytestdeployment667e10fe","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14982310942895243311","parameters":{"location":{"type":"String","value":"West + US"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-05-31T16:12:33.8531622Z","duration":"PT4.9820033S","correlationId":"54145862-80a0-486d-811e-de14b0df661c","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputs":{"myparameter":{"type":"Object","value":{"platformUpdateDomainCount":5,"platformFaultDomainCount":3}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} headers: cache-control: [no-cache] - content-length: ['983'] + content-length: ['1023'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:04 GMT'] + date: ['Fri, 31 May 2019 16:13:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -164,19 +161,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/deployments/pytestdeployment667e10fe/operations?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/deployments/pytestdeployment667e10fe/operations?api-version=2019-05-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/35FBA75974FE3D6C","operationId":"35FBA75974FE3D6C","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2018-06-13T16:54:38.6126255Z","duration":"PT4.0786711S","trackingId":"85cbe52c-04fc-4c46-977c-3e8d039d87d1","serviceRequestId":"77f0e1a6-e98a-4780-8010-148d9841442e","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/08586726980133668277","operationId":"08586726980133668277","properties":{"provisioningOperation":"EvaluateDeploymentOutput","provisioningState":"Succeeded","timestamp":"2018-06-13T16:54:44.2085385Z","duration":"PT5.1790796S","trackingId":"cab2ea2a-b505-4784-8710-7cdd951edccb","statusCode":"OK","statusMessage":null}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/35FBA75974FE3D6C","operationId":"35FBA75974FE3D6C","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2019-05-31T16:12:32.7230816Z","duration":"PT1.7424517S","trackingId":"c613d335-073c-46e9-8c63-afa4a604d7fa","serviceRequestId":"1e12a106-1f55-4164-8f50-742f77a5ecac","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/08586422877366064541","operationId":"08586422877366064541","properties":{"provisioningOperation":"EvaluateDeploymentOutput","provisioningState":"Succeeded","timestamp":"2019-05-31T16:12:33.588723Z","duration":"PT0.5909502S","trackingId":"1f6f3afd-fcef-453d-b814-2cab72cc6148","statusCode":"OK","statusMessage":null}}]}'} headers: cache-control: [no-cache] - content-length: ['1353'] + content-length: ['1352'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:05 GMT'] + date: ['Fri, 31 May 2019 16:13:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -189,19 +185,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/deployments/pytestdeployment667e10fe/operations/35FBA75974FE3D6C?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/deployments/pytestdeployment667e10fe/operations/35FBA75974FE3D6C?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/35FBA75974FE3D6C","operationId":"35FBA75974FE3D6C","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2018-06-13T16:54:38.6126255Z","duration":"PT4.0786711S","trackingId":"85cbe52c-04fc-4c46-977c-3e8d039d87d1","serviceRequestId":"77f0e1a6-e98a-4780-8010-148d9841442e","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/operations/35FBA75974FE3D6C","operationId":"35FBA75974FE3D6C","properties":{"provisioningOperation":"Create","provisioningState":"Succeeded","timestamp":"2019-05-31T16:12:32.7230816Z","duration":"PT1.7424517S","trackingId":"c613d335-073c-46e9-8c63-afa4a604d7fa","serviceRequestId":"1e12a106-1f55-4164-8f50-742f77a5ecac","statusCode":"OK","targetResource":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Compute/availabilitySets/availabilitySet1","resourceType":"Microsoft.Compute/availabilitySets","resourceName":"availabilitySet1"}}}'} headers: cache-control: [no-cache] content-length: ['821'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:06 GMT'] + date: ['Fri, 31 May 2019 16:13:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -215,28 +210,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/cancel?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/cancel?api-version=2019-05-01 response: body: {string: '{"error":{"code":"DeploymentCannotBeCancelled","message":"The deployment ''pytestdeployment667e10fe'' cannot be cancelled because it has provisioning state ''Succeeded'' or it has already expired (expiration time - is ''6/20/2018 4:54:32 PM'')."}}'} + is ''6/7/2019 4:12:28 PM'')."}}'} headers: cache-control: [no-cache] - content-length: ['239'] + content-length: ['238'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:06 GMT'] + date: ['Fri, 31 May 2019 16:13:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] x-ms-failure-cause: [gateway] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 409, message: Conflict} - request: body: '{"properties": {"mode": "Incremental"}}' @@ -246,11 +240,11 @@ interactions: Connection: [keep-alive] Content-Length: ['39'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/validate?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/validate?api-version=2019-05-01 response: body: {string: '{"error":{"code":"InvalidDeployment","message":"The deployment ''pytestdeployment667e10fe'' must have either the TemplateLink or Template @@ -259,13 +253,13 @@ interactions: cache-control: [no-cache] content-length: ['208'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:07 GMT'] + date: ['Fri, 31 May 2019 16:13:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] x-ms-failure-cause: [gateway] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 400, message: Bad Request} - request: body: null @@ -274,28 +268,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/exportTemplate?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe/exportTemplate?api-version=2019-05-01 response: body: {string: '{"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"location":{"allowedValues":["East US","West US","West Europe","East Asia","South East Asia"],"type":"String","metadata":{"description":"Location - to deploy to"}}},"resources":[{"type":"Microsoft.Compute/availabilitySets","name":"availabilitySet1","apiVersion":"2015-05-01-preview","location":"[parameters(''location'')]","properties":{}}],"outputs":{"myparameter":{"type":"Object","value":"[reference(''Microsoft.Compute/availabilitySets/availabilitySet1'')]"}}}}'} + to deploy to"}}},"resources":[{"type":"Microsoft.Compute/availabilitySets","apiVersion":"2015-05-01-preview","name":"availabilitySet1","location":"[parameters(''location'')]","properties":{}}],"outputs":{"myparameter":{"type":"Object","value":"[reference(''Microsoft.Compute/availabilitySets/availabilitySet1'')]"}}}}'} headers: cache-control: [no-cache] content-length: ['605'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:55:06 GMT'] + date: ['Fri, 31 May 2019 16:13:02 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -304,20 +297,19 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_basic667e10fe/providers/Microsoft.Resources/deployments/pytestdeployment667e10fe?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:55:07 GMT'] + date: ['Fri, 31 May 2019 16:13:03 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -329,18 +321,40 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-05-01 + response: + body: {string: ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 31 May 2019 16:13:17 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:55:24 GMT'] + date: ['Fri, 31 May 2019 16:13:33 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -351,15 +365,15 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtVEVTVDo1Rk1HTVQ6NUZSRVNPVVJDRTo1RlRFU1Q6NUZERVBMT1lNRU5UUzo1RkJBU0lDNjY3RTEwRkUtUFlURVNUREVQTE9ZTUVOVDY2N0UxMEZFLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] - date: ['Wed, 13 Jun 2018 16:55:39 GMT'] + date: ['Fri, 31 May 2019 16:13:48 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template.yaml index 2262b1da011e..813d6dc1ebcf 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template.yaml @@ -9,19 +9,19 @@ interactions: Connection: [keep-alive] Content-Length: ['368'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2474856064091212489","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-06-13T16:38:24.7328946Z","duration":"PT0.4635101S","correlationId":"30f5f127-eb12-45e3-a278-0cb91647761f","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2914626624598878192","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-05-31T16:13:53.308992Z","duration":"PT0.2090256S","correlationId":"6ff9de81-e11d-43e8-b7f3-6529e8bf1896","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[]}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586726989812082228?api-version=2018-05-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586422876523776377?api-version=2019-05-01'] cache-control: [no-cache] - content-length: ['1010'] + content-length: ['1050'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:38:24 GMT'] + date: ['Fri, 31 May 2019 16:13:52 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -34,17 +34,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586726989812082228?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e/operationStatuses/08586422876523776377?api-version=2019-05-01 response: body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:38:55 GMT'] + date: ['Fri, 31 May 2019 16:14:23 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -57,17 +57,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2474856064091212489","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-06-13T16:38:37.0760289Z","duration":"PT12.8066444S","correlationId":"30f5f127-eb12-45e3-a278-0cb91647761f","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2914626624598878192","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-05-31T16:13:57.0099753Z","duration":"PT3.9100089S","correlationId":"6ff9de81-e11d-43e8-b7f3-6529e8bf1896","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} headers: cache-control: [no-cache] - content-length: ['1230'] + content-length: ['1270'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:38:55 GMT'] + date: ['Fri, 31 May 2019 16:14:23 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -80,19 +80,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/?api-version=2019-05-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2474856064091212489","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-06-13T16:38:37.0760289Z","duration":"PT12.8066444S","correlationId":"30f5f127-eb12-45e3-a278-0cb91647761f","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2914626624598878192","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-05-31T16:13:57.0099753Z","duration":"PT3.9100089S","correlationId":"6ff9de81-e11d-43e8-b7f3-6529e8bf1896","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}]}'} headers: cache-control: [no-cache] - content-length: ['1242'] + content-length: ['1282'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:38:56 GMT'] + date: ['Fri, 31 May 2019 16:14:23 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -105,19 +104,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2474856064091212489","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-06-13T16:38:37.0760289Z","duration":"PT12.8066444S","correlationId":"30f5f127-eb12-45e3-a278-0cb91647761f","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Resources/deployments/pytestlinked27ec152e","name":"pytestlinked27ec152e","type":"Microsoft.Resources/deployments","properties":{"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.json","contentVersion":"1.0.0.0"},"templateHash":"2914626624598878192","parametersLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-availability-set-create-3FDs-20UDs/azuredeploy.parameters.json"},"parameters":{"location":{"type":"String","value":"westus"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-05-31T16:13:57.0099753Z","duration":"PT3.9100089S","correlationId":"6ff9de81-e11d-43e8-b7f3-6529e8bf1896","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"availabilitySets","locations":["westus"]}]}],"dependencies":[],"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e/providers/Microsoft.Compute/availabilitySets/availabilitySet1"}]}}'} headers: cache-control: [no-cache] - content-length: ['1230'] + content-length: ['1270'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:38:56 GMT'] + date: ['Fri, 31 May 2019 16:14:23 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml index 292d074678f1..e053ccddebb3 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_deployments_linked_template_error.yaml @@ -9,15 +9,15 @@ interactions: Connection: [keep-alive] Content-Length: ['330'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template_errorafa117b7/providers/Microsoft.Resources/deployments/pytestlinkedafa117b7?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_deployments_linked_template_errorafa117b7/providers/Microsoft.Resources/deployments/pytestlinkedafa117b7?api-version=2019-05-01 response: body: {string: '{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment ''pytestlinkedafa117b7'' is not valid according to the validation - procedure. The tracking id is ''cef50c08-59d4-424e-b624-1d05a507e9de''. See + procedure. The tracking id is ''234909be-eb52-4824-be8d-2daa0135bedd''. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.","details":[{"code":"InvalidDomainNameLabel","message":"The domain name label GEN-UNIQUE is invalid. It must conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.","details":[]}]}}'} @@ -25,12 +25,12 @@ interactions: cache-control: [no-cache] content-length: ['503'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:39:03 GMT'] + date: ['Fri, 31 May 2019 16:14:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] x-ms-failure-cause: [gateway] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 400, message: Bad Request} version: 1 diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_provider_locations.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_provider_locations.yaml index 1ce402a1ccbc..7e6a13fe8467 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_provider_locations.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_provider_locations.yaml @@ -5,336 +5,303 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web","namespace":"Microsoft.Web","authorization":{"applicationId":"abfa0a7c-a6b6-4736-8310-5855508787cd","roleDefinitionId":"f47ed98b-b063-4a5b-9e10-4b9b44fa7735"},"resourceTypes":[{"resourceType":"sites/instances","locations":["Central + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web","namespace":"Microsoft.Web","authorization":{"applicationId":"abfa0a7c-a6b6-4736-8310-5855508787cd","roleDefinitionId":"f47ed98b-b063-4a5b-9e10-4b9b44fa7735"},"resourceTypes":[{"resourceType":"publishingUsers","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"sites/slots/instances","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"ishostnameavailable","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"sites/instances/extensions","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"sites/slots/instances/extensions","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"publishingUsers","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"ishostnameavailable","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"validate","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"validate","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central US (Stage)","North - Central US (Stage)","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"isusernameavailable","locations":["Central + Central US (Stage)","France Central","South Africa North","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"isusernameavailable","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"sourceControls","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sourceControls","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"availableStacks","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"availableStacks","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"listSitesAssignedToHostName","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"listSitesAssignedToHostName","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"sites/hostNameBindings","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/networkConfig","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"sites/domainOwnershipIdentifiers","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/slots/networkConfig","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"sites/slots/hostNameBindings","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/hostNameBindings","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"operations","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/slots/hostNameBindings","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"certificates","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"CrossSubscriptionResourceMove"},{"resourceType":"serverFarms","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"certificates","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"serverFarms/workers","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"serverFarms","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2017-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"sites","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"sites","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"sites/slots","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2017-08-01","2016-09-01","2016-08-01","2016-03-01","2015-11-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2015-01-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"sites/slots","locations":["Central US","North + Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"runtimes","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"sites/metrics","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2017-08-01","2016-09-01","2016-08-01","2016-03-01","2015-11-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2015-01-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"runtimes","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"recommendations","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"resourceHealthMetadata","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"georegions","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/premieraddons","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"sites/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"sites/slots/metrics","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"hostingEnvironments","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"sites/slots/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"serverFarms/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"serverFarms/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"sites/recommendations","locations":[],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"recommendations","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"sites/resourceHealthMetadata","locations":[],"apiVersions":["2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"resourceHealthMetadata","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"georegions","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}]},{"resourceType":"sites/premieraddons","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-02-01","2019-01-01","2018-11-01","2018-08-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"hostingEnvironments/multiRolePools","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"hostingEnvironments","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-02-01","2018-11-01","2018-08-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"hostingEnvironments/workerPools","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Central US EUAP"],"apiVersions":["2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"zoneMappings":[{"location":"East - US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West - Europe","zones":["1","2","3"]},{"location":"Central US EUAP","zones":["1","2"]},{"location":"France - Central","zones":["1","2","3"]},{"location":"Southeast Asia","zones":["1","2","3"]},{"location":"West - US 2","zones":["1","2","3"]}],"capabilities":"None"},{"resourceType":"hostingEnvironments/multiRolePools","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-02-01","2018-11-01","2018-08-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"deploymentLocations","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Central US EUAP"],"apiVersions":["2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"hostingEnvironments/workerPools","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"functions","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Central US EUAP"],"apiVersions":["2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"hostingEnvironments/metrics","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"deletedSites","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/instances","locations":[],"apiVersions":["2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/instances/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/instances/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/instances","locations":[],"apiVersions":["2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"hostingEnvironments/workerPools/instances/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/instances/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2014-04-01"}]},{"resourceType":"deploymentLocations","locations":[],"apiVersions":["2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"functions","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","East Asia (Stage)","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"locations/deletedSites","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"deletedSites","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","East Asia (Stage)","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"defaultApiVersion":"2018-02-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"ishostingenvironmentnameavailable","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central"],"apiVersions":["2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"ishostingenvironmentnameavailable","locations":[],"apiVersions":["2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"classicMobileServices","locations":[],"apiVersions":["2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"connections","locations":["North + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-11-01","2016-08-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"defaultApiVersion":"2018-02-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"connections","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"customApis","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"customApis","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":[],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}]},{"resourceType":"locations/listWsdlInterfaces","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/listWsdlInterfaces","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}]},{"resourceType":"locations/extractApiDefinitionFromWsdl","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/extractApiDefinitionFromWsdl","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}]},{"resourceType":"locations/managedApis","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/managedApis","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}]},{"resourceType":"locations/runtimes","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/runtimes","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}]},{"resourceType":"locations/apiOperations","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/apiOperations","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}]},{"resourceType":"connectionGateways","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"connectionGateways","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations/connectionGatewayInstallations","locations":["North + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectionGatewayInstallations","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}]},{"resourceType":"checkNameAvailability","locations":["Central + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"billingMeters","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"billingMeters","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]},{"resourceType":"verifyHostingEnvironmentVnet","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"verifyHostingEnvironmentVnet","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}]}],"registrationState":"Registered"}'} + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}'} headers: cache-control: [no-cache] - content-length: ['49732'] + content-length: ['43641'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:39:05 GMT'] + date: ['Fri, 31 May 2019 16:14:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_provider_registration.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_provider_registration.yaml new file mode 100644 index 000000000000..3716333dca28 --- /dev/null +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_provider_registration.yaml @@ -0,0 +1,113 @@ +interactions: +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search/unregister?api-version=2019-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search","namespace":"Microsoft.Search","authorization":{"applicationId":"408992c7-2af6-4ff1-92e3-65b73d2b5092","roleDefinitionId":"20FA3191-87CF-4C3D-9510-74CCB594A310"},"resourceTypes":[{"resourceType":"searchServices","locations":["West + US","East US","North Europe","West Europe","Southeast Asia","East Asia","North + Central US","South Central US","Central US","Japan West","Japan East","Korea + Central","Australia East","Brazil South","West US 2","East US 2","Central + India","West Central US","Canada Central","UK South","France Central","East + US 2 EUAP"],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-02-28","2014-07-31-Preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"resourceHealthMetadata","locations":["West + US","West US 2","East US","East US 2","North Europe","West Europe","Southeast + Asia","East Asia","North Central US","South Central US","Central US","Japan + West","Japan East","Korea Central","Australia East","Brazil South","Central + India","West Central US","Canada Central","UK South","France Central"],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"None"}],"registrationState":"Unregistering","registrationPolicy":"RegistrationRequired"}'} + headers: + cache-control: [no-cache] + content-length: ['1667'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 31 May 2019 16:53:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search?api-version=2019-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search","namespace":"Microsoft.Search","authorization":{"applicationId":"408992c7-2af6-4ff1-92e3-65b73d2b5092","roleDefinitionId":"20FA3191-87CF-4C3D-9510-74CCB594A310"},"resourceTypes":[{"resourceType":"searchServices","locations":["West + US","East US","North Europe","West Europe","Southeast Asia","East Asia","North + Central US","South Central US","Central US","Japan West","Japan East","Korea + Central","Australia East","Brazil South","West US 2","East US 2","Central + India","West Central US","Canada Central","UK South","France Central","East + US 2 EUAP"],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-02-28","2014-07-31-Preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"resourceHealthMetadata","locations":["West + US","West US 2","East US","East US 2","North Europe","West Europe","Southeast + Asia","East Asia","North Central US","South Central US","Central US","Japan + West","Japan East","Korea Central","Australia East","Brazil South","Central + India","West Central US","Canada Central","UK South","France Central"],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"None"}],"registrationState":"Unregistering","registrationPolicy":"RegistrationRequired"}'} + headers: + cache-control: [no-cache] + content-length: ['1667'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 31 May 2019 16:53:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search/register?api-version=2019-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search","namespace":"Microsoft.Search","authorization":{"applicationId":"408992c7-2af6-4ff1-92e3-65b73d2b5092","roleDefinitionId":"20FA3191-87CF-4C3D-9510-74CCB594A310"},"resourceTypes":[{"resourceType":"searchServices","locations":["West + US","East US","North Europe","West Europe","Southeast Asia","East Asia","North + Central US","South Central US","Central US","Japan West","Japan East","Korea + Central","Australia East","Brazil South","West US 2","East US 2","Central + India","West Central US","Canada Central","UK South","France Central","East + US 2 EUAP"],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-02-28","2014-07-31-Preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"resourceHealthMetadata","locations":["West + US","West US 2","East US","East US 2","North Europe","West Europe","Southeast + Asia","East Asia","North Central US","South Central US","Central US","Japan + West","Japan East","Korea Central","Australia East","Brazil South","Central + India","West Central US","Canada Central","UK South","France Central"],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"None"}],"registrationState":"Registering","registrationPolicy":"RegistrationRequired"}'} + headers: + cache-control: [no-cache] + content-length: ['1665'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 31 May 2019 16:53:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +version: 1 diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_providers.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_providers.yaml index c3fd71a0264a..985e622524b7 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_providers.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_providers.yaml @@ -5,3037 +5,4566 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.22 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search/unregister?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search","namespace":"Microsoft.Search","resourceTypes":[{"resourceType":"searchServices","locations":["West - US","East US","North Europe","West Europe","Southeast Asia","East Asia","North - Central US","South Central US","Japan West","Australia East","Brazil South","West - US 2","East US 2","Central India","West Central US","Canada Central","UK South","East - US 2 EUAP"],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-02-28","2014-07-31-Preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2015-08-19"]},{"resourceType":"resourceHealthMetadata","locations":["West - US","West US 2","East US","East US 2","North Europe","West Europe","Southeast - Asia","East Asia","North Central US","South Central US","Japan West","Australia - East","Brazil South","Central India","West Central US","Canada Central","UK - South"],"apiVersions":["2015-08-19"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-08-19","2015-02-28"]}],"registrationState":"Unregistering"}'} - headers: - cache-control: [no-cache] - content-length: ['1222'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 23 Apr 2018 16:16:21 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.22 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search","namespace":"Microsoft.Search","resourceTypes":[{"resourceType":"searchServices","locations":["West - US","East US","North Europe","West Europe","Southeast Asia","East Asia","North - Central US","South Central US","Japan West","Australia East","Brazil South","West - US 2","East US 2","Central India","West Central US","Canada Central","UK South","East - US 2 EUAP"],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-02-28","2014-07-31-Preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2015-08-19"]},{"resourceType":"resourceHealthMetadata","locations":["West - US","West US 2","East US","East US 2","North Europe","West Europe","Southeast - Asia","East Asia","North Central US","South Central US","Japan West","Australia - East","Brazil South","Central India","West Central US","Canada Central","UK - South"],"apiVersions":["2015-08-19"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-08-19","2015-02-28"]}],"registrationState":"Unregistering"}'} - headers: - cache-control: [no-cache] - content-length: ['1222'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 23 Apr 2018 16:16:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.22 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers?api-version=2019-05-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/84codes.CloudAMQP","namespace":"84codes.CloudAMQP","resourceTypes":[{"resourceType":"servers","locations":["East + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SqlVirtualMachine","namespace":"Microsoft.SqlVirtualMachine","authorizations":[{"applicationId":"bd93b475-f9e2-476e-963d-b2daf143ffb9","roleDefinitionId":"f96bd990-ffdf-4c17-8ee3-77454d9c3f5d"}],"resourceTypes":[{"resourceType":"SqlVirtualMachineGroups","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Southeast","Canada East","Central US","France Central","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"SqlVirtualMachines","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Southeast","Canada East","Central US","France Central","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"SqlVirtualMachineGroups/AvailabilityGroupListeners","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Southeast","Canada East","Central US","France Central","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"None"},{"resourceType":"Locations","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Central 2","Australia Southeast","Canada East","Central US","France Central","South + India","Japan West","Korea Central","North Europe","South Central US","Southeast + Asia","South Africa North","UK West","West US","East US 2 EUAP","Central US + EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"None"},{"resourceType":"Locations/OperationTypes","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Southeast","Canada East","Central US","France Central","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"None"},{"resourceType":"Locations/sqlVirtualMachineOperationResults","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Southeast","Canada East","Central US","France Central","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"None"},{"resourceType":"Locations/sqlVirtualMachineGroupOperationResults","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Southeast","Canada East","Central US","France Central","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"None"},{"resourceType":"Locations/availabilityGroupListenerOperationResults","locations":["West + Central US","Brazil South","West Europe","Australia Central","Australia East","Canada + Central","East Asia","East US","East US 2","France South","Central India","West + India","Japan East","Korea South","North Central US","UK South","West US 2","Australia + Southeast","Canada East","Central US","France Central","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-03-01-preview"],"defaultApiVersion":"2017-03-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media","namespace":"Microsoft.Media","authorization":{"applicationId":"374b2a64-3b6b-436b-934c-b820eacca870","roleDefinitionId":"aab70789-0cec-44b5-95d7-84b64c9487af"},"resourceTypes":[{"resourceType":"mediaservices","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview","2015-10-01","2015-04-01"],"defaultApiVersion":"2018-07-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"mediaservices/assets","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/contentKeyPolicies","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/streamingLocators","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/streamingPolicies","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/eventGridFilters","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-02-05"],"defaultApiVersion":"2018-02-05","capabilities":"None"},{"resourceType":"mediaservices/transforms","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/transforms/jobs","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/streamingEndpoints","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"mediaservices/liveEvents","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"mediaservices/liveEvents/liveOutputs","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/streamingEndpointOperations","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/liveEventOperations","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/liveOutputOperations","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/assets/assetFilters","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"mediaservices/accountFilters","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview","2018-02-05","2015-10-01","2015-04-01"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"checknameavailability","locations":[],"apiVersions":["2015-10-01","2015-04-01"],"defaultApiVersion":"2015-10-01","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["Japan + West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East + US","West US","Australia East","Australia Southeast","East US 2","Central + US","Brazil South","Central India","West India","South India","North Central + US","South Central US","Canada Central","Canada East","West Central US","West + US 2","Korea Central","Korea South","France Central"],"apiVersions":["2018-07-01","2018-06-01-preview","2018-03-30-preview"],"defaultApiVersion":"2018-07-01","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DeploymentManager","namespace":"Microsoft.DeploymentManager","authorizations":[{"applicationId":"5b306cba-9c71-49db-96c3-d17ca2379c4d"}],"resourceTypes":[{"resourceType":"artifactSources","locations":["Central + US","East US","East US 2","West US","West US 2","West Central US","North Central + US","South Central US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Australia East","Australia Southeast","Australia + Central","Australia Central 2","Brazil South","South India","Central India","West + India","Canada Central","Canada East","UK South","UK West","Korea Central","Korea + South","France Central","France South","South Africa North","South Africa + West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"defaultApiVersion":"2018-09-01-preview","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"serviceTopologies","locations":["Central + US","East US","East US 2","West US","West US 2","West Central US","North Central + US","South Central US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Australia East","Australia Southeast","Australia + Central","Australia Central 2","Brazil South","South India","Central India","West + India","Canada Central","Canada East","UK South","UK West","Korea Central","Korea + South","France Central","France South","South Africa North","South Africa + West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"defaultApiVersion":"2018-09-01-preview","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"serviceTopologies/services","locations":["Central + US","East US","East US 2","West US","West US 2","West Central US","North Central + US","South Central US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Australia East","Australia Southeast","Australia + Central","Australia Central 2","Brazil South","South India","Central India","West + India","Canada Central","Canada East","UK South","UK West","Korea Central","Korea + South","France Central","France South","South Africa North","South Africa + West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"defaultApiVersion":"2018-09-01-preview","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"serviceTopologies/services/serviceUnits","locations":["Central + US","East US","East US 2","West US","West US 2","West Central US","North Central + US","South Central US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Australia East","Australia Southeast","Australia + Central","Australia Central 2","Brazil South","South India","Central India","West + India","Canada Central","Canada East","UK South","UK West","Korea Central","Korea + South","France Central","France South","South Africa North","South Africa + West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"defaultApiVersion":"2018-09-01-preview","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"steps","locations":["Central + US","East US","East US 2","West US","West US 2","West Central US","North Central + US","South Central US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Australia East","Australia Southeast","Australia + Central","Australia Central 2","Brazil South","South India","Central India","West + India","Canada Central","Canada East","UK South","UK West","Korea Central","Korea + South","France Central","France South","South Africa North","South Africa + West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"defaultApiVersion":"2018-09-01-preview","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"rollouts","locations":["Central + US","East US","East US 2","West US","West US 2","West Central US","North Central + US","South Central US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Australia East","Australia Southeast","Australia + Central","Australia Central 2","Brazil South","South India","Central India","West + India","Canada Central","Canada East","UK South","UK West","Korea Central","Korea + South","France Central","France South","South Africa North","South Africa + West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"defaultApiVersion":"2018-09-01-preview","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operationResults","locations":["global"],"apiVersions":["2018-09-01-preview"],"defaultApiVersion":"2018-09-01-preview","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationsManagement","namespace":"Microsoft.OperationsManagement","authorization":{"applicationId":"d2a0a418-0aac-4541-82b2-b3142c89da77","roleDefinitionId":"aa249101-6816-4966-aafa-08175d795f14"},"resourceTypes":[{"resourceType":"solutions","locations":["East + US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan + East","UK South","Central India","Canada Central","West US 2","Australia East","Australia + Central","France Central","Korea Central","North Europe","Central Us","East + Us 2","East Asia","West Us","South Central Us","North Central US","UK West","South + Africa North","Brazil South"],"apiVersions":["2015-11-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managementconfigurations","locations":["East + US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan + East","UK South","Central India","Canada Central","West US 2","Australia East","Australia + Central","France Central","Korea Central","North Europe","Central Us","East + Us 2","East Asia","West Us","South Central Us","North Central US","UK West","South + Africa North","Brazil South"],"apiVersions":["2015-11-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managementassociations","locations":[],"apiVersions":["2015-11-01-preview"],"capabilities":"None"},{"resourceType":"views","locations":["East + US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan + East","UK South","Central India","Canada Central","West US 2","Australia East","Australia + Central","France Central","Korea Central","North Europe","Central Us","East + Us 2","East Asia","West Us","South Central Us","North Central US","UK West","South + Africa North","Brazil South"],"apiVersions":["2017-08-21-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-11-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/AppDynamics.APM","namespace":"AppDynamics.APM","resourceTypes":[{"resourceType":"services","locations":["West + US"],"apiVersions":["2016-05-26"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-05-26"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-05-26"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-05-26"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2016-05-26"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["West + US"],"apiVersions":["2016-05-26"],"capabilities":"None"}],"registrationState":"Registering","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/84codes.CloudAMQP","namespace":"84codes.CloudAMQP","resourceTypes":[{"resourceType":"servers","locations":["East US 2","Central US","East US","North Central US","South Central US","West US","North Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast"],"apiVersions":["2016-08-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/AppDynamics.APM","namespace":"AppDynamics.APM","resourceTypes":[{"resourceType":"services","locations":["West - US"],"apiVersions":["2016-05-26"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-05-26"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-05-26"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-05-26"]},{"resourceType":"locations","locations":[],"apiVersions":["2016-05-26"]},{"resourceType":"locations/operationResults","locations":["West - US"],"apiVersions":["2016-05-26"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Aspera.Transfers","namespace":"Aspera.Transfers","resourceTypes":[{"resourceType":"services","locations":["West + East","Australia Southeast"],"apiVersions":["2016-08-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Aspera.Transfers","namespace":"Aspera.Transfers","resourceTypes":[{"resourceType":"services","locations":["West US","North Europe","Central US","East US","West Europe","East Asia","Southeast - Asia","Japan East","East US 2","Japan West"],"apiVersions":["2016-03-25"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-03-25"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-03-25"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-03-25"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Auth0.Cloud","namespace":"Auth0.Cloud","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2016-11-23"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Citrix.Cloud","namespace":"Citrix.Cloud","resourceTypes":[{"resourceType":"accounts","locations":["West - US"],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/CloudSimple.PrivateCloudIaaS","namespace":"CloudSimple.PrivateCloudIaaS","resourceTypes":[{"resourceType":"operations","locations":["West - US"],"apiVersions":["2017-08-01-alpha"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Cloudyn.Analytics","namespace":"Cloudyn.Analytics","resourceTypes":[{"resourceType":"accounts","locations":["East - US"],"apiVersions":["2016-03-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-03-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-03-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-03-01"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Conexlink.MyCloudIT","namespace":"Conexlink.MyCloudIT","resourceTypes":[{"resourceType":"accounts","locations":["Central - US"],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-15"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-06-15"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-06-15"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Crypteron.DataSecurity","namespace":"Crypteron.DataSecurity","resourceTypes":[{"resourceType":"apps","locations":["West - US"],"apiVersions":["2016-08-12"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-12"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-12"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-12"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Dynatrace.DynatraceSaaS","namespace":"Dynatrace.DynatraceSaaS","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2016-09-27"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Dynatrace.Ruxit","namespace":"Dynatrace.Ruxit","resourceTypes":[{"resourceType":"accounts","locations":["East - US"],"apiVersions":["2016-04-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-09-07","2016-04-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-04-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-04-01"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/LiveArena.Broadcast","namespace":"LiveArena.Broadcast","resourceTypes":[{"resourceType":"services","locations":["West + Asia","Japan East","East US 2","Japan West"],"apiVersions":["2016-03-25"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-03-25"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-03-25"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-03-25"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Auth0.Cloud","namespace":"Auth0.Cloud","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2016-11-23"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Citrix.Cloud","namespace":"Citrix.Cloud","resourceTypes":[{"resourceType":"accounts","locations":["West + US"],"apiVersions":["2015-01-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/CloudSimple.PrivateCloudIaaS","namespace":"CloudSimple.PrivateCloudIaaS","resourceTypes":[{"resourceType":"virtualMachines","locations":["West + US","East US"],"apiVersions":["2017-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateClouds","locations":["West + US","East US"],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateClouds/virtualNetworks","locations":["West + US","East US"],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateClouds/virtualMachineTemplates","locations":["West + US","East US"],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateClouds/resourcePools","locations":["West + US","East US"],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"virtualNetworks","locations":[],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"virtualMachineTemplates","locations":[],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"resourcePools","locations":[],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["West + US","East US"],"apiVersions":["2017-07-01-preview"],"capabilities":"None"},{"resourceType":"operationresults","locations":[],"apiVersions":["2017-07-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Conexlink.MyCloudIT","namespace":"Conexlink.MyCloudIT","resourceTypes":[{"resourceType":"accounts","locations":["Central + US"],"apiVersions":["2015-06-15"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Crypteron.DataSecurity","namespace":"Crypteron.DataSecurity","resourceTypes":[{"resourceType":"apps","locations":["West + US"],"apiVersions":["2016-08-12"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-12"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-12"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-12"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Dynatrace.DynatraceSaaS","namespace":"Dynatrace.DynatraceSaaS","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2016-09-27"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Dynatrace.Ruxit","namespace":"Dynatrace.Ruxit","resourceTypes":[{"resourceType":"accounts","locations":["East + US"],"apiVersions":["2016-04-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-09-07","2016-04-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-04-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-04-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/LiveArena.Broadcast","namespace":"LiveArena.Broadcast","resourceTypes":[{"resourceType":"services","locations":["West US","North Europe","Japan West","Japan East","East Asia","West Europe","East - US","Southeast Asia","Central US"],"apiVersions":["2016-06-15"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-06-15"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-06-15"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-06-15"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Lombiq.DotNest","namespace":"Lombiq.DotNest","resourceTypes":[{"resourceType":"sites","locations":["East - US"],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Mailjet.Email","namespace":"Mailjet.Email","resourceTypes":[{"resourceType":"services","locations":["West - US","West Europe"],"apiVersions":["2017-10-01","2017-02-03"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-10-01","2017-05-29","2017-02-03","2016-11-01","2016-07-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2017-10-01","2017-02-03","2016-11-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2017-10-01","2017-02-03","2016-11-01"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AAD","namespace":"Microsoft.AAD","authorizations":[{"applicationId":"443155a6-77f3-45e3-882b-22b3a8d431fb","roleDefinitionId":"7389DE79-3180-4F07-B2BA-C5BA1F01B03A"},{"applicationId":"abba844e-bc0e-44b0-947a-dc74e5d09022","roleDefinitionId":"63BC473E-7767-42A5-A3BF-08EB71200E04"},{"applicationId":"d87dcbc6-a371-462e-88e3-28ad15ec4e64","roleDefinitionId":"861776c5-e0df-4f95-be4f-ac1eec193323"}],"resourceTypes":[{"resourceType":"DomainServices","locations":["West + US","Southeast Asia","Central US"],"apiVersions":["2016-06-15"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-06-15"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-06-15"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-06-15"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Lombiq.DotNest","namespace":"Lombiq.DotNest","resourceTypes":[{"resourceType":"sites","locations":["East + US"],"apiVersions":["2015-01-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Mailjet.Email","namespace":"Mailjet.Email","resourceTypes":[{"resourceType":"services","locations":["West + US","West Europe"],"apiVersions":["2017-10-01","2017-02-03"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2018-07-01","2017-10-01","2017-05-29","2017-02-03","2016-11-01","2016-07-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2017-10-01","2017-02-03","2016-11-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2017-10-01","2017-02-03","2016-11-01"],"capabilities":"None"}],"registrationState":"Registering","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AAD","namespace":"Microsoft.AAD","authorizations":[{"applicationId":"443155a6-77f3-45e3-882b-22b3a8d431fb","roleDefinitionId":"7389DE79-3180-4F07-B2BA-C5BA1F01B03A"},{"applicationId":"abba844e-bc0e-44b0-947a-dc74e5d09022","roleDefinitionId":"63BC473E-7767-42A5-A3BF-08EB71200E04"},{"applicationId":"d87dcbc6-a371-462e-88e3-28ad15ec4e64","roleDefinitionId":"861776c5-e0df-4f95-be4f-ac1eec193323"}],"resourceTypes":[{"resourceType":"DomainServices","locations":["West + US","Central US","East US","South Central US","West Europe","North Europe","East + Asia","Southeast Asia","East US 2","Australia East","Australia Southeast","West + Central US","North Central US","Japan East","Japan West","Brazil South","Central + India","South India","West India","Canada Central","Canada East","West US + 2","Korea Central","France Central","UK South"],"apiVersions":["2017-06-01","2017-01-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"DomainServices/oucontainer","locations":["West US","Central US","East US","South Central US","West Europe","North Europe","East Asia","Southeast Asia","East US 2","Australia East","Australia Southeast","West Central US","North Central US","Japan East","Japan West","Brazil South","Central India","South India","West India","Canada Central","Canada East","West US - 2"],"apiVersions":["2017-06-01","2017-01-01"],"capabilities":"None"},{"resourceType":"locations","locations":["West + 2","Korea Central","France Central","UK South"],"apiVersions":["2017-06-01"],"capabilities":"None"},{"resourceType":"locations","locations":["West US","Central US","East US","South Central US","West Europe","North Europe","East Asia","Southeast Asia","East US 2","Australia East","Australia Southeast","West Central US","North Central US","Japan East","Japan West","Brazil South","Central India","South India","West India","Canada Central","Canada East","West US - 2"],"apiVersions":["2017-06-01","2017-01-01"]},{"resourceType":"locations/operationresults","locations":["West + 2","Korea Central","France Central","UK South"],"apiVersions":["2017-06-01","2017-01-01"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["West US","Central US","East US","South Central US","West Europe","North Europe","East Asia","Southeast Asia","East US 2","Australia East","Australia Southeast","West Central US","North Central US","Japan East","Japan West","Brazil South","Central India","South India","West India","Canada Central","Canada East","West US - 2"],"apiVersions":["2017-06-01","2017-01-01"]},{"resourceType":"operations","locations":["West + 2","Korea Central","France Central","UK South"],"apiVersions":["2017-06-01","2017-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":["West US","Central US","East US","South Central US","West Europe","North Europe","East Asia","Southeast Asia","East US 2","Australia East","Australia Southeast","West Central US","North Central US","Japan East","Japan West","Brazil South","Central India","South India","West India","Canada Central","Canada East","West US - 2"],"apiVersions":["2017-06-01","2017-01-01"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.aadiam","namespace":"microsoft.aadiam","resourceTypes":[{"resourceType":"operations","locations":["West - US"],"apiVersions":["2017-04-01","2017-03-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-01","2016-02-01","2015-11-01","2015-01-01"]},{"resourceType":"diagnosticSettings","locations":[],"apiVersions":["2017-04-01-preview","2017-04-01"]},{"resourceType":"diagnosticSettingsCategories","locations":[],"apiVersions":["2017-04-01-preview","2017-04-01"]}],"registrationState":"Registering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor","namespace":"Microsoft.Advisor","authorization":{"applicationId":"c39c9bac-9d1f-4dfb-aa29-27f6365e5cb7","roleDefinitionId":"8a63b04c-3731-409b-9765-f1175c047872"},"resourceTypes":[{"resourceType":"suppressions","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"]},{"resourceType":"configurations","locations":[],"apiVersions":["2017-04-19","2017-03-31"]},{"resourceType":"recommendations","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"]},{"resourceType":"generateRecommendations","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement","namespace":"Microsoft.ApiManagement","authorization":{"applicationId":"8602e328-9b72-4f2d-a4ae-1387d013a2b3","roleDefinitionId":"e263b525-2e60-4418-b655-420bae0b172e"},"resourceTypes":[{"resourceType":"service","locations":["Australia + 2","Korea Central","France Central","UK South"],"apiVersions":["2017-06-01","2017-01-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.aadiam","namespace":"microsoft.aadiam","resourceTypes":[{"resourceType":"operations","locations":["West + US"],"apiVersions":["2017-04-01","2017-03-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-01","2016-02-01","2015-11-01","2015-01-01"],"capabilities":"None"},{"resourceType":"diagnosticSettings","locations":[],"apiVersions":["2017-04-01-preview","2017-04-01"],"defaultApiVersion":"2017-04-01-preview","capabilities":"None"},{"resourceType":"diagnosticSettingsCategories","locations":[],"apiVersions":["2017-04-01-preview","2017-04-01"],"defaultApiVersion":"2017-04-01-preview","capabilities":"None"}],"registrationState":"Registering","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Advisor","namespace":"Microsoft.Advisor","authorization":{"applicationId":"c39c9bac-9d1f-4dfb-aa29-27f6365e5cb7","roleDefinitionId":"8a63b04c-3731-409b-9765-f1175c047872"},"resourceTypes":[{"resourceType":"suppressions","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"],"capabilities":"None"},{"resourceType":"configurations","locations":[],"apiVersions":["2017-04-19","2017-03-31"],"capabilities":"None"},{"resourceType":"recommendations","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"],"capabilities":"None"},{"resourceType":"generateRecommendations","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-19","2017-03-31","2016-07-12-preview","2016-05-09-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AlertsManagement","namespace":"Microsoft.AlertsManagement","authorizations":[{"applicationId":"3af5a1e8-2459-45cb-8683-bcd6cccbcc13","roleDefinitionId":"b1309299-720d-4159-9897-6158a61aee41"}],"resourceTypes":[{"resourceType":"alerts","locations":[],"apiVersions":["2019-03-01-preview","2019-03-01","2018-11-02-privatepreview","2018-05-05-preview","2018-05-05","2017-11-15-privatepreview"],"capabilities":"None"},{"resourceType":"alertsSummary","locations":[],"apiVersions":["2019-03-01-preview","2019-03-01","2018-05-05-preview","2018-05-05","2017-11-15-privatepreview"],"capabilities":"None"},{"resourceType":"smartGroups","locations":[],"apiVersions":["2018-05-05-preview","2018-05-05","2017-11-15-privatepreview"],"capabilities":"None"},{"resourceType":"smartDetectorRuntimeEnvironments","locations":[],"apiVersions":["2019-03-01","2018-02-01-privatepreview"],"capabilities":"None"},{"resourceType":"smartDetectorAlertRules","locations":[],"apiVersions":["2019-03-01","2018-02-01-privatepreview"],"capabilities":"None"},{"resourceType":"actionRules","locations":["global"],"apiVersions":["2019-05-05-preview","2018-11-02-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"alertsList","locations":[],"apiVersions":["2018-11-02-privatepreview"],"capabilities":"None"},{"resourceType":"alertsSummaryList","locations":[],"apiVersions":["2018-11-02-privatepreview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-05-05-preview","2018-05-05","2017-11-15-privatepreview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement","namespace":"Microsoft.ApiManagement","authorization":{"applicationId":"8602e328-9b72-4f2d-a4ae-1387d013a2b3","roleDefinitionId":"e263b525-2e60-4418-b655-420bae0b172e"},"resourceTypes":[{"resourceType":"service","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","North Central US","South Central US","West Central US","West US","West US 2","Canada Central","Canada East","North Europe","West Europe","UK South","UK West","France Central","East Asia","Southeast Asia","Japan East","Japan West","Korea Central","Korea South","Brazil - South","Central India","South India","West India","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"validateServiceName","locations":[],"apiVersions":["2015-09-15","2014-02-14"]},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-09-15","2014-02-14"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"]},{"resourceType":"reportFeedback","locations":[],"apiVersions":["2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"]},{"resourceType":"checkFeedbackRequired","locations":[],"apiVersions":["2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization","namespace":"Microsoft.Authorization","resourceTypes":[{"resourceType":"roleAssignments","locations":[],"apiVersions":["2018-01-01-preview","2017-10-01-preview","2017-09-01","2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"]},{"resourceType":"roleDefinitions","locations":[],"apiVersions":["2018-01-01-preview","2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"]},{"resourceType":"classicAdministrators","locations":[],"apiVersions":["2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"]},{"resourceType":"permissions","locations":[],"apiVersions":["2018-01-01-preview","2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"]},{"resourceType":"locks","locations":[],"apiVersions":["2017-04-01","2016-09-01","2015-06-01","2015-05-01-preview","2015-01-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-05-01","2016-07-01","2015-07-01","2015-01-01","2014-10-01-preview","2014-06-01"]},{"resourceType":"policyDefinitions","locations":[],"apiVersions":["2018-03-01","2016-12-01","2016-04-01","2015-10-01-preview"]},{"resourceType":"policySetDefinitions","locations":[],"apiVersions":["2018-03-01","2017-06-01-preview"]},{"resourceType":"policyAssignments","locations":[],"apiVersions":["2018-03-01","2017-06-01-preview","2016-12-01","2016-04-01","2015-10-01-preview"]},{"resourceType":"providerOperations","locations":[],"apiVersions":["2018-01-01-preview","2017-05-01","2016-07-01","2015-07-01-preview","2015-07-01"]},{"resourceType":"elevateAccess","locations":[],"apiVersions":["2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"]},{"resourceType":"checkAccess","locations":[],"apiVersions":["2017-10-01-preview","2017-09-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automation","namespace":"Microsoft.Automation","authorizations":[{"applicationId":"fc75330b-179d-49af-87dd-3b1acf6827fa","roleDefinitionId":"95fd5de3-d071-4362-92bf-cf341c1de832"}],"resourceTypes":[{"resourceType":"automationAccounts","locations":["Japan - East","East US 2","West Europe","Southeast Asia","South Central US","Brazil - South","UK South","West Central US","North Europe","Canada Central","Australia - Southeast","Central India","Central US EUAP"],"apiVersions":["2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"automationAccounts/runbooks","locations":["Japan - East","East US 2","West Europe","Southeast Asia","South Central US","Brazil - South","UK South","West Central US","North Europe","Canada Central","Australia - Southeast","Central India","Central US EUAP"],"apiVersions":["2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"automationAccounts/configurations","locations":["Japan - East","East US 2","West Europe","Southeast Asia","South Central US","North - Central US","Korea Central","East US","West US 2","Brazil South","UK South","West - Central US","Central India","Australia Southeast","Canada Central","North - Europe","Central US EUAP"],"apiVersions":["2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"automationAccounts/webhooks","locations":["Japan - East","East US 2","West Europe","Southeast Asia","South Central US","Brazil - South","UK South","West Central US","North Europe","Canada Central","Australia - Southeast","Central India","Central US EUAP"],"apiVersions":["2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"]},{"resourceType":"operations","locations":["South - Central US"],"apiVersions":["2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"]},{"resourceType":"automationAccounts/softwareUpdateConfigurations","locations":["Japan - East","East US 2","West Europe","Southeast Asia","South Central US","Brazil - South","UK South","West Central US","North Europe","Canada Central","Australia - Southeast","Central India","Central US EUAP"],"apiVersions":["2018-01-15","2017-05-15-preview"]},{"resourceType":"automationAccounts/jobs","locations":["Japan - East","East US 2","West Europe","Southeast Asia","South Central US","Brazil - South","UK South","West Central US","North Europe","Canada Central","Australia - Southeast","Central India","Central US EUAP"],"apiVersions":["2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch","namespace":"Microsoft.Batch","authorization":{"applicationId":"ddbf3205-c6bd-46ae-8127-60eb93363864","roleDefinitionId":"b7f84953-1d03-4eab-9ea4-45f065258ff8"},"resourceTypes":[{"resourceType":"batchAccounts","locations":["West + South","Central India","South India","West India","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-01-01","2018-06-01-preview","2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"validateServiceName","locations":[],"apiVersions":["2015-09-15","2014-02-14"],"capabilities":"None"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-09-15","2014-02-14"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-01-01","2018-06-01-preview","2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"],"capabilities":"None"},{"resourceType":"reportFeedback","locations":[],"apiVersions":["2019-01-01","2018-06-01-preview","2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"],"capabilities":"None"},{"resourceType":"checkFeedbackRequired","locations":[],"apiVersions":["2019-01-01","2018-06-01-preview","2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-01-01","2018-06-01-preview","2018-01-01","2017-03-01","2016-10-10","2016-07-07","2015-09-15","2014-02-14"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization","namespace":"Microsoft.Authorization","resourceTypes":[{"resourceType":"roleAssignments","locations":[],"apiVersions":["2019-04-01-preview","2018-12-01-preview","2018-09-01-preview","2018-07-01","2018-01-01-preview","2017-10-01-preview","2017-09-01","2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-09-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2015-07-01"}],"capabilities":"None"},{"resourceType":"roleDefinitions","locations":[],"apiVersions":["2018-07-01","2018-01-01-preview","2017-09-01","2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-05-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2015-07-01"}],"capabilities":"None"},{"resourceType":"classicAdministrators","locations":[],"apiVersions":["2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-06-01"}],"capabilities":"None"},{"resourceType":"permissions","locations":[],"apiVersions":["2018-07-01","2018-01-01-preview","2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-05-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2015-07-01"}],"capabilities":"None"},{"resourceType":"locks","locations":[],"apiVersions":["2017-04-01","2016-09-01","2015-06-01","2015-05-01-preview","2015-01-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-09-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-05-01","2016-07-01","2015-07-01","2015-01-01","2014-10-01-preview","2014-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-05-01"}],"capabilities":"None"},{"resourceType":"policyDefinitions","locations":[],"apiVersions":["2019-01-01","2018-05-01","2018-03-01","2016-12-01","2016-04-01","2015-10-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-12-01"}],"capabilities":"None"},{"resourceType":"policySetDefinitions","locations":[],"apiVersions":["2019-01-01","2018-05-01","2018-03-01","2017-06-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"}],"capabilities":"None"},{"resourceType":"policyAssignments","locations":[],"apiVersions":["2019-01-01","2018-05-01","2018-03-01","2017-06-01-preview","2016-12-01","2016-04-01","2015-10-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-12-01"}],"capabilities":"SystemAssignedResourceIdentity"},{"resourceType":"providerOperations","locations":[],"apiVersions":["2018-07-01","2018-01-01-preview","2017-05-01","2016-07-01","2015-07-01-preview","2015-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-05-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2015-07-01"}],"capabilities":"None"},{"resourceType":"elevateAccess","locations":[],"apiVersions":["2017-05-01","2016-07-01","2015-07-01","2015-06-01","2015-05-01-preview","2014-10-01-preview","2014-07-01-preview","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-05-01"}],"capabilities":"None"},{"resourceType":"checkAccess","locations":[],"apiVersions":["2018-09-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-09-01-preview"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI","namespace":"Microsoft.BatchAI","authorization":{"applicationId":"9fcb3732-5f52-4135-8c08-9d4bbaf203ea","roleDefinitionId":"703B89C7-CE2C-431B-BDD8-FA34E39AF696","managedByRoleDefinitionId":"90B8E153-EBFF-4073-A95F-4DAD56B14C78"},"resourceTypes":[{"resourceType":"clusters","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"jobs","locations":["East US","West US + 2","West Europe","East US 2","North Europe","Australia East","West Central + US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"fileservers","locations":["East US","West + US 2","West Europe","East US 2","North Europe","Australia East","West Central + US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"workspaces","locations":["East US","West + US 2","West Europe","East US 2","North Europe","Australia East","West Central + US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"workspaces/clusters","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01"],"capabilities":"None"},{"resourceType":"workspaces/fileservers","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01"],"capabilities":"None"},{"resourceType":"workspaces/experiments","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01"],"capabilities":"None"},{"resourceType":"workspaces/experiments/jobs","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01","2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-05-01","2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01","2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationstatuses","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01","2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/usages","locations":["East + US","West US 2","West Europe","East US 2","North Europe","Australia East","West + Central US","Southeast Asia","South Central US","East US 2 EUAP"],"apiVersions":["2018-05-01","2018-03-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Batch","namespace":"Microsoft.Batch","authorization":{"applicationId":"ddbf3205-c6bd-46ae-8127-60eb93363864","roleDefinitionId":"b7f84953-1d03-4eab-9ea4-45f065258ff8"},"resourceTypes":[{"resourceType":"batchAccounts","locations":["West Europe","East US","East US 2","West US","North Central US","Brazil South","North Europe","Central US","East Asia","Japan East","Australia Southeast","Japan West","Korea South","Korea Central","Southeast Asia","South Central US","Australia East","South India","Central India","West India","Canada Central","Canada - East","UK South","UK West","West Central US","West US 2","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01","2015-07-01","2014-05-01-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["West + East","UK South","UK West","West Central US","West US 2","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-12-01","2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01","2015-07-01","2014-05-01-privatepreview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-09-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["West Europe","East US","East US 2","West US","North Central US","Brazil South","North Europe","Central US","East Asia","Japan East","Australia Southeast","Japan West","Korea South","Korea Central","Southeast Asia","South Central US","Australia East","South India","Central India","West India","Canada Central","Canada - East","UK South","UK West","West Central US","West US 2","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01"]},{"resourceType":"locations/quotas","locations":["West + East","UK South","UK West","West Central US","West US 2","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-12-01","2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-09-01"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-04-01","2018-12-01","2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-09-01"}],"capabilities":"None"},{"resourceType":"locations/quotas","locations":["West Europe","East US","East US 2","West US","North Central US","Brazil South","North Europe","Central US","East Asia","Japan East","Australia Southeast","Japan West","Korea South","Korea Central","Southeast Asia","South Central US","Australia East","South India","Central India","West India","Canada Central","Canada - East","UK South","UK West","West Central US","West US 2","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01"]},{"resourceType":"locations/checkNameAvailability","locations":["West + East","UK South","UK West","West Central US","West US 2","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-12-01","2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-09-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West Europe","East US","East US 2","West US","North Central US","Brazil South","North Europe","Central US","East Asia","Japan East","Australia Southeast","Japan West","Korea South","Korea Central","Southeast Asia","South Central US","Australia East","South India","Central India","West India","Canada Central","Canada - East","UK South","UK West","West Central US","West US 2","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2017-09-01","2017-05-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BingMaps","namespace":"Microsoft.BingMaps","resourceTypes":[{"resourceType":"mapApis","locations":["West - US"],"apiVersions":["2016-08-18","2015-07-02"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-18","2015-07-02"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-18","2015-07-02"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-18","2015-07-02"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache","namespace":"Microsoft.Cache","authorization":{"applicationId":"96231a05-34ce-4eb4-aa6a-70759cbb5e83","roleDefinitionId":"4f731528-ba85-45c7-acfb-cd0a9b3cf31b"},"resourceTypes":[{"resourceType":"Redis","locations":["North - Central US","South Central US","North Europe","West US","East US","Japan East","Japan - West","Brazil South","East Asia","Australia East","Australia Southeast","Central - India","West India","Canada Central","Canada East","UK South","UK West","West - US 2","West Central US","South India","Korea Central","Korea South","Central - US","West Europe","East US 2","Southeast Asia","Central US EUAP","East US - 2 EUAP","France Central"],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01"],"zoneMappings":[{"location":"East - US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West - Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central - US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast - Asia","zones":["1","2","3"]}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01"]},{"resourceType":"locations/operationResults","locations":["North - Central US","South Central US","Central US","West Europe","North Europe","West - US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast - Asia","East Asia","Australia East","Australia Southeast","Central India","West - India","South India","Canada Central","Canada East","UK South","UK West","West - US 2","West Central US","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01-alpha","2014-04-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01-alpha","2014-04-01"]},{"resourceType":"RedisConfigDefinition","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicCompute","namespace":"Microsoft.ClassicCompute","resourceTypes":[{"resourceType":"domainNames","locations":["East + East","UK South","UK West","West Central US","West US 2","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-12-01","2017-09-01","2017-05-01"],"defaultApiVersion":"2017-05-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-09-01"}],"capabilities":"None"},{"resourceType":"locations/accountOperationResults","locations":["West + Europe","East US","East US 2","West US","North Central US","Brazil South","North + Europe","Central US","East Asia","Japan East","Australia Southeast","Japan + West","Korea South","Korea Central","Southeast Asia","South Central US","Australia + East","South India","Central India","West India","Canada Central","Canada + East","UK South","UK West","West Central US","West US 2","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-12-01","2017-09-01","2017-05-01","2017-01-01","2015-12-01","2015-09-01","2015-07-01","2014-05-01-privatepreview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BingMaps","namespace":"Microsoft.BingMaps","resourceTypes":[{"resourceType":"mapApis","locations":["West + US"],"apiVersions":["2016-08-18","2015-07-02"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-18","2015-07-02"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-18","2015-07-02"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-18","2015-07-02"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicCompute","namespace":"Microsoft.ClassicCompute","resourceTypes":[{"resourceType":"domainNames","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-11-15","2017-11-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove"},{"resourceType":"domainNames/internalLoadBalancers","locations":[],"apiVersions":["2017-11-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"checkDomainNameAvailability","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"domainNames/slots","locations":["East + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-06-01","2017-11-15","2017-11-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"],"defaultApiVersion":"2014-06-01","capabilities":"CrossResourceGroupResourceMove, + SupportsLocation"},{"resourceType":"domainNames/internalLoadBalancers","locations":[],"apiVersions":["2017-11-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"],"defaultApiVersion":"2014-06-01","capabilities":"None"},{"resourceType":"checkDomainNameAvailability","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"domainNames/slots","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-11-15","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"domainNames/slots/roles","locations":["East + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-06-01","2017-11-15","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"domainNames/slots/roles","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"domainNames/slots/roles/metricDefinitions","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"domainNames/slots/roles/metrics","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"virtualMachines","locations":["East + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"domainNames/slots/roles/metricDefinitions","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"domainNames/slots/roles/metrics","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"virtualMachines","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-04-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove"},{"resourceType":"capabilities","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]},{"resourceType":"domainNames/capabilities","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]},{"resourceType":"domainNames/serviceCertificates","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]},{"resourceType":"quotas","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"virtualMachines/diagnosticSettings","locations":["East + Central","Korea South","France Central","South Africa West","South Africa + North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-04-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-04-01","2014-01-01"],"defaultApiVersion":"2014-06-01","capabilities":"CrossResourceGroupResourceMove, + SupportsLocation"},{"resourceType":"capabilities","locations":["East US 2 + EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"domainNames/capabilities","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"domainNames/serviceCertificates","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"quotas","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"virtualMachines/diagnosticSettings","locations":["East US","East US 2","North Central US","North Europe","West Europe","Brazil South","Canada - Central","Canada East","UK South","UK West","West US","Central US","South - Central US","Japan East","Japan West","East Asia","Southeast Asia","Australia - East","Australia Southeast","West US 2","West Central US","France Central","South - India","Central India","West India","Korea Central","Korea South","East US - 2 (Stage)","North Central US (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"virtualMachines/metricDefinitions","locations":["East + Central","Canada East","UK South","UK West","France Central","West US","Central + US","South Central US","Japan East","Japan West","East Asia","Southeast Asia","Australia + East","Australia Southeast","West US 2","West Central US","South Africa West","South + Africa North","South India","Central India","West India","Korea Central","Korea + South","East US 2 (Stage)","North Central US (Stage)","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"virtualMachines/metricDefinitions","locations":["East US","East US 2","North Central US","North Europe","West Europe","Brazil South","Canada - Central","Canada East","UK South","UK West","West US","Central US","South - Central US","Japan East","Japan West","East Asia","Southeast Asia","Australia - East","Australia Southeast","West US 2","West Central US","France Central","South - India","Central India","West India","Korea Central","Korea South","East US - 2 (Stage)","North Central US (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"virtualMachines/metrics","locations":["North + Central","Canada East","UK South","UK West","France Central","West US","Central + US","South Central US","Japan East","Japan West","East Asia","Southeast Asia","Australia + East","Australia Southeast","West US 2","West Central US","South Africa West","South + Africa North","South India","Central India","West India","Korea Central","Korea + South","East US 2 (Stage)","North Central US (Stage)","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"virtualMachines/metrics","locations":["North Central US","South Central US","East US","East US 2","Canada Central","Canada East","West US","West US 2","West Central US","Central US","East Asia","Southeast Asia","North Europe","West Europe","UK South","UK West","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","East US 2 (Stage)","North Central US (Stage)","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-04-01","2014-01-01"]},{"resourceType":"resourceTypes","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":[]},{"resourceType":"moveSubscriptionResources","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01"]},{"resourceType":"validateSubscriptionMoveAvailability","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01"]},{"resourceType":"operationStatuses","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01"]},{"resourceType":"operatingSystems","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]},{"resourceType":"operatingSystemFamilies","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicNetwork","namespace":"Microsoft.ClassicNetwork","resourceTypes":[{"resourceType":"virtualNetworks","locations":["East + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"resourceTypes","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":[],"capabilities":"None"},{"resourceType":"moveSubscriptionResources","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01"],"capabilities":"None"},{"resourceType":"validateSubscriptionMoveAvailability","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01"],"capabilities":"None"},{"resourceType":"operationStatuses","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01"],"capabilities":"None"},{"resourceType":"operatingSystems","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"operatingSystemFamilies","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn","namespace":"Microsoft.Cdn","authorizations":[],"resourceTypes":[{"resourceType":"profiles","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"profiles/endpoints","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"profiles/endpoints/origins","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"profiles/endpoints/customdomains","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"operationresults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"operationresults/profileresults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"operationresults/profileresults/endpointresults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"operationresults/profileresults/endpointresults/originresults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"operationresults/profileresults/endpointresults/customdomainresults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"checkResourceUsage","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"validateProbe","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"operations","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"},{"resourceType":"edgenodes","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","South Central US","South India","Southeast + Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2019-04-15","2018-04-02","2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"defaultApiVersion":"2017-10-12","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicNetwork","namespace":"Microsoft.ClassicNetwork","resourceTypes":[{"resourceType":"virtualNetworks","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-11-15","2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"virtualNetworks/virtualNetworkPeerings","locations":["West + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-11-15","2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"defaultApiVersion":"2014-06-01","capabilities":"SupportsLocation"},{"resourceType":"virtualNetworks/virtualNetworkPeerings","locations":["West US","East US","North Europe","West Europe","East Asia","Southeast Asia","North Central US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","Central India","South India","West India","Canada Central","Canada East","West Central US","West US 2","UK West","UK South","Korea Central","Korea South","France Central","East - US 2 (Stage)","North Central US (Stage)","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-11-01"]},{"resourceType":"virtualNetworks/remoteVirtualNetworkPeeringProxies","locations":["West + US 2 (Stage)","North Central US (Stage)","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-11-01"],"capabilities":"None"},{"resourceType":"virtualNetworks/remoteVirtualNetworkPeeringProxies","locations":["West US","East US","North Europe","West Europe","East Asia","Southeast Asia","North Central US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","Central India","South India","West India","Canada Central","Canada East","West Central US","West US 2","UK West","UK South","Korea Central","Korea South","France Central","East - US 2 (Stage)","North Central US (Stage)","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-11-01"]},{"resourceType":"reservedIps","locations":["East + US 2 (Stage)","North Central US (Stage)","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-11-01"],"capabilities":"None"},{"resourceType":"reservedIps","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"quotas","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"gatewaySupportedDevices","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"operations","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":[]},{"resourceType":"networkSecurityGroups","locations":["East + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"defaultApiVersion":"2014-06-01","capabilities":"SupportsLocation"},{"resourceType":"quotas","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"gatewaySupportedDevices","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-11-01","2016-04-01-beta","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"networkSecurityGroups","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01"],"capabilities":"None"},{"resourceType":"capabilities","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]},{"resourceType":"expressRouteCrossConnections","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]},{"resourceType":"expressRouteCrossConnections/peerings","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicStorage","namespace":"Microsoft.ClassicStorage","resourceTypes":[{"resourceType":"storageAccounts","locations":["East + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01"],"defaultApiVersion":"2015-06-01","capabilities":"SupportsLocation"},{"resourceType":"capabilities","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"expressRouteCrossConnections","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"expressRouteCrossConnections/peerings","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-10-01","2015-06-01","2014-06-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicStorage","namespace":"Microsoft.ClassicStorage","resourceTypes":[{"resourceType":"storageAccounts","locations":["East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","East US 2 (Stage)","North Central US (Stage)","UK South","UK West","Korea - Central","Korea South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-04-01-beta","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove"},{"resourceType":"quotas","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"checkStorageAccountAvailability","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"]},{"resourceType":"storageAccounts/services","locations":["West + Central","Korea South","France Central","South Africa West","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-04-01-beta","2014-04-01","2014-01-01"],"defaultApiVersion":"2014-06-01","capabilities":"CrossResourceGroupResourceMove, + SupportsLocation"},{"resourceType":"quotas","locations":["East US 2 EUAP","Central + US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"checkStorageAccountAvailability","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-01-01"],"capabilities":"None"},{"resourceType":"storageAccounts/services","locations":["West US","Central US","South Central US","Japan East","Japan West","East Asia","Southeast Asia","Australia East","Australia Southeast","South India","Central India","West India","East US 2 (Stage)","North Central US (Stage)","West US 2","West Central US","East US","East US 2","North Central US","North Europe","West Europe","Brazil South","Canada Central","Canada East","UK South","UK West","Korea Central","Korea - South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"storageAccounts/services/diagnosticSettings","locations":["West + South","France Central","South Africa West","South Africa North","East US + 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"storageAccounts/services/diagnosticSettings","locations":["West US","Central US","South Central US","Japan East","Japan West","East Asia","Southeast Asia","Australia East","Australia Southeast","South India","Central India","West India","East US 2 (Stage)","North Central US (Stage)","West US 2","West Central US","East US","East US 2","North Central US","North Europe","West Europe","Brazil South","Canada Central","Canada East","UK South","UK West","Korea Central","Korea - South","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"storageAccounts/services/metricDefinitions","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"storageAccounts/services/metrics","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"storageAccounts/metricDefinitions","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"storageAccounts/metrics","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"capabilities","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"]},{"resourceType":"disks","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"]},{"resourceType":"images","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-04-01","2015-12-01","2015-06-01","2014-06-01"]},{"resourceType":"vmImages","locations":[],"apiVersions":["2016-11-01"]},{"resourceType":"storageAccounts/vmImages","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-04-01-beta","2014-04-01","2014-01-01"]},{"resourceType":"publicImages","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":[]},{"resourceType":"osImages","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"]},{"resourceType":"osPlatformImages","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"]},{"resourceType":"operations","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":[]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices","namespace":"Microsoft.CognitiveServices","authorizations":[{"applicationId":"7d312290-28c8-473c-a0ed-8e53749b6d6d","roleDefinitionId":"5cb87f79-a7c3-4a95-9414-45b65974b51b"}],"resourceTypes":[{"resourceType":"accounts","locations":["Global","Australia + South","France Central","South Africa West","South Africa North","East US + 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"storageAccounts/services/metricDefinitions","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"storageAccounts/services/metrics","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"storageAccounts/metricDefinitions","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"storageAccounts/metrics","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"capabilities","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"disks","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"images","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-04-01","2015-12-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"vmImages","locations":[],"apiVersions":["2016-11-01"],"capabilities":"None"},{"resourceType":"storageAccounts/vmImages","locations":[],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-04-01-beta","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"publicImages","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":[],"capabilities":"None"},{"resourceType":"osImages","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"osPlatformImages","locations":["East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-11-01","2016-04-01","2015-12-01","2015-06-01","2014-06-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-11-01","2016-04-01-beta","2016-04-01","2015-12-01","2015-06-01","2014-06-01","2014-04-01","2014-01-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CognitiveServices","namespace":"Microsoft.CognitiveServices","authorizations":[{"applicationId":"7d312290-28c8-473c-a0ed-8e53749b6d6d","roleDefinitionId":"5cb87f79-a7c3-4a95-9414-45b65974b51b"}],"resourceTypes":[{"resourceType":"accounts","locations":["Global","Australia East","Brazil South","West US","West US 2","West Europe","North Europe","Southeast Asia","East Asia","West Central US","South Central US","East US","East US - 2","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["Global","Australia + 2","Canada Central","Japan East","Central India","UK South","Japan West","Korea + Central","France Central","North Central US","Central US","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["Global","Australia East","Brazil South","West US","West US 2","West Europe","North Europe","Southeast Asia","East Asia","West Central US","South Central US","East US","East US - 2","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"]},{"resourceType":"locations","locations":["Global","Australia + 2","Canada Central","Japan East","Central India","UK South","Japan West","Korea + Central","France Central","North Central US","Central US","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["Global","Australia East","Brazil South","West US","West US 2","West Europe","North Europe","Southeast Asia","East Asia","West Central US","South Central US","East US","East US - 2","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"]},{"resourceType":"locations/checkSkuAvailability","locations":["Global","Australia + 2","Canada Central","Japan East","Central India","UK South","Japan West","Korea + Central","France Central","North Central US","Central US","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkSkuAvailability","locations":["Global","Australia East","Brazil South","West US","West US 2","West Europe","North Europe","Southeast Asia","East Asia","West Central US","South Central US","East US","East US - 2","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"]},{"resourceType":"locations/updateAccountsCreationSettings","locations":["West - US","Global","West Europe","Southeast Asia","West Central US","East US 2"],"apiVersions":["2017-04-18","2016-02-01-preview"]},{"resourceType":"locations/accountsCreationSettings","locations":["West - US","Global","West Europe","Southeast Asia","West Central US","East US 2"],"apiVersions":["2016-02-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute","namespace":"Microsoft.Compute","authorizations":[{"applicationId":"60e6cd67-9c8c-4951-9b3c-23c25a2169af","roleDefinitionId":"e4770acb-272e-4dc8-87f3-12f44a612224"},{"applicationId":"a303894e-f1d8-4a37-bf10-67aa654a0596","roleDefinitionId":"903ac751-8ad5-4e5a-bfc2-5e49f450a241"},{"applicationId":"a8b6bf88-1d1a-4626-b040-9a729ea93c65","roleDefinitionId":"45c8267c-80ba-4b96-9a43-115b8f49fccd"}],"resourceTypes":[{"resourceType":"availabilitySets","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"virtualMachines","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP","North Europe"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"}],"zoneMappings":[{"location":"East - US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West - Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central - US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast - Asia","zones":["1","2","3"]}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"virtualMachines/extensions","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"virtualMachineScaleSets","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP","North Europe"],"apiVersions":["2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"}],"zoneMappings":[{"location":"East - US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West - Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central - US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast - Asia","zones":["1","2","3"]}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"virtualMachineScaleSets/extensions","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"virtualMachineScaleSets/virtualMachines","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"virtualMachineScaleSets/networkInterfaces","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"virtualMachineScaleSets/virtualMachines/networkInterfaces","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"virtualMachineScaleSets/publicIPAddresses","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"locations/operations","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"locations/vmSizes","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"locations/runCommands","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30"]},{"resourceType":"locations/usages","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"locations/virtualMachines","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30"]},{"resourceType":"locations/publishers","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"operations","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-03-30","2015-06-15","2015-05-01-preview"]},{"resourceType":"restorePointCollections","locations":["Southeast - Asia","East US 2","Central US","West Europe","East US","North Central US","South - Central US","West US","North Europe","East Asia","Brazil South","West US 2","West - Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada - East","Central India","South India","Australia East","Australia Southeast","Korea - Central","Korea South","West India","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30"],"capabilities":"None"},{"resourceType":"restorePointCollections/restorePoints","locations":["Southeast - Asia","East US 2","Central US","West Europe","East US","North Central US","South - Central US","West US","North Europe","East Asia","Brazil South","West US 2","West - Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada - East","Central India","South India","Australia East","Australia Southeast","Korea - Central","Korea South","West India","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30"]},{"resourceType":"virtualMachines/diagnosticSettings","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"virtualMachines/metricDefinitions","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"sharedVMImages","locations":["West - Central US","East US 2 EUAP"],"apiVersions":["2017-10-15-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"sharedVMImages/versions","locations":["West - Central US","East US 2 EUAP"],"apiVersions":["2017-10-15-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations/capsoperations","locations":["West - Central US","East US 2 EUAP"],"apiVersions":["2017-10-15-preview"]},{"resourceType":"disks","locations":["Southeast - Asia","East US 2","Central US","West Europe","East US","North Central US","South - Central US","West US","East Asia","Brazil South","West US 2","West Central - US","UK West","UK South","Japan East","Japan West","Canada Central","Canada - East","Central India","South India","Australia East","Australia Southeast","Korea - Central","Korea South","West India","France Central","East US 2 EUAP","Central - US EUAP","North Europe"],"apiVersions":["2018-04-01","2017-03-30","2016-04-30-preview"],"zoneMappings":[{"location":"East - US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West - Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central - US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast - Asia","zones":["1","2","3"]}],"capabilities":"None"},{"resourceType":"snapshots","locations":["Southeast - Asia","East US 2","Central US","West Europe","East US","North Central US","South - Central US","West US","North Europe","East Asia","Brazil South","West US 2","West - Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada - East","Central India","South India","Australia East","Australia Southeast","Korea - Central","Korea South","West India","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-04-01","2017-03-30","2016-04-30-preview"],"capabilities":"None"},{"resourceType":"locations/diskoperations","locations":["Southeast - Asia","East US 2","Central US","West Europe","East US","North Central US","South - Central US","West US","North Europe","East Asia","Brazil South","West US 2","West - Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada - East","Central India","South India","Australia East","Australia Southeast","Korea - Central","Korea South","West India","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2018-04-01","2017-03-30","2016-04-30-preview"]},{"resourceType":"images","locations":["Southeast - Asia","East US 2","Central US","West Europe","East US","North Central US","South - Central US","West US","North Europe","East Asia","Brazil South","West US 2","West - Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada - East","Central India","South India","Australia East","Australia Southeast","Korea - Central","Korea South","West India","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview"],"capabilities":"None"},{"resourceType":"locations/logAnalytics","locations":["East - US","East US 2","West US","Central US","North Central US","South Central US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","Brazil South","South India","Central India","West - India","Canada Central","Canada East","West US 2","West Central US","UK South","UK - West","Korea Central","Korea South","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2017-12-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance","namespace":"Microsoft.ContainerInstance","authorizations":[{"applicationId":"6bb8e274-af5d-4df2-98a3-4fd78b4cafd9"}],"resourceTypes":[{"resourceType":"containerGroups","locations":["West - US","East US","West Europe","West US 2","North Europe","Southeast Asia"],"apiVersions":["2018-04-01","2018-05-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":[],"apiVersions":["2018-04-01","2018-05-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"]},{"resourceType":"locations/usages","locations":["West - US","East US","West Europe","West US 2","North Europe","Southeast Asia"],"apiVersions":["2018-04-01","2018-05-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"]},{"resourceType":"locations/operations","locations":["West - US","East US","West Europe","West US 2","North Europe","Southeast Asia"],"apiVersions":["2018-04-01","2018-05-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-04-01","2018-05-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry","namespace":"Microsoft.ContainerRegistry","authorizations":[{"applicationId":"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26","roleDefinitionId":"78e18383-93eb-418a-9887-bc9271046576"},{"applicationId":"737d58c1-397a-46e7-9d12-7d8c830883c2","roleDefinitionId":"716bb53a-0390-4428-bf41-b1bedde7d751"}],"resourceTypes":[{"resourceType":"registries","locations":["West - US","East US","South Central US","West Europe","North Europe","UK South","UK - West","Australia East","Australia Southeast","Central India","East Asia","Japan - East","Japan West","Southeast Asia","South India","Brazil South","Canada East","Canada - Central","Central US","East US 2","North Central US","West Central US","West - US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-03-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"registries/getBuildSourceUploadUrl","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/queueBuild","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/builds","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/builds/getLogLink","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/builds/cancel","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/buildTasks","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"registries/buildTasks/listSourceRepositoryProperties","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/buildTasks/steps","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/buildTasks/steps/listBuildArguments","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"registries/replications","locations":["South - Central US","West Central US","East US","West Europe","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/webhooks","locations":["West - Central US","East US","West Europe","South Central US","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"registries/webhooks/ping","locations":["West - Central US","East US","West Europe","South Central US","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"]},{"resourceType":"registries/webhooks/getCallbackConfig","locations":["West - Central US","East US","West Europe","South Central US","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"]},{"resourceType":"registries/webhooks/listEvents","locations":["West - Central US","East US","West Europe","South Central US","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"]},{"resourceType":"locations/setupAuth","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"locations/authorize","locations":["East - US","East US 2 EUAP"],"apiVersions":["2018-05-01-preview"]},{"resourceType":"locations/operationResults","locations":["West - Central US","East US","West Europe","South Central US","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"]},{"resourceType":"registries/GetCredentials","locations":["West - US","East US","South Central US","West Europe","East US 2 EUAP","Central US - EUAP"],"apiVersions":["2016-06-27-preview"]},{"resourceType":"registries/listCredentials","locations":["South - Central US","East US","West US","West Europe","North Europe","UK South","UK - West","Australia East","Australia Southeast","Central India","East Asia","Japan - East","Japan West","Southeast Asia","South India","Brazil South","Canada East","Canada - Central","Central US","East US 2","North Central US","West Central US","West - US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01","2017-03-01"]},{"resourceType":"registries/regenerateCredential","locations":["South - Central US","West US","East US","West Europe","North Europe","UK South","UK - West","Australia East","Australia Southeast","Central India","East Asia","Japan - East","Japan West","Southeast Asia","South India","Brazil South","Canada East","Canada - Central","Central US","East US 2","North Central US","West Central US","West - US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01","2017-03-01"]},{"resourceType":"registries/listUsages","locations":["West - Central US","East US","West Europe","South Central US","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"]},{"resourceType":"registries/regenerateCredentials","locations":["West - US","East US","South Central US","West Europe","East US 2 EUAP","Central US - EUAP"],"apiVersions":["2016-06-27-preview"]},{"resourceType":"registries/eventGridFilters","locations":["South - Central US","West Central US","East US","West Europe","West US","Japan East","North - Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil - South","Australia East","Central India","Central US","Canada East","Canada - Central","UK South","UK West","Australia Southeast","East Asia","Japan West","South - India","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"]},{"resourceType":"checkNameAvailability","locations":["South - Central US","East US","West US","Central US","East US 2","North Central US","West - Central US","West US 2","Brazil South","Canada East","Canada Central","West - Europe","North Europe","UK South","UK West","Australia East","Australia Southeast","Central - India","East Asia","Japan East","Japan West","Southeast Asia","South India","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01-preview","2017-03-01","2016-06-27-preview"]},{"resourceType":"operations","locations":["South - Central US","East US","West US","Central US","East US 2","North Central US","West - Central US","West US 2","Brazil South","Canada East","Canada Central","West - Europe","North Europe","UK South","UK West","Australia East","Australia Southeast","Central - India","East Asia","Japan East","Japan West","Southeast Asia","South India","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01","2017-06-01-preview","2017-03-01"]},{"resourceType":"locations","locations":["South - Central US","East US","West US","Central US","East US 2","North Central US","West - Central US","West US 2","Brazil South","Canada East","Canada Central","West - Europe","North Europe","UK South","UK West","Australia East","Australia Southeast","Central - India","East Asia","Japan East","Japan West","Southeast Asia","South India","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01","2017-06-01-preview"]},{"resourceType":"registries/importImage","locations":["Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService","namespace":"Microsoft.ContainerService","authorization":{"applicationId":"7319c514-987d-4e9b-ac3d-d38c4f427f4c","roleDefinitionId":"1b4a0c7f-2217-416f-acfa-cf73452fdc1c","managedByRoleDefinitionId":"8e3af657-a8ff-443c-a75c-2fe8c4bcb635"},"resourceTypes":[{"resourceType":"containerServices","locations":["Japan - East","Central US","East US 2","Japan West","East Asia","South Central US","Australia - East","Australia Southeast","Brazil South","Southeast Asia","West US","North - Central US","West Europe","North Europe","East US","UK West","UK South","West - Central US","West US 2","South India","Central India","West India","Canada - East","Canada Central","Korea South","Korea Central"],"apiVersions":["2017-07-01","2017-01-31","2016-09-30","2016-03-30"],"capabilities":"None"},{"resourceType":"managedClusters","locations":["East - US","West Europe","Central US","Canada Central","Canada East","West US 2"],"apiVersions":["2017-08-31"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-08-31","2017-01-31","2016-09-30","2016-03-30","2015-11-01-preview"]},{"resourceType":"locations/operationresults","locations":["East - US","West Europe","Central US","UK West","UK South","West Central US","West - US 2","South India","Central India","West India","Canada East","Canada Central","Korea - South","Korea Central"],"apiVersions":["2017-08-31","2016-03-30"]},{"resourceType":"locations/operations","locations":["Japan - East","Central US","East US 2","Japan West","East Asia","South Central US","Australia - East","Australia Southeast","Brazil South","Southeast Asia","West US","North - Central US","West Europe","North Europe","East US","UK West","UK South","West - Central US","West US 2","South India","Central India","West India","Canada - East","Canada Central","Korea South","Korea Central"],"apiVersions":["2017-07-01","2017-01-31","2016-09-30","2016-03-30"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-07-01","2017-01-31","2016-09-30","2016-03-30","2015-11-01-preview"]},{"resourceType":"locations/orchestrators","locations":["UK - West","West US 2","East US","West Europe","Central US","Canada East","Canada - Central"],"apiVersions":["2017-09-30"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataFactory","namespace":"Microsoft.DataFactory","authorizations":[{"applicationId":"5d13f7d7-0567-429c-9880-320e9555e5fc","roleDefinitionId":"956a8f20-9168-4c71-8e27-3c0460ac39a4"}],"resourceTypes":[{"resourceType":"dataFactories","locations":["West + 2","Canada Central","Japan East","Central India","UK South","Japan West","Korea + Central","France Central","North Central US","Central US","Central US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/updateAccountsCreationSettings","locations":["West + US","Global","West Europe","Southeast Asia","West Central US","East US 2"],"apiVersions":["2017-04-18","2016-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/accountsCreationSettings","locations":["West + US","Global","West Europe","Southeast Asia","West Central US","East US 2"],"apiVersions":["2016-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["Central + US EUAP"],"apiVersions":["2017-04-18","2016-02-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics","namespace":"Microsoft.DataLakeAnalytics","resourceTypes":[{"resourceType":"accounts","locations":["East + US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"defaultApiVersion":"2016-11-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"accounts/dataLakeStoreAccounts","locations":["East + US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"accounts/storageAccounts","locations":["East + US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"accounts/storageAccounts/containers","locations":["East + US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"accounts/storageAccounts/containers/listSasTokens","locations":["East + US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/capability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerInstance","namespace":"Microsoft.ContainerInstance","authorizations":[{"applicationId":"6bb8e274-af5d-4df2-98a3-4fd78b4cafd9","roleDefinitionId":"3c60422b-a83a-428d-9830-22609c77aa6c"}],"resourceTypes":[{"resourceType":"containerGroups","locations":["West + US","East US","West Europe","West US 2","North Europe","Southeast Asia","East + US 2","Central US","Australia East","UK South","South Central US","Central + India","South India","North Central US","East Asia","Canada Central","Japan + East"],"apiVersions":["2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"SystemAssignedResourceIdentity, + SupportsTags, SupportsLocation"},{"resourceType":"serviceAssociationLinks","locations":["West + US","East US","West Europe","West US 2","North Europe","Southeast Asia","East + US 2","Central US","Australia East","UK South","South Central US","Central + India","South India","North Central US","East Asia","Canada Central","Japan + East"],"apiVersions":["2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"None"},{"resourceType":"locations/capabilities","locations":["West + US","East US","West Europe","West US 2","North Europe","Southeast Asia","East + US 2","Central US","Australia East","UK South","South Central US","Central + India","South India","North Central US","East Asia","Canada Central","Japan + East"],"apiVersions":["2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"None"},{"resourceType":"locations/usages","locations":["West + US","East US","West Europe","West US 2","North Europe","Southeast Asia","East + US 2","Central US","Australia East","UK South","South Central US","Central + India","South India","North Central US","East Asia","Canada Central","Japan + East"],"apiVersions":["2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["West + US","East US","West Europe","West US 2","North Europe","Southeast Asia","East + US 2","Central US","Australia East","UK South","South Central US","Central + India","South India","North Central US","East Asia","Canada Central","Japan + East"],"apiVersions":["2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"None"},{"resourceType":"locations/cachedImages","locations":["West + US","East US","West Europe","West US 2","North Europe","Southeast Asia","East + US 2","Central US","Australia East","UK South","South Central US","Central + India","South India","North Central US","East Asia","Canada Central","Japan + East"],"apiVersions":["2018-10-01"],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["West + US","East US","West Europe","West US 2","North Europe","Southeast Asia","East + US 2","Central US","Australia East","UK South","South Central US","Central + India","South India","North Central US","East Asia","Canada Central","Japan + East"],"apiVersions":["2018-12-01","2018-10-01","2018-09-01","2018-07-01","2018-06-01","2018-04-01","2018-02-01-preview","2017-12-01-preview","2017-10-01-preview","2017-08-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL","namespace":"Microsoft.DBforMySQL","authorization":{"applicationId":"76cd24bf-a9fc-4344-b1dc-908275de6d6d","roleDefinitionId":"c13b7b9c-2ed1-4901-b8a8-16f35468da29"},"resourceTypes":[{"resourceType":"operations","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"servers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"servers/recoverableServers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central US","Central India","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK South","UK West","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"servers/virtualNetworkRules","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/azureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK South","UK West","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/performanceTiers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesAzureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesOperationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01"],"capabilities":"None"},{"resourceType":"locations/recommendedActionSessionsAzureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"locations/recommendedActionSessionsOperationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/topQueryStatistics","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/queryTexts","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/waitStatistics","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/advisors","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataFactory","namespace":"Microsoft.DataFactory","authorizations":[{"applicationId":"0947a342-ab4a-43be-93b3-b8243fc161e5","roleDefinitionId":"f0a6aa2a-e9d8-4bae-bcc2-36b405e8a5da"},{"applicationId":"5d13f7d7-0567-429c-9880-320e9555e5fc","roleDefinitionId":"956a8f20-9168-4c71-8e27-3c0460ac39a4"}],"resourceTypes":[{"resourceType":"dataFactories","locations":["West US","North Europe","East US","West Central US"],"apiVersions":["2015-10-01","2015-09-01","2015-08-01","2015-07-01-preview","2015-05-01-preview","2015-01-01-preview","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"factories","locations":["East - US","East US 2","West Europe","Southeast Asia","East US 2 EUAP"],"apiVersions":["2017-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"factories/integrationRuntimes","locations":["East - US","East US 2","West Europe","Southeast Asia","East US 2 EUAP"],"apiVersions":["2017-09-01-preview"]},{"resourceType":"dataFactories/diagnosticSettings","locations":["North - Europe","East US","West US","West Central US"],"apiVersions":["2014-04-01"]},{"resourceType":"dataFactories/metricDefinitions","locations":["North - Europe","East US","West US","West Central US"],"apiVersions":["2014-04-01"]},{"resourceType":"checkDataFactoryNameAvailability","locations":[],"apiVersions":["2015-05-01-preview","2015-01-01-preview"]},{"resourceType":"checkAzureDataFactoryNameAvailability","locations":["West - US","North Europe","East US","West Central US"],"apiVersions":["2015-10-01","2015-09-01","2015-08-01","2015-07-01-preview","2015-05-01-preview","2015-01-01-preview"]},{"resourceType":"dataFactorySchema","locations":["West - US","North Europe","East US","West Central US"],"apiVersions":["2015-10-01","2015-09-01","2015-08-01","2015-07-01-preview","2015-05-01-preview","2015-01-01-preview"]},{"resourceType":"operations","locations":["West - US","North Europe","East US","West Central US"],"apiVersions":["2017-09-01-preview","2017-03-01-preview","2015-10-01","2015-09-01","2015-08-01","2015-07-01-preview","2015-05-01-preview","2015-01-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeAnalytics","namespace":"Microsoft.DataLakeAnalytics","resourceTypes":[{"resourceType":"accounts","locations":["East - US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"accounts/dataLakeStoreAccounts","locations":["East - US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"accounts/storageAccounts","locations":["East - US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"accounts/storageAccounts/containers","locations":["East - US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"accounts/storageAccounts/containers/listSasTokens","locations":["East - US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations/operationresults","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations/checkNameAvailability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations/capability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore","namespace":"Microsoft.DataLakeStore","authorization":{"applicationId":"e9f49c6b-5ce5-44c8-925d-015017e9f7ad","roleDefinitionId":"17eb9cca-f08a-4499-b2d3-852d175f614f"},"resourceTypes":[{"resourceType":"accounts","locations":["East - US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"accounts/firewallRules","locations":["East - US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations/operationresults","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations/checkNameAvailability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"locations/capability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL","namespace":"Microsoft.DBforMySQL","authorization":{"applicationId":"76cd24bf-a9fc-4344-b1dc-908275de6d6d","roleDefinitionId":"c13b7b9c-2ed1-4901-b8a8-16f35468da29"},"resourceTypes":[{"resourceType":"operations","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"servers","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/recoverableServers","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central US","Central - India","East Asia","East US 2","East US","Japan East","Japan West","Korea - South","North Central US","North Europe","South Central US","Southeast Asia","UK - South","UK West","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01"]},{"resourceType":"servers/virtualNetworkRules","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"checkNameAvailability","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations/operationResults","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations/azureAsyncOperation","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK South","UK - West","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations/performanceTiers","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL","namespace":"Microsoft.DBforPostgreSQL","authorization":{"applicationId":"76cd24bf-a9fc-4344-b1dc-908275de6d6d","roleDefinitionId":"c13b7b9c-2ed1-4901-b8a8-16f35468da29"},"resourceTypes":[{"resourceType":"operations","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"servers","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/recoverableServers","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK South","UK - West","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01"]},{"resourceType":"servers/virtualNetworkRules","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"checkNameAvailability","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations/operationResults","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations/azureAsyncOperation","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","UK West","UK - South","West Europe","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]},{"resourceType":"locations/performanceTiers","locations":["Australia - East","Brazil South","Canada Central","Canada East","Central India","Central - US","East Asia","East US 2","East US","Japan East","Japan West","Korea South","North - Central US","North Europe","South Central US","Southeast Asia","West Europe","UK - West","UK South","West India","West US","West US 2"],"apiVersions":["2017-12-01-preview","2017-12-01","2017-04-30-preview","2016-02-01-privatepreview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices","namespace":"Microsoft.Devices","resourceTypes":[{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"]},{"resourceType":"checkProvisioningServiceNameAvailability","locations":[],"apiVersions":["2018-01-22","2017-11-15","2017-08-21-preview"]},{"resourceType":"usages","locations":[],"apiVersions":["2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-04-01","2018-01-22-preview","2018-01-22","2017-11-15","2017-09-25-preview","2017-08-21-preview","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"]},{"resourceType":"IotHubs","locations":["West + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"factories","locations":["East + US","East US 2","Central US","South Central US","Japan East","Canada Central","Australia + East","Central India","France Central","Brazil South","West Europe","North + Europe","UK South","West Central US","West US","West US 2","Southeast Asia","East + US 2 EUAP"],"apiVersions":["2018-06-01","2017-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"factories/integrationRuntimes","locations":["East + US","East US 2","West US 2","West US","Central US","South Central US","Japan + East","Central India","Brazil South","France Central","Australia East","Canada + Central","West Central US","North Europe","UK South","West Europe","Southeast + Asia","East US 2 EUAP"],"apiVersions":["2018-06-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"dataFactories/diagnosticSettings","locations":["North + Europe","East US","West US","West Central US"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"dataFactories/metricDefinitions","locations":["North + Europe","East US","West US","West Central US"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"checkDataFactoryNameAvailability","locations":[],"apiVersions":["2015-05-01-preview","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"checkAzureDataFactoryNameAvailability","locations":["West + US","North Europe","East US","West Central US"],"apiVersions":["2015-10-01","2015-09-01","2015-08-01","2015-07-01-preview","2015-05-01-preview","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"dataFactorySchema","locations":["West + US","North Europe","East US","West Central US"],"apiVersions":["2015-10-01","2015-09-01","2015-08-01","2015-07-01-preview","2015-05-01-preview","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West + US","North Europe","East US","West Central US"],"apiVersions":["2018-06-01","2017-09-01-preview","2017-03-01-preview","2015-10-01","2015-09-01","2015-08-01","2015-07-01-preview","2015-05-01-preview","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-06-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/configureFactoryRepo","locations":["East + US","East US 2","West US 2","West US","Central US","South Central US","Japan + East","Australia East","Canada Central","Central India","Brazil South","France + Central","West Europe","North Europe","UK South","West Central US","Southeast + Asia","East US 2 EUAP"],"apiVersions":["2018-06-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/getFeatureValue","locations":["East + US","East US 2","West Europe","North Europe","UK South","West Central US","West + US","Central US","South Central US","Japan East","Australia East","Canada + Central","Central India","Brazil South","France Central","West US 2","Southeast + Asia","East US 2 EUAP"],"apiVersions":["2018-06-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataLakeStore","namespace":"Microsoft.DataLakeStore","authorization":{"applicationId":"e9f49c6b-5ce5-44c8-925d-015017e9f7ad","roleDefinitionId":"17eb9cca-f08a-4499-b2d3-852d175f614f"},"resourceTypes":[{"resourceType":"accounts","locations":["East + US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"defaultApiVersion":"2016-11-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"accounts/firewallRules","locations":["East + US 2","North Europe","Central US","West Europe"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"accounts/eventGridFilters","locations":["East + US 2","North Europe","Central US","West Europe","West Central US","West US + 2"],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/capability","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-11-01","2015-10-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL","namespace":"Microsoft.DBforPostgreSQL","authorization":{"applicationId":"76cd24bf-a9fc-4344-b1dc-908275de6d6d","roleDefinitionId":"c13b7b9c-2ed1-4901-b8a8-16f35468da29"},"resourceTypes":[{"resourceType":"operations","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"servers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"serversv2","locations":["East + US 2","West Europe","Southeast Asia","West US 2"],"apiVersions":["2018-03-29-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"serverGroups","locations":["East + US 2","West Europe","Southeast Asia","West US 2"],"apiVersions":["2018-03-29-privatepreview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"servers/recoverableServers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK South","UK West","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"servers/virtualNetworkRules","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/azureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/performanceTiers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01-preview","2017-12-01"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesAzureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesOperationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2017-12-01"],"capabilities":"None"},{"resourceType":"locations/recommendedActionSessionsAzureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"locations/recommendedActionSessionsOperationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/topQueryStatistics","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/queryTexts","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/waitStatistics","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/advisors","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Devices","namespace":"Microsoft.Devices","authorizations":[{"applicationId":"0cd79364-7a90-4354-9984-6e36c841418d","roleDefinitionId":"C121DF10-FE58-4BC4-97F9-8296879F7BBB"}],"resourceTypes":[{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-03-22-preview","2018-12-01-preview","2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"],"defaultApiVersion":"2018-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"None"},{"resourceType":"checkProvisioningServiceNameAvailability","locations":[],"apiVersions":["2018-01-22","2017-11-15","2017-08-21-preview"],"defaultApiVersion":"2018-01-22","capabilities":"None"},{"resourceType":"usages","locations":[],"apiVersions":["2019-03-22-preview","2018-12-01-preview","2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"],"defaultApiVersion":"2018-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-03-22-preview","2018-12-01-preview","2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"],"defaultApiVersion":"2018-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2019-03-22-preview","2018-12-01-preview","2018-04-01-preview","2018-04-01","2018-01-22-preview","2018-01-22","2017-11-15","2017-09-25-preview","2017-08-21-preview","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"],"defaultApiVersion":"2018-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"None"},{"resourceType":"IotHubs","locations":["West US","North Europe","East Asia","East US","West Europe","Southeast Asia","Japan East","Japan West","Australia East","Australia Southeast","West US 2","West Central US","East US 2","Central US","UK South","UK West","South India","Central India","Canada Central","Canada East","Brazil South","South Central US","Korea - South","Korea Central","Central US EUAP"],"apiVersions":["2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"IotHubs/eventGridFilters","locations":["West + South","Korea Central","France Central","North Central US","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2019-03-22-preview","2018-12-01-preview","2018-04-01","2018-01-22","2017-07-01","2017-01-19","2016-02-03","2015-08-15-preview"],"defaultApiVersion":"2018-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"IotHubs/eventGridFilters","locations":["West US","East US","West US 2","West Central US","East US 2","Central US","North - Europe","West Europe","East Asia","Southeast Asia"],"apiVersions":["2018-01-15-preview"]},{"resourceType":"ProvisioningServices","locations":["East - US","West US","West Europe","North Europe","Southeast Asia","East Asia"],"apiVersions":["2018-01-22","2017-11-15","2017-08-21-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"ElasticPools","locations":["Central - US EUAP"],"apiVersions":["2018-01-22-preview","2017-09-25-preview","2017-07-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"ElasticPools/IotHubTenants","locations":["Central - US EUAP"],"apiVersions":["2018-01-22-preview","2017-09-25-preview","2017-07-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevTestLab","namespace":"Microsoft.DevTestLab","authorization":{"applicationId":"1a14be2a-e903-4cec-99cf-b2e209259a0f","roleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525","managedByRoleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525"},"resourceTypes":[{"resourceType":"labs","locations":["West - Central US","Japan East","West US","Australia Southeast","Canada Central","Central - India","Central US","East Asia","Korea Central","North Europe","South Central - US","UK West","West India","Australia East","Brazil South","Canada East","East - US","East US 2","Japan West","Korea South","North Central US","South India","Southeast - Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-04-26-preview","2016-05-15"],"capabilities":"CrossResourceGroupResourceMove"},{"resourceType":"schedules","locations":["West - Central US","Japan East","West US","Australia Southeast","Canada Central","Central - India","Central US","East Asia","Korea Central","North Europe","South Central - US","UK West","West India","Australia East","Brazil South","Canada East","East - US","East US 2","Japan West","Korea South","North Central US","South India","Southeast - Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-04-26-preview","2016-05-15"],"capabilities":"None"},{"resourceType":"labs/virtualMachines","locations":["West - Central US","Japan East","West US","Australia Southeast","Canada Central","Central - India","Central US","East Asia","Korea Central","North Europe","South Central - US","UK West","West India","Australia East","Brazil South","Canada East","East - US","East US 2","Japan West","Korea South","North Central US","South India","Southeast - Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-04-26-preview","2016-05-15"],"capabilities":"CrossResourceGroupResourceMove"},{"resourceType":"labs/serviceRunners","locations":["Central - US","East US 2","South Central US"],"apiVersions":["2017-04-26-preview","2016-05-15"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-26-preview","2016-05-15","2015-05-21-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-04-26-preview","2016-05-15","2015-05-21-preview"]},{"resourceType":"locations/operations","locations":["West - Central US","Japan East","West US","Australia Southeast","Canada Central","Central - India","Central US","East Asia","Korea Central","North Europe","South Central - US","UK West","West India","Australia East","Brazil South","Canada East","East - US","East US 2","Japan West","Korea South","North Central US","South India","Southeast - Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-04-26-preview","2016-05-15"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB","namespace":"Microsoft.DocumentDB","authorizations":[{"applicationId":"57c0fc58-a83a-41d0-8ae9-08952659bdfd","roleDefinitionId":"FFFD5CF5-FFD3-4B24-B0E2-0715ADD4C282"}],"resourceTypes":[{"resourceType":"databaseAccounts","locations":["Australia + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","UK South","UK West","South India","Central India","Canada + Central","Canada East","Brazil South","South Central US","Korea South","Korea + Central","France Central","North Central US","Central US EUAP","East US 2 + EUAP"],"apiVersions":["2018-07-31","2018-01-15-preview"],"capabilities":"None"},{"resourceType":"ProvisioningServices","locations":["East + US","West US","West Europe","North Europe","Southeast Asia","East Asia"],"apiVersions":["2018-01-22","2017-11-15","2017-08-21-preview"],"defaultApiVersion":"2018-01-22","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"ElasticPools","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-22-preview","2018-12-01-preview","2018-01-22-preview","2017-09-25-preview","2017-07-01"],"defaultApiVersion":"2018-01-22-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"ElasticPools/IotHubTenants","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-22-preview","2018-01-22-preview","2017-09-25-preview","2017-07-01"],"defaultApiVersion":"2018-01-22-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevTestLab","namespace":"Microsoft.DevTestLab","authorization":{"applicationId":"1a14be2a-e903-4cec-99cf-b2e209259a0f","roleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525","managedByRoleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525"},"resourceTypes":[{"resourceType":"labs/environments","locations":["Southeast + Asia","East US","West US","West Europe","East Asia","East US 2","Japan East","Japan + West","Central US"],"apiVersions":["2015-05-21-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"labs","locations":["West + Central US","Japan East","West US","Australia Central","Australia Southeast","Canada + Central","Central India","Central US","East Asia","France Central","Korea + Central","North Europe","South Central US","UK West","West India","Australia + Central 2","Australia East","Brazil South","Canada East","East US","East US + 2","France South","Japan West","Korea South","North Central US","South India","Southeast + Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-15-preview","2018-09-15","2017-04-26-preview","2016-05-15"],"capabilities":"CrossResourceGroupResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"schedules","locations":["West + Central US","Japan East","West US","Australia Central","Australia Southeast","Canada + Central","Central India","Central US","East Asia","France Central","Korea + Central","North Europe","South Central US","UK West","West India","Australia + Central 2","Australia East","Brazil South","Canada East","East US","East US + 2","France South","Japan West","Korea South","North Central US","South India","Southeast + Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-15-preview","2018-09-15","2017-04-26-preview","2016-05-15"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"labs/virtualMachines","locations":["West + Central US","Japan East","West US","Australia Central","Australia Southeast","Canada + Central","Central India","Central US","East Asia","France Central","Korea + Central","North Europe","South Central US","UK West","West India","Australia + Central 2","Australia East","Brazil South","Canada East","East US","East US + 2","France South","Japan West","Korea South","North Central US","South India","Southeast + Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-15-preview","2018-09-15","2017-04-26-preview","2016-05-15"],"capabilities":"CrossResourceGroupResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"labs/serviceRunners","locations":["West + Central US","Japan East","West US","Australia Central","Australia Southeast","Canada + Central","Central India","Central US","East Asia","France Central","Korea + Central","North Europe","South Central US","UK West","West India","Australia + Central 2","Australia East","Brazil South","Canada East","East US","East US + 2","France South","Japan West","Korea South","North Central US","South India","Southeast + Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-15-preview","2018-09-15","2017-04-26-preview","2016-05-15"],"defaultApiVersion":"2016-05-15","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2018-10-15-preview","2018-09-15","2017-04-26-preview","2016-05-15","2015-05-21-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-10-15-preview","2018-09-15","2017-04-26-preview","2016-05-15","2015-05-21-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["West + Central US","Japan East","West US","Australia Central","Australia Southeast","Canada + Central","Central India","Central US","East Asia","France Central","Korea + Central","North Europe","South Central US","UK West","West India","Australia + Central 2","Australia East","Brazil South","Canada East","East US","East US + 2","France South","Japan West","Korea South","North Central US","South India","Southeast + Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-15-preview","2018-09-15","2017-04-26-preview","2016-05-15"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB","namespace":"Microsoft.DocumentDB","authorizations":[{"applicationId":"57c0fc58-a83a-41d0-8ae9-08952659bdfd","roleDefinitionId":"FFFD5CF5-FFD3-4B24-B0E2-0715ADD4C282"},{"applicationId":"36e2398c-9dd3-4f29-9a72-d9f2cfc47ad9","roleDefinitionId":"D5A795DE-916D-4818-B015-33C9E103E39B"}],"resourceTypes":[{"resourceType":"databaseAccounts","locations":["Australia East","Australia Southeast","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Central US","West Europe","West India","West US","West US 2","UK - West","UK South","Brazil South","Korea South","Korea Central","Central US - EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"databaseAccountNames","locations":["Australia + West","North Central US","North Europe","South Africa North","South Central + US","South India","Southeast Asia","West Central US","West Europe","West India","West + US","West US 2","UK West","UK South","Brazil South","Korea South","Korea Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-08"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"databaseAccountNames","locations":["Australia East","Australia Southeast","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Central US","West Europe","West India","West US","West US 2","UK - West","UK South","Brazil South","Korea South","Korea Central","Central US - EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"]},{"resourceType":"operations","locations":["Australia + West","North Central US","North Europe","South Africa North","South Central + US","South India","Southeast Asia","West Central US","West Europe","West India","West + US","West US 2","UK West","UK South","Brazil South","Korea South","Korea Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-08"}],"capabilities":"None"},{"resourceType":"operations","locations":["Australia East","Australia Southeast","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Central US","West Europe","West India","West US","West US 2","UK - West","UK South","Brazil South","Korea South","Korea Central","Central US - EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"]},{"resourceType":"operationResults","locations":["Australia + West","North Central US","North Europe","South Africa North","South Central + US","South India","Southeast Asia","West Central US","West Europe","West India","West + US","West US 2","UK West","UK South","Brazil South","Korea South","Korea Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-08"}],"capabilities":"None"},{"resourceType":"operationResults","locations":["Australia East","Australia Southeast","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Central US","West Europe","West India","West US","West US 2","UK - West","UK South","Brazil South","Korea South","Korea Central","Central US - EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"]},{"resourceType":"locations","locations":["Central - US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["Central - US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid","namespace":"Microsoft.EventGrid","authorizations":[{"applicationId":"4962773b-9cdb-44cf-a8bf-237846a00ab7","roleDefinitionId":"7FE036D8-246F-48BF-A78F-AB3EE699C8F3"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"locations/eventSubscriptions","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP","East - US 2 (Stage)"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"eventSubscriptions","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP","East - US 2 (Stage)"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"topics","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"topicTypes","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP","East - US 2 (Stage)"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"operations","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"locations/operationsStatus","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP","East - US 2 (Stage)"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"locations/operationResults","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP","East - US 2 (Stage)"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"locations/topicTypes","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"extensionTopics","locations":["West - US 2","East US","West US","Central US","East US 2","West Central US","West - Europe","North Europe","Southeast Asia","East Asia","East US 2 EUAP","East - US 2 (Stage)"],"apiVersions":["2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"operationsStatus","locations":[],"apiVersions":["2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"]},{"resourceType":"domains","locations":["East - US 2 EUAP"],"apiVersions":["2018-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"domains/topics","locations":["East - US 2 EUAP"],"apiVersions":["2018-05-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventHub","namespace":"Microsoft.EventHub","authorization":{"applicationId":"80369ed6-5f11-4dd9-bef3-692475845e77","roleDefinitionId":"eb8e1991-5de0-42a6-a64b-29b059341b7b"},"resourceTypes":[{"resourceType":"namespaces","locations":["Australia + West","North Central US","North Europe","South Africa North","South Central + US","South India","Southeast Asia","West Central US","West Europe","West India","West + US","West US 2","UK West","UK South","Brazil South","Korea South","Korea Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-08"}],"capabilities":"None"},{"resourceType":"locations/operationsStatus","locations":["Australia + East","Australia Southeast","Canada Central","Canada East","Central India","Central + US","East Asia","East US","East US 2","France Central","Japan East","Japan + West","North Central US","North Europe","South Africa North","South Central + US","South India","Southeast Asia","West Central US","West Europe","West India","West + US","West US 2","UK West","UK South","Brazil South","Korea South","Korea Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-08"}],"capabilities":"None"},{"resourceType":"locations","locations":["Australia + East","Australia Southeast","Canada Central","Canada East","Central India","Central + US","East Asia","East US","East US 2","France Central","Japan East","Japan + West","North Central US","North Europe","South Africa North","South Central + US","South India","Southeast Asia","West Central US","West Europe","West India","West + US","West US 2","UK West","UK South","Brazil South","Korea South","Korea Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["Australia + East","Australia Southeast","Canada Central","Canada East","Central India","Central + US","East Asia","East US","East US 2","France Central","Japan East","Japan + West","North Central US","North Europe","South Africa North","South Central + US","South India","Southeast Asia","West Central US","West Europe","West India","West + US","West US 2","UK West","UK South","Brazil South","Korea South","Korea Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-03-31","2016-03-19","2015-11-06","2015-04-08","2014-04-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DomainRegistration","namespace":"Microsoft.DomainRegistration","authorization":{"applicationId":"ea2f600a-4980-45b7-89bf-d34da487bda1","roleDefinitionId":"54d7f2e3-5040-48a7-ae90-eebf629cfa0b"},"resourceTypes":[{"resourceType":"domains","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"domains/domainOwnershipIdentifiers","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"topLevelDomains","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"checkDomainAvailability","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"listDomainRecommendations","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"validateDomainRegistrationInformation","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"generateSsoRequest","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["global"],"apiVersions":["2018-02-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid","namespace":"Microsoft.EventGrid","authorizations":[{"applicationId":"4962773b-9cdb-44cf-a8bf-237846a00ab7","roleDefinitionId":"7FE036D8-246F-48BF-A78F-AB3EE699C8F3"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"locations/eventSubscriptions","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","East US 2 (Stage)","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"eventSubscriptions","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","East US 2 (Stage)","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"topics","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"domains","locations":["Central + US","West US 2","East US","West US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2018-09-15-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"domains/topics","locations":["Central + US","West US 2","East US","West US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2018-09-15-preview"],"capabilities":"None"},{"resourceType":"topicTypes","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","East US 2 (Stage)","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"locations/operationsStatus","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","East US 2 (Stage)","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","East US 2 (Stage)","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"locations/topicTypes","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"extensionTopics","locations":["West + US 2","East US","West US","Central US","East US 2","West Central US","Australia + East","Australia Southeast","Japan East","Japan West","West Europe","North + Europe","Southeast Asia","East Asia","North Central US","South Central US","Brazil + South","Canada Central","Canada East","Central India","South India","West + India","France Central","UK West","UK South","Korea Central","Korea South","East + US 2 EUAP","East US 2 (Stage)","Central US EUAP"],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"},{"resourceType":"operationsStatus","locations":[],"apiVersions":["2019-06-01","2019-02-01-preview","2019-01-01","2018-09-15-preview","2018-05-01-preview","2018-01-01","2017-09-15-preview","2017-06-15-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventHub","namespace":"Microsoft.EventHub","authorization":{"applicationId":"80369ed6-5f11-4dd9-bef3-692475845e77","roleDefinitionId":"eb8e1991-5de0-42a6-a64b-29b059341b7b"},"resourceTypes":[{"resourceType":"namespaces","locations":["Australia + East","Australia Southeast","Central US","East US","East US 2","West US","West + US 2","North Central US","South Central US","West Central US","East Asia","Southeast + Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central + India","South India","West India","Canada Central","Canada East","UK West","UK + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-01-preview","2017-04-01","2015-08-01","2014-09-01"],"defaultApiVersion":"2017-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"clusters","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"clusters","locations":["East - US 2","South Central US"],"apiVersions":["2018-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"namespaces/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/eventhubs","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/eventhubs/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/eventhubs/consumergroups","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"checkNamespaceAvailability","locations":[],"apiVersions":["2015-08-01","2014-09-01"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"sku","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/disasterrecoveryconfigs","locations":[],"apiVersions":["2017-04-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight","namespace":"Microsoft.HDInsight","authorization":{"applicationId":"9191c4da-09fe-49d9-a5f1-d41cbe92ad95","roleDefinitionId":"d102a6f3-d9cb-4633-8950-1243b975886c","managedByRoleDefinitionId":"346da55d-e1db-4a5a-89db-33ab3cdb6fc6"},"resourceTypes":[{"resourceType":"clusters","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"clusters/applications","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"clusters/operationresults","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"locations","locations":["East + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"namespaces/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/eventhubs","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/eventhubs/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/eventhubs/consumergroups","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"checkNamespaceAvailability","locations":[],"apiVersions":["2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-08-01"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"sku","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/disasterrecoveryconfigs","locations":[],"apiVersions":["2017-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/disasterrecoveryconfigs/checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-01-01-preview","2017-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":[],"apiVersions":["2018-01-01-preview","2017-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight","namespace":"Microsoft.HDInsight","authorization":{"applicationId":"9191c4da-09fe-49d9-a5f1-d41cbe92ad95","roleDefinitionId":"d102a6f3-d9cb-4633-8950-1243b975886c","managedByRoleDefinitionId":"346da55d-e1db-4a5a-89db-33ab3cdb6fc6"},"resourceTypes":[{"resourceType":"clusters","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"clusters/applications","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"clusters/operationresults","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"locations","locations":["East Asia","Southeast Asia","East US","East US 2","West US","North Central US","South Central US","Central US","North Europe","West Europe","Japan East","Japan - West","Australia East","Australia Southeast","Brazil South","Central India"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"locations/capabilities","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"locations/usages","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"locations/operationresults","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"locations/azureasyncoperations","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"locations/validateCreateRequest","locations":["East - US 2","South Central US","Central US","Australia Southeast","Central India","West - Central US","West US 2","Canada East","Canada Central","Brazil South","UK - South","UK West","East Asia","Australia East","Japan East","Japan West","North - Europe","West Europe","North Central US","Southeast Asia","East US","Korea - South","Korea Central","West US","East US 2 EUAP"],"apiVersions":["2015-03-01-preview"]},{"resourceType":"operations","locations":["East + West","Australia East","Australia Southeast","Brazil South","Central India"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"locations/capabilities","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"locations/usages","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"locations/operationresults","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"locations/azureasyncoperations","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"locations/validateCreateRequest","locations":["East + US 2","South Central US","Australia Southeast","Central India","West Central + US","West US 2","Canada East","Canada Central","Brazil South","UK South","UK + West","East Asia","Australia East","Japan East","Japan West","North Europe","West + Europe","North Central US","Central US","Southeast Asia","East US","Korea + South","Korea Central","West US","South India","France Central","Australia + Central","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"},{"resourceType":"operations","locations":["East Asia","Southeast Asia","East US","East US 2","West US","North Central US","South Central US","Central US","North Europe","West Europe","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India"],"apiVersions":["2015-03-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights","namespace":"microsoft.insights","authorizations":[{"applicationId":"11c174dc-1945-4a9a-a36b-c79a0f246b9b","roleDefinitionId":"dd9d4347-f397-45f2-b538-85f21c90037b"},{"applicationId":"035f9e1d-4f00-4419-bf50-bf2d87eb4878","roleDefinitionId":"323795fe-ba3d-4f5a-ad42-afb4e1ea9485"},{"applicationId":"f5c26e74-f226-4ae8-85f0-b4af0080ac9e","roleDefinitionId":"529d7ae6-e892-4d43-809d-8547aeb90643"}],"resourceTypes":[{"resourceType":"components","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"webtests","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2015-05-01","2014-08-01","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"queries","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2015-05-01","2014-08-01"]},{"resourceType":"scheduledqueryrules","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"components/pricingPlans","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-10-01"]},{"resourceType":"migrateToNewPricingModel","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-10-01"]},{"resourceType":"rollbackToLegacyPricingModel","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-10-01"]},{"resourceType":"listMigrationdate","locations":["East - US","South Central US","North Europe","West Europe","Southeast Asia","West - US 2"],"apiVersions":["2017-10-01"]},{"resourceType":"logprofiles","locations":[],"apiVersions":["2016-03-01"]},{"resourceType":"metricalerts","locations":["Global"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"alertrules","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","France Central","East US 2 - EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"autoscalesettings","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","France Central","East US 2 - EUAP","Central US EUAP"],"apiVersions":["2015-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"eventtypes","locations":[],"apiVersions":["2017-03-01-preview","2016-09-01-preview","2015-04-01","2014-11-01","2014-04-01"]},{"resourceType":"locations","locations":["East - US"],"apiVersions":["2015-04-01","2014-04-01"]},{"resourceType":"locations/operationResults","locations":[],"apiVersions":["2015-04-01","2014-04-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-04-01","2014-06-01","2014-04-01"]},{"resourceType":"automatedExportSettings","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central"],"apiVersions":["2015-04-01","2014-04-01"]},{"resourceType":"diagnosticSettings","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","France Central","East US 2 - EUAP","Central US EUAP"],"apiVersions":["2017-05-01-preview","2016-09-01","2015-07-01"]},{"resourceType":"diagnosticSettingsCategories","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","France Central","East US 2 - EUAP","Central US EUAP"],"apiVersions":["2017-05-01-preview"]},{"resourceType":"extendedDiagnosticSettings","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","France Central","East US 2 - EUAP","Central US EUAP"],"apiVersions":["2017-02-01"]},{"resourceType":"metricDefinitions","locations":["East - US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan - West","North Central US","South Central US","East US 2","Canada East","Canada - Central","Central US","Australia East","Australia Southeast","Brazil South","South - India","Central India","West India","North Europe","West US 2","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-01-01","2017-09-01-preview","2017-05-01-preview","2016-03-01","2015-07-01"]},{"resourceType":"logDefinitions","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","East US 2","Central - US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South - India","Central India","West India","Canada East","Canada Central","West Central - US","West US 2","Korea South","Korea Central","France Central","East US 2 - EUAP","Central US EUAP"],"apiVersions":["2015-07-01"]},{"resourceType":"eventCategories","locations":[],"apiVersions":["2015-04-01"]},{"resourceType":"metrics","locations":["East - US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan - West","North Central US","South Central US","East US 2","Canada East","Canada - Central","Central US","Australia East","Australia Southeast","Brazil South","South - India","Central India","West India","North Europe","West US 2","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-01-01","2017-09-01-preview","2017-05-01-preview","2016-09-01","2016-06-01"]},{"resourceType":"metricNamespaces","locations":["East - US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan - West","North Central US","South Central US","East US 2","Canada East","Canada - Central","Central US","Australia East","Australia Southeast","Brazil South","South - India","Central India","West India","North Europe","West US 2","West Central - US","Korea South","Korea Central","UK South","UK West","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-01-01","2017-12-01-preview"]},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["2018-03-01","2017-04-01","2017-03-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"activityLogAlerts","locations":["Global"],"apiVersions":["2017-04-01","2017-03-01-preview"],"capabilities":"None"}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"}],"resourceTypes":[{"resourceType":"vaults","locations":["North + West","Brazil South","Australia East","Australia Southeast","Central India"],"apiVersions":["2018-06-01-preview","2015-03-01-preview"],"defaultApiVersion":"2015-03-01-preview","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedIdentity","namespace":"Microsoft.ManagedIdentity","resourceTypes":[{"resourceType":"Identities","locations":["South + Africa North","South Africa West","Australia East","Australia Southeast","Canada + Central","Canada East","Brazil South","Central India","West India","South + India","Japan West","Japan East","East Asia","Southeast Asia","Korea Central","Korea + South","North Europe","West Europe","UK West","UK South","Central US","North + Central US","East US","East US 2","South Central US","West US","West US 2","West + Central US","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-30","2015-08-31-PREVIEW"],"capabilities":"None"},{"resourceType":"userAssignedIdentities","locations":["South + Africa North","South Africa West","Australia East","Australia Southeast","Canada + Central","Canada East","Brazil South","Central India","West India","South + India","Japan West","Japan East","East Asia","Southeast Asia","Korea Central","Korea + South","North Europe","West Europe","UK West","UK South","Central US","North + Central US","East US","East US 2","South Central US","West US","West US 2","West + Central US","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-30","2015-08-31-PREVIEW"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":["South Africa + North","South Africa West","Australia East","Australia Southeast","Canada + Central","Canada East","Brazil South","Central India","West India","South + India","Japan West","Japan East","East Asia","Southeast Asia","Korea Central","Korea + South","North Europe","West Europe","UK West","UK South","Central US","North + Central US","East US","East US 2","South Central US","West US","West US 2","West + Central US","France Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-30","2015-08-31-PREVIEW"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault","namespace":"Microsoft.KeyVault","authorizations":[{"applicationId":"cfa8b339-82a2-471a-a3c9-0fc0be7a4093","roleDefinitionId":"1cf9858a-28a2-4228-abba-94e606305b95"}],"resourceTypes":[{"resourceType":"vaults","locations":["North Central US","East US","North Europe","West Europe","East Asia","Southeast Asia","East US 2","Central US","South Central US","West US","Japan East","Japan West","Australia East","Australia Southeast","Brazil South","Central India","South India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2016-10-01","2015-06-01"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"vaults/secrets","locations":["North + Central US","West US 2","Korea Central","Korea South","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"vaults/secrets","locations":["North Central US","East US","North Europe","West Europe","East Asia","Southeast Asia","East US 2","Central US","South Central US","West US","Japan East","Japan West","Australia East","Australia Southeast","Brazil South","Central India","South India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2016-10-01","2015-06-01"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"}]},{"resourceType":"vaults/accessPolicies","locations":["North + Central US","West US 2","Korea Central","Korea South","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"},{"resourceType":"vaults/accessPolicies","locations":["North Central US","East US","North Europe","West Europe","East Asia","Southeast Asia","East US 2","Central US","South Central US","West US","Japan East","Japan West","Australia East","Australia Southeast","Brazil South","Central India","South India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2016-10-01","2015-06-01"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"}]},{"resourceType":"operations","locations":[],"apiVersions":["2018-02-14-preview","2016-10-01","2015-06-01","2014-12-19-preview"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"}]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-02-14-preview","2016-10-01","2015-06-01"]},{"resourceType":"deletedVaults","locations":["North + Central US","West US 2","Korea Central","Korea South","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01","2014-12-19-preview"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-10-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01","2015-06-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"},{"resourceType":"deletedVaults","locations":["North Central US","East US","North Europe","West Europe","East Asia","Southeast Asia","East US 2","Central US","South Central US","West US","Japan East","Japan West","Australia East","Australia Southeast","Brazil South","Central India","South India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2016-10-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2018-02-14-preview","2016-10-01"]},{"resourceType":"locations/deletedVaults","locations":["North + Central US","West US 2","Korea Central","Korea South","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"},{"resourceType":"locations/deletedVaults","locations":["North Central US","East US","North Europe","West Europe","East Asia","Southeast Asia","East US 2","Central US","South Central US","West US","Japan East","Japan West","Australia East","Australia Southeast","Brazil South","Central India","South India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2016-10-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East + Central US","West US 2","Korea Central","Korea South","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East US","North Central US","West Europe","North Europe","East Asia","Southeast Asia","East US 2","Central US","South Central US","West Central US","West US 2","West US","Japan East","Japan West","Australia East","Australia Southeast","Brazil South","Central India","South India","West India","Canada Central","Canada - East","UK South","UK West","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-02-14-preview","2016-10-01"]},{"resourceType":"locations/operationResults","locations":["North + East","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01"],"defaultApiVersion":"2018-02-14","capabilities":"None"},{"resourceType":"locations/operationResults","locations":["North Central US","East US","North Europe","West Europe","East Asia","Southeast Asia","East US 2","Central US","South Central US","West US","Japan East","Japan West","Australia East","Australia Southeast","Brazil South","Central India","South India","West India","Canada Central","Canada East","UK South","UK West","West - Central US","West US 2","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2016-10-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Logic","namespace":"Microsoft.Logic","authorization":{"applicationId":"7cd684f4-8a78-49b0-91ec-6a35d38739ba","roleDefinitionId":"cb3ef1fb-6e31-49e2-9d87-ed821053fe58"},"resourceTypes":[{"resourceType":"workflows","locations":["North + Central US","West US 2","Korea Central","Korea South","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-02-14-preview","2018-02-14","2016-10-01"],"defaultApiVersion":"2018-02-14","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-10-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Logic","namespace":"Microsoft.Logic","authorization":{"applicationId":"7cd684f4-8a78-49b0-91ec-6a35d38739ba","roleDefinitionId":"cb3ef1fb-6e31-49e2-9d87-ed821053fe58"},"resourceTypes":[{"resourceType":"workflows","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","West US 2","West Central - US","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations/workflows","locations":["North + US","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations/workflows","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","West US 2","West Central - US","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"]},{"resourceType":"locations","locations":["North - Central US"],"apiVersions":["2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"]},{"resourceType":"operations","locations":["North + US","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["North + Central US"],"apiVersions":["2018-07-01-preview","2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","West US 2","West Central - US","UK South","UK West"],"apiVersions":["2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"]},{"resourceType":"integrationAccounts","locations":["North + US","UK South","UK West"],"apiVersions":["2018-07-01-preview","2017-07-01","2016-10-01","2016-06-01","2015-08-01-preview","2015-02-01-preview"],"capabilities":"None"},{"resourceType":"integrationAccounts","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","West US 2","West Central - US","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01","2015-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"hostingEnvironments","locations":["Central + US","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2016-06-01","2015-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"integrationServiceEnvironments","locations":["North + Central US","Central US","South Central US","North Europe","West Europe","East + Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan + East","Australia East","Australia Southeast","South India","Central India","Canada + Central","West US 2","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-06-01-preview","2019-05-01","2018-07-01-preview","2018-03-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"hostingEnvironments","locations":["Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"isolatedEnvironments","locations":["Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview"],"capabilities":"None"}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearning","namespace":"Microsoft.MachineLearning","authorization":{"applicationId":"0736f41a-0425-4b46-bdb5-1563eff02385","roleDefinitionId":"1cc297bc-1829-4524-941f-966373421033"},"resourceTypes":[{"resourceType":"Workspaces","locations":["South + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"isolatedEnvironments","locations":["Central + US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearning","namespace":"Microsoft.MachineLearning","authorization":{"applicationId":"0736f41a-0425-4b46-bdb5-1563eff02385","roleDefinitionId":"1cc297bc-1829-4524-941f-966373421033"},"resourceTypes":[{"resourceType":"Workspaces","locations":["South Central US","West Europe","Southeast Asia","Japan East","West Central US","Central US EUAP"],"apiVersions":["2016-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"webServices","locations":["South - Central US","West Europe","Southeast Asia","Japan East","East US 2","West - Central US","Central US EUAP"],"apiVersions":["2017-01-01","2016-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove"},{"resourceType":"operations","locations":["South - Central US"],"apiVersions":["2017-01-01","2016-05-01-preview"]},{"resourceType":"locations","locations":["South - Central US"],"apiVersions":["2017-01-01","2016-05-01-preview"]},{"resourceType":"locations/operations","locations":["South + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"webServices","locations":["South Central + US","West Europe","Southeast Asia","Japan East","East US 2","West Central + US","Central US EUAP"],"apiVersions":["2017-01-01","2016-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["South + Central US"],"apiVersions":["2017-01-01","2016-05-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["South + Central US"],"apiVersions":["2017-01-01","2016-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["South Central US","West Europe","Southeast Asia","Japan East","East US 2","West - Central US","Central US EUAP"],"apiVersions":["2017-01-01","2016-05-01-preview"]},{"resourceType":"locations/operationsStatus","locations":["South + Central US","Central US EUAP"],"apiVersions":["2017-01-01","2016-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationsStatus","locations":["South Central US","West Europe","Southeast Asia","Japan East","East US 2","West - Central US","Central US EUAP"],"apiVersions":["2017-01-01","2016-05-01-preview"]},{"resourceType":"commitmentPlans","locations":["South + Central US","Central US EUAP"],"apiVersions":["2017-01-01","2016-05-01-preview"],"capabilities":"None"},{"resourceType":"commitmentPlans","locations":["South Central US","West Europe","Southeast Asia","Japan East","East US 2","West Central US","Central US EUAP"],"apiVersions":["2017-01-01","2016-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedIdentity","namespace":"Microsoft.ManagedIdentity","resourceTypes":[{"resourceType":"Identities","locations":["Australia - East","Australia Southeast","Canada Central","Canada East","Brazil South","Central - India","West India","South India","Japan West","Japan East","East Asia","Southeast - Asia","Korea Central","Korea South","North Europe","West Europe","UK West","UK - South","Central US","North Central US","East US","East US 2","South Central - US","West US","West US 2","West Central US","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2015-08-31-PREVIEW"]},{"resourceType":"userAssignedIdentities","locations":["Australia - East","Australia Southeast","Canada Central","Canada East","Brazil South","Central - India","West India","South India","Japan West","Japan East","East Asia","Southeast - Asia","Korea Central","Korea South","North Europe","West Europe","UK West","UK - South","Central US","North Central US","East US","East US 2","South Central - US","West US","West US 2","West Central US","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2015-08-31-PREVIEW"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["Australia - East","Australia Southeast","Canada Central","Canada East","Brazil South","Central - India","West India","South India","Japan West","Japan East","East Asia","Southeast - Asia","Korea Central","Korea South","North Europe","West Europe","UK West","UK - South","Central US","North Central US","East US","East US 2","South Central - US","West US","West US 2","West Central US","France Central","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2015-08-31-PREVIEW"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MobileEngagement","namespace":"Microsoft.MobileEngagement","resourceTypes":[{"resourceType":"appcollections","locations":["Central - US","North Europe"],"apiVersions":["2014-12-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"appcollections/apps","locations":["Central - US","North Europe"],"apiVersions":["2014-12-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkappcollectionnameavailability","locations":["Central - US","North Europe"],"apiVersions":["2014-12-01"]},{"resourceType":"supportedplatforms","locations":["Central - US","North Europe"],"apiVersions":["2014-12-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network","namespace":"Microsoft.Network","authorizations":[{"applicationId":"2cf9eb86-36b5-49dc-86ae-9a63135dfa8c","roleDefinitionId":"13ba9ab4-19f0-4804-adc4-14ece36cc7a1"},{"applicationId":"7c33bfcb-8d33-48d6-8e60-dc6404003489","roleDefinitionId":"ad6261e4-fa9a-4642-aa5f-104f1b67e9e3"},{"applicationId":"1e3e4475-288f-4018-a376-df66fd7fac5f","roleDefinitionId":"1d538b69-3d87-4e56-8ff8-25786fd48261"},{"applicationId":"a0be0c72-870e-46f0-9c49-c98333a996f7","roleDefinitionId":"7ce22727-ffce-45a9-930c-ddb2e56fa131"},{"applicationId":"486c78bf-a0f7-45f1-92fd-37215929e116","roleDefinitionId":"98a9e526-0a60-4c1f-a33a-ae46e1f8dc0d"}],"resourceTypes":[{"resourceType":"virtualNetworks","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"publicIPAddresses","locations":["West - US","East US","West Europe","East Asia","Southeast Asia","North Central US","South - Central US","Central US","East US 2","Japan East","Japan West","Brazil South","Australia - East","Australia Southeast","Central India","South India","West India","Canada - Central","Canada East","West Central US","West US 2","UK West","UK South","Korea - Central","Korea South","France Central","North Europe","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"zoneMappings":[{"location":"East - US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West - Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central - US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast - Asia","zones":["1","2","3"]}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"networkInterfaces","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"loadBalancers","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"networkSecurityGroups","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"applicationSecurityGroups","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-09-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"routeTables","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"networkWatchers","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"networkWatchers/connectionMonitors","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"networkWatchers/lenses","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"virtualNetworkGateways","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"localNetworkGateways","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"connections","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"applicationGateways","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/operations","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/operationResults","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/CheckDnsNameAvailability","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"locations/usages","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"}]},{"resourceType":"locations/virtualNetworkAvailableEndpointServices","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"dnszones","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-04-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"dnsOperationResults","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01"]},{"resourceType":"dnsOperationStatuses","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01"]},{"resourceType":"dnszones/A","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/AAAA","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/CNAME","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/PTR","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/MX","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/TXT","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/SRV","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/SOA","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/NS","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/CAA","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01"]},{"resourceType":"dnszones/recordsets","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"dnszones/all","locations":["global"],"apiVersions":["2018-03-01-preview","2017-10-01","2017-09-01","2016-04-01","2015-05-04-preview"]},{"resourceType":"trafficmanagerprofiles","locations":["global"],"apiVersions":["2018-05-01","2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"trafficmanagerprofiles/heatMaps","locations":["global"],"apiVersions":["2017-09-01-preview"]},{"resourceType":"checkTrafficManagerNameAvailability","locations":["global"],"apiVersions":["2018-05-01","2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"]},{"resourceType":"trafficManagerUserMetricsKeys","locations":["global"],"apiVersions":["2017-09-01-preview"]},{"resourceType":"trafficManagerGeographicHierarchies","locations":["global"],"apiVersions":["2018-05-01","2017-05-01","2017-03-01"]},{"resourceType":"expressRouteCircuits","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"None"},{"resourceType":"expressRouteServiceProviders","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"]},{"resourceType":"applicationGatewayAvailableWafRuleSets","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01"]},{"resourceType":"applicationGatewayAvailableSslOptions","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01"]},{"resourceType":"routeFilters","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"],"capabilities":"None"},{"resourceType":"bgpServiceCommunities","locations":[],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"]},{"resourceType":"ddosProtectionPlans","locations":["West - US","East US","North Europe","West Europe","East Asia","Southeast Asia","North - Central US","South Central US","Central US","East US 2","Japan East","Japan - West","Brazil South","Australia East","Australia Southeast","Central India","South - India","West India","Canada Central","Canada East","West Central US","West - US 2","UK West","UK South","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"secureGateways","locations":["Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-04-01","2018-03-01","2018-05-01","2018-01-01","2017-11-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NotificationHubs","namespace":"Microsoft.NotificationHubs","resourceTypes":[{"resourceType":"namespaces","locations":["Australia + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NotificationHubs","namespace":"Microsoft.NotificationHubs","resourceTypes":[{"resourceType":"namespaces","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK South","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"namespaces/notificationHubs","locations":["Australia + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"namespaces/notificationHubs","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK South","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkNamespaceAvailability","locations":["Australia + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"checkNamespaceAvailability","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"]},{"resourceType":"checkNameAvailability","locations":["Australia + South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"]},{"resourceType":"operations","locations":["Australia + South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"],"capabilities":"None"},{"resourceType":"operations","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"]},{"resourceType":"operationResults","locations":["Australia + South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"],"capabilities":"None"},{"resourceType":"operationResults","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights","namespace":"Microsoft.OperationalInsights","authorizations":[{"applicationId":"d2a0a418-0aac-4541-82b2-b3142c89da77","roleDefinitionId":"86695298-2eb9-48a7-9ec3-2fdb38b6878b"},{"applicationId":"ca7f3f0b-7d91-482c-8e09-c5d840d0eac5","roleDefinitionId":"5d5a2e56-9835-44aa-93db-d2f19e155438"}],"resourceTypes":[{"resourceType":"workspaces","locations":["East - US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan - East","UK South","Central India","Canada Central"],"apiVersions":["2017-04-26-preview","2017-03-15-preview","2017-03-03-preview","2017-01-01-preview","2015-11-01-preview","2015-03-20"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"workspaces/query","locations":["West - Central US","Australia Southeast","West Europe","East US","Southeast Asia","Japan - East","UK South","Central India","Canada Central"],"apiVersions":["2017-10-01"]},{"resourceType":"workspaces/dataSources","locations":["East - US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan - East","UK South","Central India","Canada Central"],"apiVersions":["2015-11-01-preview"]},{"resourceType":"storageInsightConfigs","locations":[],"apiVersions":["2014-10-10"]},{"resourceType":"workspaces/linkedServices","locations":["East - US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan - East","UK South","Central India","Canada Central"],"apiVersions":["2015-11-01-preview"]},{"resourceType":"linkTargets","locations":["East - US"],"apiVersions":["2015-03-20"]},{"resourceType":"operations","locations":[],"apiVersions":["2014-11-10"]},{"resourceType":"devices","locations":[],"apiVersions":["2015-11-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Portal","namespace":"Microsoft.Portal","resourceTypes":[{"resourceType":"dashboards","locations":["Central + South"],"apiVersions":["2017-04-01","2016-03-01","2014-09-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search","namespace":"Microsoft.Search","authorization":{"applicationId":"408992c7-2af6-4ff1-92e3-65b73d2b5092","roleDefinitionId":"20FA3191-87CF-4C3D-9510-74CCB594A310"},"resourceTypes":[{"resourceType":"searchServices","locations":["West + US","East US","North Europe","West Europe","Southeast Asia","East Asia","North + Central US","South Central US","Central US","Japan West","Japan East","Korea + Central","Australia East","Brazil South","West US 2","East US 2","Central + India","West Central US","Canada Central","UK South","France Central","East + US 2 EUAP"],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-02-28","2014-07-31-Preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"resourceHealthMetadata","locations":["West + US","West US 2","East US","East US 2","North Europe","West Europe","Southeast + Asia","East Asia","North Central US","South Central US","Central US","Japan + West","Japan East","Korea Central","Australia East","Brazil South","Central + India","West Central US","Canada Central","UK South","France Central"],"apiVersions":["2015-08-19"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"None"}],"registrationState":"Unregistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Portal","namespace":"Microsoft.Portal","resourceTypes":[{"resourceType":"dashboards","locations":["Central US","East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia Southeast","Australia East","West India","South India","Central India","Canada Central","Canada - East"],"apiVersions":["2015-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["Central + East","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North"],"apiVersions":["2019-01-01-preview","2018-10-01-preview","2015-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["Central US","East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia Southeast","Australia East","West India","South India","Central India","Canada Central","Canada - East"],"apiVersions":["2015-08-01-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"]},{"resourceType":"consoles","locations":[],"apiVersions":["2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"]},{"resourceType":"locations/consoles","locations":["West + East"],"apiVersions":["2015-08-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-10-01","2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"],"capabilities":"None"},{"resourceType":"consoles","locations":[],"apiVersions":["2018-10-01","2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"],"capabilities":"None"},{"resourceType":"locations/consoles","locations":["West US","East US","Central India","North Europe","West Europe","South Central - US","Southeast Asia","East US 2","Central US"],"apiVersions":["2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"]},{"resourceType":"userSettings","locations":[],"apiVersions":["2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"]},{"resourceType":"locations/userSettings","locations":["West + US","Southeast Asia","East US 2","Central US"],"apiVersions":["2018-10-01","2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"],"capabilities":"None"},{"resourceType":"userSettings","locations":[],"apiVersions":["2018-10-01","2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"],"capabilities":"None"},{"resourceType":"locations/userSettings","locations":["West US","East US","Central India","North Europe","West Europe","South Central - US","Southeast Asia","East US 2","Central US"],"apiVersions":["2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorization":{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},"resourceTypes":[{"resourceType":"vaults","locations":["West + US","Southeast Asia","East US 2","Central US"],"apiVersions":["2018-10-01","2017-12-01-preview","2017-08-01-preview","2017-01-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PolicyInsights","namespace":"Microsoft.PolicyInsights","authorization":{"applicationId":"1d78a85d-813d-46f0-b496-dd72f50a3ec0","roleDefinitionId":"63d2b225-4c34-4641-8768-21a1f7c68ce8"},"resourceTypes":[{"resourceType":"policyEvents","locations":[],"apiVersions":["2018-07-01-preview","2018-04-04","2017-12-12-preview","2017-10-17-preview","2017-08-09-preview"],"capabilities":"None"},{"resourceType":"policyStates","locations":[],"apiVersions":["2018-07-01-preview","2018-04-04","2017-12-12-preview","2017-10-17-preview","2017-08-09-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-07-01-preview","2018-04-04","2017-12-12-preview","2017-10-17-preview","2017-08-09-preview"],"capabilities":"None"},{"resourceType":"asyncOperationResults","locations":[],"apiVersions":["2018-07-01-preview"],"capabilities":"None"},{"resourceType":"remediations","locations":[],"apiVersions":["2018-07-01-preview"],"capabilities":"None"},{"resourceType":"policyTrackedResources","locations":[],"apiVersions":["2018-07-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"}],"resourceTypes":[{"resourceType":"vaults","locations":["West US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast Asia","North Central US","South Central US","Japan East","Japan West","Australia East","Australia Southeast","Central US","East US 2","Central India","South India","Canada Central","Canada East","West Central US","West US 2","UK South","UK - West","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2018-01-10","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"capabilities":"None"},{"resourceType":"operations","locations":["Southeast - Asia"],"apiVersions":["2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"]},{"resourceType":"locations/backupStatus","locations":["West + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["Southeast + Asia"],"apiVersions":["2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast Asia","North Central US","South Central US","Japan East","Japan West","Australia East","Australia Southeast","Central US","East US 2","Central India","South India","West Central US","Canada Central","Canada East","West US 2","UK South","UK - West","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2016-06-01"]},{"resourceType":"locations/allocatedStamp","locations":["West + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast Asia","North Central US","South Central US","Japan East","Japan West","Australia East","Australia Southeast","Central US","East US 2","Central India","South India","West Central US","Canada Central","Canada East","West US 2","UK South","UK - West","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2016-06-01"]},{"resourceType":"locations/allocateStamp","locations":["West + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast Asia","North Central US","South Central US","Japan East","Japan West","Australia East","Australia Southeast","Central US","East US 2","Central India","South India","West Central US","Canada Central","Canada East","West US 2","UK South","UK - West","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2016-06-01"]},{"resourceType":"locations/backupValidateFeatures","locations":["West + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast Asia","North Central US","South Central US","Japan East","Japan West","Australia East","Australia Southeast","Central US","East US 2","Central India","South India","West Central US","Canada Central","Canada East","West US 2","UK South","UK - West","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-07-01"]},{"resourceType":"locations/backupPreValidateProtection","locations":["West + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast Asia","North Central US","South Central US","Japan East","Japan West","Australia East","Australia Southeast","Central US","East US 2","Central India","South India","West Central US","Canada Central","Canada East","West US 2","UK South","UK - West","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-07-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ResourceHealth","namespace":"Microsoft.ResourceHealth","authorizations":[{"applicationId":"8bdebf23-c0fe-4187-a378-717ad86f6a53","roleDefinitionId":"cc026344-c8b1-4561-83ba-59eba84b27cc"}],"resourceTypes":[{"resourceType":"availabilityStatuses","locations":[],"apiVersions":["2017-07-01","2015-01-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"notifications","locations":["Australia - Southeast"],"apiVersions":["2016-09-01","2016-06-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Scheduler","namespace":"Microsoft.Scheduler","resourceTypes":[{"resourceType":"jobcollections","locations":["North + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West Central US","Canada Central","Canada East","West US 2","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West Central US","Canada Central","Canada East","West US 2","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ResourceHealth","namespace":"Microsoft.ResourceHealth","authorizations":[{"applicationId":"8bdebf23-c0fe-4187-a378-717ad86f6a53","roleDefinitionId":"cc026344-c8b1-4561-83ba-59eba84b27cc"}],"resourceTypes":[{"resourceType":"availabilityStatuses","locations":[],"apiVersions":["2018-08-01-rc","2018-08-01-preview","2018-07-01-rc","2018-07-01-preview","2017-07-01","2015-01-01"],"capabilities":"None"},{"resourceType":"childAvailabilityStatuses","locations":[],"apiVersions":["2018-11-06-beta","2018-08-01-rc","2018-08-01-preview","2018-07-01-rc","2018-07-01-preview","2018-07-01-beta","2017-07-01-rc","2017-07-01-preview","2017-07-01-beta","2015-01-01-rc","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"childResources","locations":[],"apiVersions":["2018-11-06-beta","2018-08-01-rc","2018-08-01-preview","2018-07-01-rc","2018-07-01-preview","2018-07-01-beta","2017-07-01-rc","2017-07-01-preview","2017-07-01-beta","2015-01-01-rc","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"events","locations":[],"apiVersions":["2018-07-01-rc","2018-07-01-preview"],"capabilities":"None"},{"resourceType":"metadata","locations":[],"apiVersions":["2018-07-01-rc","2018-07-01-preview","2018-07-01-beta","2018-07-01-alpha"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"notifications","locations":["Australia + Southeast"],"apiVersions":["2016-09-01","2016-06-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Scheduler","namespace":"Microsoft.Scheduler","resourceTypes":[{"resourceType":"jobcollections","locations":["North Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","Japan West","Japan East","Brazil South","Central US","East US 2","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","West US 2","West Central US","UK South","UK West","Korea Central","Korea South","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2016-01-01","2014-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["North + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["North Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","Japan West","Japan East","Brazil South","Central US","East US 2","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","West US 2","West Central US","UK South","UK West","Korea Central","Korea South","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2016-01-01","2014-08-01-preview"]},{"resourceType":"operationResults","locations":["North + US EUAP"],"apiVersions":["2016-03-01","2016-01-01","2014-08-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":["North Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","Japan West","Japan East","Brazil South","Central US","East US 2","Australia East","Australia Southeast","South India","Central India","West India","Canada Central","Canada East","West US 2","West Central US","UK South","UK West","Korea Central","Korea South","East US 2 EUAP","Central - US EUAP"],"apiVersions":["2016-03-01","2016-01-01","2014-08-01-preview"]},{"resourceType":"flows","locations":["North + US EUAP"],"apiVersions":["2016-03-01","2016-01-01","2014-08-01-preview"],"capabilities":"None"},{"resourceType":"flows","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast"],"apiVersions":["2015-08-01-preview","2015-02-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Search","namespace":"Microsoft.Search","resourceTypes":[{"resourceType":"searchServices","locations":["West - US","East US","North Europe","West Europe","Southeast Asia","East Asia","North - Central US","South Central US","Japan West","Australia East","Brazil South","West - US 2","East US 2","Central India","West Central US","Canada Central","UK South","East - US 2 EUAP"],"apiVersions":["2015-08-19","2015-02-28"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkServiceNameAvailability","locations":[],"apiVersions":["2015-02-28","2014-07-31-Preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2015-08-19"]},{"resourceType":"resourceHealthMetadata","locations":["West - US","West US 2","East US","East US 2","North Europe","West Europe","Southeast - Asia","East Asia","North Central US","South Central US","Japan West","Australia - East","Brazil South","Central India","West Central US","Canada Central","UK - South"],"apiVersions":["2015-08-19"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-08-19","2015-02-28"]}],"registrationState":"Unregistering"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security","namespace":"Microsoft.Security","authorizations":[{"applicationId":"8edd93e1-2103-40b4-bd70-6e34e586362d","roleDefinitionId":"855AF4C4-82F6-414C-B1A2-628025628B9A"},{"applicationId":"fc780465-2017-40d4-a0c5-307022471b92"}],"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securityStatus","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securityStatuses","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securityStatus/virtualMachines","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securityStatus/endpoints","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securityStatus/subnets","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"tasks","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"alerts","locations":["Central - US","East US","West Europe"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"monitoring","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"monitoring/patch","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"monitoring/baseline","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"monitoring/antimalware","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"dataCollectionAgents","locations":["East + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security","namespace":"Microsoft.Security","authorizations":[{"applicationId":"8edd93e1-2103-40b4-bd70-6e34e586362d","roleDefinitionId":"855AF4C4-82F6-414C-B1A2-628025628B9A"},{"applicationId":"fc780465-2017-40d4-a0c5-307022471b92"}],"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"securityStatuses","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"tasks","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"regulatoryComplianceStandards","locations":["Central + US","East US"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"regulatoryComplianceStandards/regulatoryComplianceControls","locations":["Central + US","East US"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"regulatoryComplianceStandards/regulatoryComplianceControls/regulatoryComplianceAssessments","locations":["Central + US","East US"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"alerts","locations":["Central + US","East US","West Europe"],"apiVersions":["2019-01-01","2015-06-01-preview"],"capabilities":"None"},{"resourceType":"dataCollectionAgents","locations":["East Asia","Southeast Asia","East US","East US 2","West US","North Central US","South Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada Central","Canada East"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"dataCollectionResults","locations":["East + India","West India","Canada Central","Canada East"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"dataCollectionResults","locations":["East Asia","Southeast Asia","East US","East US 2","West US","North Central US","South Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada Central","Canada East"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"pricings","locations":["Central - US","East US"],"apiVersions":["2017-08-01-preview"]},{"resourceType":"AutoProvisioningSettings","locations":["Central - US","East US"],"apiVersions":["2017-08-01-preview"]},{"resourceType":"Compliances","locations":["Central - US","East US"],"apiVersions":["2017-08-01-preview"]},{"resourceType":"securityContacts","locations":["Central - US","East US"],"apiVersions":["2017-08-01-preview"]},{"resourceType":"workspaceSettings","locations":["Central - US","East US"],"apiVersions":["2017-08-01-preview"]},{"resourceType":"complianceResults","locations":["Central - US","East US"],"apiVersions":["2017-08-01"]},{"resourceType":"policies","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"appliances","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"webApplicationFirewalls","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/webApplicationFirewalls","locations":["Central - US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securitySolutions","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/securitySolutions","locations":["Central - US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"discoveredSecuritySolutions","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/discoveredSecuritySolutions","locations":["Central - US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securitySolutionsReferenceData","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/securitySolutionsReferenceData","locations":["Central - US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"jitNetworkAccessPolicies","locations":["Central + India","West India","Canada Central","Canada East"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"pricings","locations":["Central + US","East US"],"apiVersions":["2018-06-01","2017-08-01-preview"],"capabilities":"None"},{"resourceType":"AutoProvisioningSettings","locations":["Central + US","East US"],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"Compliances","locations":["Central + US","East US"],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"securityContacts","locations":["Central + US","East US"],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"workspaceSettings","locations":["Central + US","East US"],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"complianceResults","locations":["Central + US","East US"],"apiVersions":["2017-08-01"],"capabilities":"None"},{"resourceType":"policies","locations":["Central + US","East US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"securitySolutions","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/securitySolutions","locations":["Central + US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"discoveredSecuritySolutions","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/discoveredSecuritySolutions","locations":["Central + US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"allowedConnections","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/allowedConnections","locations":["Central + US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"topologies","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/topologies","locations":["Central + US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"securitySolutionsReferenceData","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/securitySolutionsReferenceData","locations":["Central + US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"jitNetworkAccessPolicies","locations":["Central US","East US","North Europe","West Europe","UK South","UK West","West Central - US","West US 2"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/jitNetworkAccessPolicies","locations":["Central + US","West US 2"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/jitNetworkAccessPolicies","locations":["Central US","East US","North Europe","West Europe","UK South","UK West","France Central","France - South","West Central US","West US 2"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations","locations":["Central - US","East US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"securityStatusesSummaries","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"applicationWhitelistings","locations":["Central - US","East US","West Central US","West Europe"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/applicationWhitelistings","locations":["Central - US","West Central US","West Europe"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/alerts","locations":["Central - US","West Europe"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/tasks","locations":["Central - US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"externalSecuritySolutions","locations":["Central - US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]},{"resourceType":"locations/externalSecuritySolutions","locations":["Central - US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus","namespace":"Microsoft.ServiceBus","authorization":{"applicationId":"80a10ef9-8168-493d-abf9-3297c4ef6e3c","roleDefinitionId":"2b7763f7-bbe2-4e19-befe-28c79f1cf7f7"},"resourceTypes":[{"resourceType":"namespaces","locations":["Australia + South","West Central US","West US 2"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["Central + US","East US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"securityStatusesSummaries","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"applicationWhitelistings","locations":["Central + US","East US","West Central US","West Europe"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/applicationWhitelistings","locations":["Central + US","West Central US","West Europe"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/alerts","locations":["Central + US","West Europe"],"apiVersions":["2019-01-01","2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/tasks","locations":["Central + US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"externalSecuritySolutions","locations":["Central + US","East US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/externalSecuritySolutions","locations":["Central + US","West Europe","West Central US"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"},{"resourceType":"InformationProtectionPolicies","locations":["Central + US","East US"],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"advancedThreatProtectionSettings","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","Japan East","Japan West","Korea Central","Korea South","North + Central US","North Europe","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US 2","West + US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"deviceSecurityGroups","locations":[],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"iotSecuritySolutions","locations":["Central + US","North Europe","Southeast Asia","West US","East US","Central US EUAP"],"apiVersions":["2017-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"settings","locations":["Central + US","East US"],"apiVersions":["2017-08-01-preview"],"capabilities":"None"},{"resourceType":"adaptiveNetworkHardenings","locations":["West + Europe","North Europe","UK South","UK West","France Central","France South"],"apiVersions":["2015-06-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus","namespace":"Microsoft.ServiceBus","authorization":{"applicationId":"80a10ef9-8168-493d-abf9-3297c4ef6e3c","roleDefinitionId":"2b7763f7-bbe2-4e19-befe-28c79f1cf7f7"},"resourceTypes":[{"resourceType":"namespaces","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US 2","West US","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"namespaces/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/queues","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/queues/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/topics","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/topics/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/topics/subscriptions","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/topics/subscriptions/rules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"checkNamespaceAvailability","locations":[],"apiVersions":["2015-08-01","2014-09-01"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"sku","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"premiumMessagingRegions","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/eventgridfilters","locations":["Australia + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-01-preview","2017-04-01","2015-08-01","2014-09-01"],"defaultApiVersion":"2017-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"namespaces/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/queues","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/queues/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/topics","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/topics/authorizationrules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/topics/subscriptions","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/topics/subscriptions/rules","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"checkNamespaceAvailability","locations":[],"apiVersions":["2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-08-01"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"sku","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"premiumMessagingRegions","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/eventgridfilters","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US 2","West US","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South","Korea Central","Korea South"],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/disasterrecoveryconfigs","locations":[],"apiVersions":["2017-04-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Solutions","namespace":"Microsoft.Solutions","authorization":{"applicationId":"ba4bc2bd-843f-4d61-9d33-199178eae34e","roleDefinitionId":"6cb99a0b-29a8-49bc-b57b-057acc68cd9a","managedByRoleDefinitionId":"8e3af657-a8ff-443c-a75c-2fe8c4bcb635"},"resourceTypes":[{"resourceType":"appliances","locations":["West - Central US"],"apiVersions":["2016-09-01-preview"],"capabilities":"None"},{"resourceType":"applianceDefinitions","locations":["West - Central US"],"apiVersions":["2016-09-01-preview"],"capabilities":"None"},{"resourceType":"applications","locations":["South + South","Korea Central","Korea South"],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/disasterrecoveryconfigs","locations":[],"apiVersions":["2017-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"namespaces/disasterrecoveryconfigs/checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2015-08-01","2014-09-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-01-01-preview","2017-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":[],"apiVersions":["2018-01-01-preview","2017-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Solutions","namespace":"Microsoft.Solutions","authorization":{"applicationId":"ba4bc2bd-843f-4d61-9d33-199178eae34e","roleDefinitionId":"6cb99a0b-29a8-49bc-b57b-057acc68cd9a","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635","managedByAuthorization":{"managedByResourceRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}},"resourceTypes":[{"resourceType":"appliances","locations":["West + Central US"],"apiVersions":["2016-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"applianceDefinitions","locations":["West + Central US"],"apiVersions":["2016-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"applications","locations":["South Central + US","North Central US","West Central US","West US","West US 2","East US","East + US 2","Central US","West Europe","North Europe","East Asia","Southeast Asia","Brazil + South","Japan West","Japan East","Australia East","Australia Southeast","South + India","West India","Central India","Canada Central","Canada East","UK South","UK + West","Korea Central","Korea South","France Central","South Africa West","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview","2018-06-01","2018-03-01","2018-02-01","2017-12-01","2017-09-01"],"defaultApiVersion":"2018-09-01-preview","capabilities":"SystemAssignedResourceIdentity, + SupportsTags, SupportsLocation"},{"resourceType":"applicationDefinitions","locations":["South Central US","North Central US","West Central US","West US","West US 2","East US","East US 2","Central US","West Europe","North Europe","East Asia","Southeast Asia","Brazil South","Japan West","Japan East","Australia East","Australia Southeast","South India","West India","Central India","Canada Central","Canada - East","UK South","UK West","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2018-05-01","2017-12-01","2017-09-01"],"capabilities":"None"},{"resourceType":"applicationDefinitions","locations":["South + East","UK South","UK West","Korea Central","Korea South","France Central","South + Africa West","South Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview","2018-06-01","2018-03-01","2018-02-01","2017-12-01","2017-09-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":["West Central + US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview","2018-06-01","2018-03-01","2018-02-01","2017-12-01","2017-09-01","2016-09-01-preview"],"capabilities":"None"},{"resourceType":"jitRequests","locations":["South Central US","North Central US","West Central US","West US","West US 2","East US","East US 2","Central US","West Europe","North Europe","East Asia","Southeast Asia","Brazil South","Japan West","Japan East","Australia East","Australia Southeast","South India","West India","Central India","Canada Central","Canada - East","UK South","UK West","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2018-05-01","2017-12-01","2017-09-01"],"capabilities":"None"},{"resourceType":"locations","locations":["West - Central US","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2018-05-01","2017-12-01","2017-09-01","2016-09-01-preview"]},{"resourceType":"locations/operationstatuses","locations":["South + East","UK South","UK West","Korea Central","Korea South","France Central","South + Africa West","South Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"locations/operationstatuses","locations":["South Central US","North Central US","West Central US","West US","West US 2","East US","East US 2","Central US","West Europe","North Europe","East Asia","Southeast Asia","Brazil South","Japan West","Japan East","Australia East","Australia Southeast","South India","West India","Central India","Canada Central","Canada - East","UK South","UK West","Korea Central","Korea South","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2018-05-01","2017-12-01","2017-09-01","2016-09-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01","2018-05-01","2017-12-01","2017-09-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql","namespace":"Microsoft.Sql","authorizations":[{"applicationId":"e4ab13ed-33cb-41b4-9140-6e264582cf85","roleDefinitionId":"ec3ddc95-44dc-47a2-9926-5e9f5ffd44ec"},{"applicationId":"0130cc9f-7ac5-4026-bd5f-80a08a54e6d9","roleDefinitionId":"45e8abf8-0ec4-44f3-9c37-cff4f7779302"},{"applicationId":"76cd24bf-a9fc-4344-b1dc-908275de6d6d","roleDefinitionId":"c13b7b9c-2ed1-4901-b8a8-16f35468da29"},{"applicationId":"76c7f279-7959-468f-8943-3954880e0d8c","roleDefinitionId":"7f7513a8-73f9-4c5f-97a2-c41f0ea783ef"}],"resourceTypes":[{"resourceType":"operations","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview","2015-05-01","2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"locations","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"locations/capabilities","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-05-01","2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"locations/databaseAzureAsyncOperation","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview"]},{"resourceType":"locations/databaseOperationResults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview"]},{"resourceType":"locations/serverKeyAzureAsyncOperation","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/serverKeyOperationResults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/keys","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/encryptionProtector","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/encryptionProtectorOperationResults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/encryptionProtectorAzureAsyncOperation","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/serverAzureAsyncOperation","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/serverOperationResults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/usages","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01","2014-04-01-preview"]},{"resourceType":"checkNameAvailability","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","France Central","Japan - East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers","locations":["Australia + East","UK South","UK West","Korea Central","Korea South","France Central","South + Africa West","South Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-09-01-preview","2018-06-01","2018-03-01","2018-02-01","2017-12-01","2017-09-01","2016-09-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-09-01-preview","2018-06-01","2018-03-01","2018-02-01","2017-12-01","2017-09-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage","namespace":"Microsoft.Storage","authorizations":[{"applicationId":"a6aa9161-5291-40bb-8c5c-923b567bee3b","roleDefinitionId":"070ab87f-0efc-4423-b18b-756f3bdb0236"},{"applicationId":"e406a681-f3d4-42a8-90b6-c2b029497af1"}],"resourceTypes":[{"resourceType":"storageAccounts","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"},{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"},{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"locations/asyncoperations","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}],"capabilities":"None"},{"resourceType":"storageAccounts/listAccountSas","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"storageAccounts/listServiceSas","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"storageAccounts/blobServices","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"storageAccounts/tableServices","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"storageAccounts/queueServices","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"storageAccounts/fileServices","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-07-01","2016-01-01"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"},{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}],"capabilities":"None"},{"resourceType":"locations/usages","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East + US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","Central US","North + Europe","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","Canada East","Canada Central","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","South + Africa North","East US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-07-01"],"defaultApiVersion":"2018-07-01","capabilities":"None"},{"resourceType":"usages","locations":[],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"},{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2019-04-01","2018-11-01","2018-07-01","2018-03-01-preview","2018-02-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-07-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2017-10-01"},{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"storageAccounts/services","locations":["East + US","West US","East US 2 (Stage)","West Europe","North Europe","East Asia","Southeast + Asia","Japan East","Japan West","North Central US","South Central US","East + US 2","Central US","Australia East","Australia Southeast","Brazil South","South + India","Central India","West India","Canada East","Canada Central","West US + 2","West Central US","UK South","UK West","Korea Central","Korea South","France + Central","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"storageAccounts/services/metricDefinitions","locations":["East + US","West US","East US 2 (Stage)","West Europe","North Europe","East Asia","Southeast + Asia","Japan East","Japan West","North Central US","South Central US","East + US 2","Central US","Australia East","Australia Southeast","Brazil South","South + India","Central India","West India","Canada East","Canada Central","West US + 2","West Central US","UK South","UK West","Korea Central","Korea South","France + Central","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.StreamAnalytics","namespace":"Microsoft.StreamAnalytics","resourceTypes":[{"resourceType":"streamingjobs","locations":["Central + US","West Europe","East US 2","North Europe","Japan East","West US","Southeast + Asia","South Central US","East Asia","Japan West","North Central US","East + US","Australia East","Australia Southeast","Brazil South","Central India","West + Central US","UK South","UK West","Canada Central","Canada East","West US 2"],"apiVersions":["2018-11-01","2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2015-03-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":["West Europe","Central + US","East US 2","North Europe","Japan East","West US","Southeast Asia","South + Central US","East Asia","Japan West","North Central US","East US","Australia + East","Australia Southeast","Brazil South","Central India","West Central US","UK + South","West US 2","UK West","Canada Central","Canada East"],"apiVersions":["2018-11-01","2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2015-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/quotas","locations":[],"apiVersions":["2018-11-01","2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2015-03-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West + Europe","West US","Central US","East US 2","North Europe","Japan East","Southeast + Asia","South Central US","East Asia","Japan West","North Central US","East + US","Australia East","Australia Southeast","Brazil South","Central India","West + Central US","UK South","UK West","Canada Central","Canada East","West US 2"],"apiVersions":["2018-11-01","2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2014-04-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.visualstudio","namespace":"microsoft.visualstudio","authorization":{"applicationId":"499b84ac-1321-427f-aa17-267ca6975798","roleDefinitionId":"6a18f445-86f0-4e2e-b8a9-6b9b5677e3d8"},"resourceTypes":[{"resourceType":"account","locations":["North + Central US","South Central US","East US","West US","Central US","North Europe","West + Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia + East","West India","Central India","South India","West US 2","Canada Central","UK + South"],"apiVersions":["2014-04-01-preview","2014-02-26"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["North + Central US","South Central US","East US","West US","Central US","North Europe","West + Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia + East","West India","Central India","South India","West US 2","Canada Central","UK + South"],"apiVersions":["2014-04-01-preview","2014-02-26"],"capabilities":"None"},{"resourceType":"account/project","locations":["East + Asia","Southeast Asia","Australia East","Brazil South","Canada Central","Japan + East","Japan West","North Europe","West Europe","West India","Central India","South + India","Central US","East US","North Central US","South Central US","UK South","West + US","West US 2"],"apiVersions":["2014-04-01-preview","2014-02-26"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"account/extension","locations":["North + Central US","South Central US","East US","West US","Central US","North Europe","West + Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia + East","West India","Central India","South India","West US 2","Canada Central","UK + South"],"apiVersions":["2014-04-01-preview","2014-02-26"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"checkNameAvailability","locations":["North + Central US","South Central US","East US","West US","Central US","North Europe","West + Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia + East","West India","Central India","South India","West US 2","Canada Central","UK + South"],"apiVersions":["2014-04-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/SuccessBricks.ClearDB","namespace":"SuccessBricks.ClearDB","resourceTypes":[{"resourceType":"databases","locations":["Brazil + South","Central US","East Asia","East US","East US 2","Japan East","Japan + West","North Central US","North Europe","Southeast Asia","West Europe","West + US","South Central US","Australia East","Australia Southeast","Canada Central","Canada + East","Central India","South India","West India"],"apiVersions":["2014-04-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"clusters","locations":["Brazil South","Central + US","East Asia","East US","East US 2","Japan East","Japan West","North Central + US","North Europe","Southeast Asia","West Europe","West US","Australia Southeast","Australia + East","South Central US","Canada Central","Canada East","Central India","South + India","West India"],"apiVersions":["2014-04-01"],"capabilities":"SupportsTags, + SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/TrendMicro.DeepSecurity","namespace":"TrendMicro.DeepSecurity","resourceTypes":[{"resourceType":"accounts","locations":["Central + US"],"apiVersions":["2015-06-15"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry","namespace":"Microsoft.ContainerRegistry","authorizations":[{"applicationId":"6a0ec4d3-30cb-4a83-91c0-ae56bc0e3d26","roleDefinitionId":"78e18383-93eb-418a-9887-bc9271046576"},{"applicationId":"737d58c1-397a-46e7-9d12-7d8c830883c2","roleDefinitionId":"716bb53a-0390-4428-bf41-b1bedde7d751"},{"applicationId":"918d0db8-4a38-4938-93c1-9313bdfe0272","roleDefinitionId":"dcd2d2c9-3f80-4d72-95a8-2593111b4b12"},{"applicationId":"d2fa1650-4805-4a83-bcb9-cf41fe63539c","roleDefinitionId":"c15f8dab-b103-4f8d-9afb-fbe4b8e98de2"},{"applicationId":"a4c95b9e-3994-40cc-8953-5dc66d48348d","roleDefinitionId":"dc88c655-90fa-48d9-8d51-003cc8738508"}],"resourceTypes":[{"resourceType":"registries","locations":["West + US","East US","South Central US","West Europe","North Europe","UK South","UK + West","Australia East","Australia Southeast","Central India","Korea Central","France + Central","South Africa North","East Asia","Japan East","Japan West","Southeast + Asia","South India","Brazil South","Canada East","Canada Central","Central + US","East US 2","North Central US","West Central US","West US 2","East US + 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-03-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"registries/importImage","locations":["South + Central US","West Central US","East US","West Europe","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","France Central","South + Africa North","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/listBuildSourceUploadUrl","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2019-04-01","2018-09-01"],"capabilities":"None"},{"resourceType":"registries/scheduleRun","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2019-04-01","2018-09-01"],"capabilities":"None"},{"resourceType":"registries/runs","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2019-04-01","2018-09-01"],"capabilities":"None"},{"resourceType":"registries/runs/listLogSasUrl","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2019-04-01","2018-09-01"],"capabilities":"None"},{"resourceType":"registries/runs/cancel","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2019-04-01","2018-09-01"],"capabilities":"None"},{"resourceType":"registries/tasks","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2019-04-01","2018-09-01"],"defaultApiVersion":"2019-04-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"registries/tasks/listDetails","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2019-04-01","2018-09-01"],"capabilities":"None"},{"resourceType":"registries/getBuildSourceUploadUrl","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/queueBuild","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/builds","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/builds/getLogLink","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/builds/cancel","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/buildTasks","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"registries/buildTasks/listSourceRepositoryProperties","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/buildTasks/steps","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/buildTasks/steps/listBuildArguments","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"registries/replications","locations":["South + Central US","West Central US","East US","West Europe","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"registries/webhooks","locations":["West + Central US","East US","West Europe","South Central US","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"registries/webhooks/ping","locations":["West + Central US","East US","West Europe","South Central US","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/webhooks/getCallbackConfig","locations":["West + Central US","East US","West Europe","South Central US","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/webhooks/listEvents","locations":["West + Central US","East US","West Europe","South Central US","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"locations/setupAuth","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/authorize","locations":["East + US","West Europe","West US 2","South Central US","Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US 2","Japan East","Japan West","North Central US","North + Europe","Southeast Asia","South India","UK South","UK West","West US","West + Central US","France Central","Korea Central","South Africa North","East US + 2 EUAP"],"apiVersions":["2018-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["West + Central US","East US","West Europe","South Central US","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","France Central","Central + US","South Africa North","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["West + Central US","East US","West Europe","South Central US","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/GetCredentials","locations":["West + US","East US","South Central US","West Europe","East US 2 EUAP","Central US + EUAP"],"apiVersions":["2016-06-27-preview"],"capabilities":"None"},{"resourceType":"registries/listCredentials","locations":["South + Central US","East US","West US","West Europe","North Europe","UK South","UK + West","Australia East","Australia Southeast","Central India","Korea Central","South + Africa North","France Central","East Asia","Japan East","Japan West","Southeast + Asia","South India","Brazil South","Canada East","Canada Central","Central + US","East US 2","North Central US","West Central US","West US 2","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01","2017-03-01"],"capabilities":"None"},{"resourceType":"registries/regenerateCredential","locations":["South + Central US","West US","East US","West Europe","North Europe","UK South","UK + West","Australia East","Australia Southeast","Central India","Korea Central","South + Africa North","France Central","East Asia","Japan East","Japan West","Southeast + Asia","South India","Brazil South","Canada East","Canada Central","Central + US","East US 2","North Central US","West Central US","West US 2","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01","2017-03-01"],"capabilities":"None"},{"resourceType":"registries/listUsages","locations":["West + Central US","East US","West Europe","South Central US","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/listPolicies","locations":["West + US","East US","South Central US","West Europe","North Europe","UK South","UK + West","Australia East","Australia Southeast","Central India","Korea Central","South + Africa North","France Central","East Asia","Japan East","Japan West","Southeast + Asia","South India","Brazil South","Canada East","Canada Central","Central + US","East US 2","North Central US","West Central US","West US 2","East US + 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/updatePolicies","locations":["West + US","East US","South Central US","West Europe","North Europe","UK South","UK + West","Australia East","Australia Southeast","Central India","Korea Central","South + Africa North","France Central","East Asia","Japan East","Japan West","Southeast + Asia","South India","Brazil South","Canada East","Canada Central","Central + US","East US 2","North Central US","West Central US","West US 2","East US + 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"registries/regenerateCredentials","locations":["West + US","East US","South Central US","West Europe","East US 2 EUAP","Central US + EUAP"],"apiVersions":["2016-06-27-preview"],"capabilities":"None"},{"resourceType":"registries/eventGridFilters","locations":["South + Central US","West Central US","East US","West Europe","West US","Japan East","North + Europe","Southeast Asia","North Central US","East US 2","West US 2","Brazil + South","Australia East","Central India","Korea Central","South Africa North","France + Central","Central US","Canada East","Canada Central","UK South","UK West","Australia + Southeast","East Asia","Japan West","South India","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["South + Central US","East US","West US","Central US","East US 2","North Central US","West + Central US","West US 2","Brazil South","Canada East","Canada Central","West + Europe","North Europe","UK South","UK West","Australia East","Australia Southeast","Central + India","East Asia","Japan East","Japan West","Southeast Asia","South India","Korea + Central","France Central","South Africa North","East US 2 EUAP","Central US + EUAP"],"apiVersions":["2017-10-01","2017-06-01-preview","2017-03-01","2016-06-27-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["South + Central US","East US","West US","Central US","East US 2","North Central US","West + Central US","West US 2","Brazil South","Canada East","Canada Central","West + Europe","North Europe","UK South","UK West","Australia East","Australia Southeast","Central + India","East Asia","Japan East","Japan West","Southeast Asia","South India","Korea + Central","France Central","South Africa North","Central US EUAP","East US + 2 EUAP"],"apiVersions":["2017-10-01","2017-06-01-preview","2017-03-01"],"capabilities":"None"},{"resourceType":"locations","locations":["South + Central US","East US","West US","Central US","East US 2","North Central US","West + Central US","West US 2","Brazil South","Canada East","Canada Central","West + Europe","North Europe","UK South","UK West","Australia East","Australia Southeast","Central + India","East Asia","Japan East","Japan West","Southeast Asia","South India","Korea + Central","France Central","South Africa North","Central US EUAP","East US + 2 EUAP"],"apiVersions":["2017-10-01","2017-06-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService","namespace":"Microsoft.ContainerService","authorization":{"applicationId":"7319c514-987d-4e9b-ac3d-d38c4f427f4c","roleDefinitionId":"1b4a0c7f-2217-416f-acfa-cf73452fdc1c","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635","managedByAuthorization":{"allowManagedByInheritance":true}},"resourceTypes":[{"resourceType":"containerServices","locations":["Japan + East","Central US","East US 2","Japan West","East Asia","South Central US","North + Central US","Australia East","Australia Southeast","Brazil South","Southeast + Asia","West US","West Europe","North Europe","East US","UK West","UK South","West + Central US","West US 2","South India","Central India","West India","Canada + East","Canada Central","Korea South","Korea Central","South Africa North","East + US 2 EUAP"],"apiVersions":["2017-07-01","2017-01-31","2016-09-30","2016-03-30"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"managedClusters","locations":["East US","West + Europe","France Central","Central US","Canada Central","Canada East","UK South","West + US","West US 2","Australia East","North Europe","Japan East","Japan West","East + US 2","South Central US","North Central US","Southeast Asia","Australia Southeast","UK + West","South India","Central India","East Asia","Korea South","Korea Central","South + Africa North","Brazil South","East US 2 EUAP"],"apiVersions":["2019-06-01","2019-04-01","2019-02-01","2018-08-01-preview","2018-03-31","2017-08-31"],"defaultApiVersion":"2019-04-01","capabilities":"SystemAssignedResourceIdentity, + SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2017-08-31","2017-01-31","2016-09-30","2016-03-30","2015-11-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["East + US","West Europe","France Central","Central US","UK West","West Central US","West + US","West US 2","South India","Central India","West India","Canada East","Canada + Central","Korea South","Korea Central","UK South","Australia East","Australia + Southeast","North Europe","Japan East","Japan West","East US 2","South Central + US","North Central US","Southeast Asia","East Asia","South Africa North","Brazil + South","East US 2 EUAP"],"apiVersions":["2017-08-31","2016-03-30"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["Japan + East","Central US","East US 2","Japan West","East Asia","South Central US","North + Central US","Australia East","Australia Southeast","Brazil South","Southeast + Asia","West US","West Europe","France Central","North Europe","East US","Canada + Central","Canada East","UK West","UK South","West Central US","West US 2","South + India","Central India","West India","Korea South","Korea Central","South Africa + North","East US 2 EUAP"],"apiVersions":["2017-01-31","2016-03-30"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-10-31","2018-03-31","2017-08-31","2017-07-01","2017-01-31","2016-09-30","2016-03-30","2015-11-01-preview"],"capabilities":"None"},{"resourceType":"locations/orchestrators","locations":["East + US","West Europe","France Central","Central US","Canada East","Canada Central","UK + South","UK West","West US","West US 2","Australia East","Australia Southeast","North + Europe","Japan East","Japan West","Korea Central","Korea South","East US 2","South + Central US","North Central US","Southeast Asia","South India","Central India","East + Asia","South Africa North","Brazil South","East US 2 EUAP"],"apiVersions":["2017-09-30"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql","namespace":"Microsoft.Sql","authorizations":[{"applicationId":"e4ab13ed-33cb-41b4-9140-6e264582cf85","roleDefinitionId":"ec3ddc95-44dc-47a2-9926-5e9f5ffd44ec"},{"applicationId":"0130cc9f-7ac5-4026-bd5f-80a08a54e6d9","roleDefinitionId":"45e8abf8-0ec4-44f3-9c37-cff4f7779302"},{"applicationId":"76cd24bf-a9fc-4344-b1dc-908275de6d6d","roleDefinitionId":"c13b7b9c-2ed1-4901-b8a8-16f35468da29"},{"applicationId":"76c7f279-7959-468f-8943-3954880e0d8c","roleDefinitionId":"7f7513a8-73f9-4c5f-97a2-c41f0ea783ef"}],"resourceTypes":[{"resourceType":"operations","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"servers/databases","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview","2015-05-01","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"locations","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-01-01","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"servers/serviceObjectives","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"locations/capabilities","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/communicationLinks","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-05-01","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"locations/databaseAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/administrators","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/databaseOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/administratorOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/serverKeyAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/restorableDroppedDatabases","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/serverKeyOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/recoverableDatabases","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/keys","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/geoBackupPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/encryptionProtector","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01"]},{"resourceType":"servers/backupLongTermRetentionVaults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/encryptionProtectorOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/import","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/encryptionProtectorAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/importExportOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceKeyAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/operationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceKeyOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/backupLongTermRetentionPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceEncryptionProtectorOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databaseSecurityPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceEncryptionProtectorAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/automaticTuning","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"servers/tdeCertificates","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"servers/databases/automaticTuning","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/tdeCertAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"]},{"resourceType":"servers/databases/transparentDataEncryption","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/tdeCertOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview","2014-04-01-preview","2014-04-01"]},{"resourceType":"servers/auditingPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/serverAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/recommendedElasticPools","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/serverOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/auditingPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/usages","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/connectionPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01","2014-04-01-preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/connectionPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/dataMaskingPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"servers/databases","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/dataMaskingPolicies/rules","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-01-01","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"servers/serviceObjectives","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/securityAlertPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/communicationLinks","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/securityAlertPolicies","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/administrators","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"]},{"resourceType":"servers/databases/auditingSettings","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/administratorOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"]},{"resourceType":"servers/auditingSettings","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/restorableDroppedDatabases","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"]},{"resourceType":"servers/extendedAuditingSettings","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/recoverableDatabases","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/auditingSettingsAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/geoBackupPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/auditingSettingsOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01"],"capabilities":"None"},{"resourceType":"servers/import","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/extendedAuditingSettingsAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/importExportOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/extendedAuditingSettingsOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/operationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/elasticPoolAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/backupLongTermRetentionPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-05-01"]},{"resourceType":"locations/elasticPoolOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databaseSecurityPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-05-01"]},{"resourceType":"servers/elasticpools","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/automaticTuning","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview","2015-09-01-preview","2015-05-01-preview","2015-05-01","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations/jobAgentOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/automaticTuning","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/jobAgentAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/transparentDataEncryption","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"servers/disasterRecoveryConfiguration","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview","2014-04-01-preview","2014-04-01"],"capabilities":"None"},{"resourceType":"servers/auditingPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/dnsAliases","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/recommendedElasticPools","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/dnsAliasAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/auditingPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/dnsAliasOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/connectionPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"servers/failoverGroups","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/connectionPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/failoverGroupAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/dataMaskingPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/failoverGroupOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/dataMaskingPolicies/rules","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/firewallRulesOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/securityAlertPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/firewallRulesAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/securityAlertPolicies","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/auditingSettings","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"]},{"resourceType":"servers/virtualNetworkRules","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/auditingSettings","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/virtualNetworkRulesOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/extendedAuditingSettings","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"]},{"resourceType":"locations/virtualNetworkRulesAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/auditingSettingsAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnetsOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/auditingSettingsOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"]},{"resourceType":"locations/deleteVirtualNetworkOrSubnetsAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/extendedAuditingSettingsAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"]},{"resourceType":"locations/databaseRestoreAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/extendedAuditingSettingsOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/deletedServers","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/elasticPoolAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/deletedServerAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-05-01"],"capabilities":"None"},{"resourceType":"locations/elasticPoolOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/deletedServerOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview","2015-05-01"],"capabilities":"None"},{"resourceType":"servers/elasticpools","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"servers/usages","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-09-01-preview","2015-05-01-preview","2015-05-01","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/jobAgentOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/metricDefinitions","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/jobAgentAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/metrics","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"servers/disasterRecoveryConfiguration","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/aggregatedDatabaseMetrics","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/dnsAliases","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/elasticpools/metrics","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/dnsAliasAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/elasticpools/metricdefinitions","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/dnsAliasOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/topQueries","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"servers/failoverGroups","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/topQueries/queryText","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/failoverGroupAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/advisors","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/failoverGroupOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/elasticPools/advisors","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/firewallRulesOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/advisors","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/firewallRulesAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/databases/extensions","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"]},{"resourceType":"servers/elasticPoolEstimates","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"],"capabilities":"None"},{"resourceType":"servers/virtualNetworkRules","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/databases/auditRecords","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/virtualNetworkRulesOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/databases/VulnerabilityAssessmentScans","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"],"capabilities":"None"},{"resourceType":"locations/virtualNetworkRulesAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/databases/vulnerabilityAssessments","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnetsOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview"]},{"resourceType":"servers/databases/VulnerabilityAssessmentSettings","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnetsAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/databases/VulnerabilityAssessment","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2015-05-01"],"capabilities":"None"},{"resourceType":"servers/interfaceEndpointProfiles","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"servers/databases/syncGroups","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/interfaceEndpointProfileOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/databases/syncGroups/syncMembers","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/interfaceEndpointProfileAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"servers/syncAgents","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/databaseRestoreAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/managedDatabaseAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/deletedServers","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/managedDatabaseOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/deletedServerAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/managedDatabaseRestoreAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/deletedServerOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/managedDatabaseRestoreOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"servers/usages","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/managedServerSecurityAlertPoliciesAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/metricDefinitions","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/managedServerSecurityAlertPoliciesOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/metrics","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/securityAlertPoliciesAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/aggregatedDatabaseMetrics","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/securityAlertPoliciesOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/elasticpools/metrics","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"virtualClusters","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/elasticpools/metricdefinitions","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations/managedInstanceAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/topQueries","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/managedInstanceOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/topQueries/queryText","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/administratorAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/advisors","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/administratorOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/elasticPools/advisors","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/syncGroupOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/advisors","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/syncMemberOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview","2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/databases/extensions","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/syncAgentOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01-preview","2014-04-01","2014-01-01"],"capabilities":"None"},{"resourceType":"servers/elasticPoolEstimates","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/syncDatabaseIds","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/auditRecords","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2015-05-01-preview"]},{"resourceType":"locations/longTermRetentionServers","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/VulnerabilityAssessmentScans","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/longTermRetentionBackups","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/vulnerabilityAssessments","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/longTermRetentionPolicyOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview"],"capabilities":"None"},{"resourceType":"servers/vulnerabilityAssessments","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/longTermRetentionPolicyAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"managedInstances/databases/vulnerabilityAssessments","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/longTermRetentionBackupOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview"],"capabilities":"None"},{"resourceType":"managedInstances/vulnerabilityAssessments","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/longTermRetentionBackupAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/VulnerabilityAssessmentSettings","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-03-01-preview"]},{"resourceType":"locations/instanceFailoverGroups","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/VulnerabilityAssessment","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview"]},{"resourceType":"locations/instanceFailoverGroupAzureAsyncOperation","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/vulnerabilityAssessmentScanAzureAsyncOperation","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview"]},{"resourceType":"locations/instanceFailoverGroupOperationResults","locations":["Australia + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/vulnerabilityAssessmentScanOperationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Japan East","Japan West","Korea Central","Korea South","North Central US","North - Europe","South Central US","South India","Southeast Asia","UK South","UK West","West - Central US","West Europe","West India","West US","West US 2","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-10-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage","namespace":"Microsoft.Storage","authorizations":[{"applicationId":"a6aa9161-5291-40bb-8c5c-923b567bee3b","roleDefinitionId":"070ab87f-0efc-4423-b18b-756f3bdb0236"},{"applicationId":"e406a681-f3d4-42a8-90b6-c2b029497af1"}],"resourceTypes":[{"resourceType":"storageAccounts","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-Preview","2018-05-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}]},{"resourceType":"locations/asyncoperations","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}]},{"resourceType":"storageAccounts/listAccountSas","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01"]},{"resourceType":"storageAccounts/listServiceSas","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01"]},{"resourceType":"storageAccounts/blobServices","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01"]},{"resourceType":"storageAccounts/tableServices","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01"]},{"resourceType":"storageAccounts/queueServices","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01"]},{"resourceType":"storageAccounts/fileServices","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-05-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2018-03-01-Preview","2018-05-01","2017-10-01","2017-06-01","2016-12-01","2016-07-01","2016-01-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}]},{"resourceType":"locations/usages","locations":["East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-03-01-Preview","2018-05-01","2017-10-01","2017-06-01","2016-12-01","2016-01-01","2015-06-15"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}]},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["East - US","East US 2","West US","West Europe","East Asia","Southeast Asia","Japan - East","Japan West","North Central US","South Central US","Central US","North - Europe","Brazil South","Australia East","Australia Southeast","South India","Central - India","West India","Canada East","Canada Central","West US 2","West Central - US","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 (Stage)","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-10-01","2017-06-01","2016-12-01","2016-07-01"]},{"resourceType":"usages","locations":[],"apiVersions":["2018-03-01-Preview","2018-05-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-Preview","2018-05-01","2017-10-01","2017-06-01","2016-12-01","2016-05-01","2016-01-01","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-01-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-01-01"}]},{"resourceType":"storageAccounts/services","locations":["East - US","West US","East US 2 (Stage)","West Europe","North Europe","East Asia","Southeast - Asia","Japan East","Japan West","North Central US","South Central US","East - US 2","Central US","Australia East","Australia Southeast","Brazil South","South - India","Central India","West India","Canada East","Canada Central","West US - 2","West Central US","UK South","UK West","Korea Central","Korea South","France - Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"]},{"resourceType":"storageAccounts/services/metricDefinitions","locations":["East - US","West US","East US 2 (Stage)","West Europe","North Europe","East Asia","Southeast - Asia","Japan East","Japan West","North Central US","South Central US","East - US 2","Central US","Australia East","Australia Southeast","Brazil South","South - India","Central India","West India","Canada East","Canada Central","West US - 2","West Central US","UK South","UK West","Korea Central","Korea South","France - Central","East US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.visualstudio","namespace":"microsoft.visualstudio","authorization":{"applicationId":"499b84ac-1321-427f-aa17-267ca6975798","roleDefinitionId":"6a18f445-86f0-4e2e-b8a9-6b9b5677e3d8"},"resourceTypes":[{"resourceType":"account","locations":["North - Central US","South Central US","East US","West US","Central US","North Europe","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia - East","West India","Central India","South India","West US 2","Canada Central"],"apiVersions":["2014-04-01-preview","2014-02-26"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["North - Central US","South Central US","East US","West US","Central US","North Europe","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia - East","West India","Central India","South India","West US 2","Canada Central"],"apiVersions":["2014-04-01-preview","2014-02-26"]},{"resourceType":"account/project","locations":["North - Central US","South Central US","East US","West US","Central US","North Europe","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia - East","West India","Central India","South India","West US 2","Canada Central"],"apiVersions":["2014-04-01-preview","2014-02-26"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"account/extension","locations":["North - Central US","South Central US","East US","West US","Central US","North Europe","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia - East","West India","Central India","South India","West US 2","Canada Central"],"apiVersions":["2014-04-01-preview","2014-02-26"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkNameAvailability","locations":["North - Central US","South Central US","East US","West US","Central US","North Europe","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia - East","West India","Central India","South India","West US 2","Canada Central"],"apiVersions":["2014-04-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web","namespace":"Microsoft.Web","authorization":{"applicationId":"abfa0a7c-a6b6-4736-8310-5855508787cd","roleDefinitionId":"f47ed98b-b063-4a5b-9e10-4b9b44fa7735"},"resourceTypes":[{"resourceType":"sites/extensions","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/slots/extensions","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/instances","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/slots/instances","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/instances/extensions","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/slots/instances/extensions","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/publicCertificates","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/slots/publicCertificates","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West - US","East US","Japan West","Japan East","East Asia","East US 2","North Central - US","South Central US","Brazil South","Australia East","Australia Southeast","West - India","Central India","South India","Canada Central","Canada East","West - Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"publishingUsers","locations":["Central + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/recommendedSensitivityLabels","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/syncGroups","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/databases/syncGroups/syncMembers","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"servers/syncAgents","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"instancePools","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/instancePoolOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/instancePoolAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"managedInstances","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"managedInstances/administrators","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"managedInstances/databases","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-03-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"managedInstances/recoverableDatabases","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"managedInstances/metrics","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview"],"capabilities":"None"},{"resourceType":"managedInstances/metricDefinitions","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview","2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedDatabaseAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedDatabaseOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedDatabaseRestoreAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedDatabaseRestoreOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedServerSecurityAlertPoliciesAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"managedInstances/tdeCertificates","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceTdeCertAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceTdeCertOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedServerSecurityAlertPoliciesOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"virtualClusters","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/virtualClusterAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/virtualClusterOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedInstanceOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2017-10-01-preview","2017-03-01-preview","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/administratorAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/administratorOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/syncGroupOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/syncMemberOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/syncAgentOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/syncDatabaseIds","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/longTermRetentionServers","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/longTermRetentionBackups","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/longTermRetentionPolicyOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/longTermRetentionPolicyAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/longTermRetentionBackupOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/longTermRetentionBackupAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/shortTermRetentionPolicyOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/shortTermRetentionPolicyAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedShortTermRetentionPolicyOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/managedShortTermRetentionPolicyAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/instanceFailoverGroups","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/instanceFailoverGroupAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/instanceFailoverGroupOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-10-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateEndpointConnectionProxyOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateEndpointConnectionProxyAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateEndpointConnectionOperationResults","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/privateEndpointConnectionAzureAsyncOperation","locations":["Australia + East","Australia Southeast","Brazil South","Canada Central","Canada East","Central + India","Central US","East Asia","East US","East US 2","France Central","Japan + East","Japan West","Korea Central","Korea South","North Central US","North + Europe","South Africa North","South Central US","South India","Southeast Asia","UK + South","UK West","West Central US","West Europe","West India","West US","West + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Automation","namespace":"Microsoft.Automation","authorizations":[{"applicationId":"fc75330b-179d-49af-87dd-3b1acf6827fa","roleDefinitionId":"95fd5de3-d071-4362-92bf-cf341c1de832"}],"resourceTypes":[{"resourceType":"automationAccounts","locations":["Japan + East","East US 2","West Europe","Southeast Asia","South Central US","North + Central US","East Asia","Australia Central","Australia East","Korea Central","East + US","West US 2","Brazil South","UK South","West Central US","North Europe","Canada + Central","Australia Southeast","Central India","France Central","Central US + EUAP"],"apiVersions":["2018-06-30","2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"automationAccounts/runbooks","locations":["Japan + East","East US 2","West Europe","Southeast Asia","South Central US","North + Central US","East Asia","Australia Central","Australia East","Korea Central","East + US","West US 2","Brazil South","UK South","West Central US","North Europe","Canada + Central","Australia Southeast","Central India","France Central","Central US + EUAP"],"apiVersions":["2018-06-30","2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"automationAccounts/configurations","locations":["Japan + East","East US 2","West Europe","Southeast Asia","South Central US","North + Central US","Australia Central","Australia East","Korea Central","East US","West + US 2","Brazil South","UK South","West Central US","Central India","Australia + Southeast","Canada Central","North Europe","East Asia","France Central","Central + US EUAP"],"apiVersions":["2018-06-30","2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"automationAccounts/webhooks","locations":["Japan + East","East US 2","West Europe","Southeast Asia","South Central US","North + Central US","East Asia","Australia Central","Korea Central","East US","West + US 2","Brazil South","UK South","West Central US","North Europe","Canada Central","Australia + Southeast","Central India","Australia East","France Central","Central US EUAP"],"apiVersions":["2018-06-30","2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["South + Central US"],"apiVersions":["2018-06-30","2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"None"},{"resourceType":"automationAccounts/softwareUpdateConfigurations","locations":["Japan + East","East US 2","West Europe","Southeast Asia","South Central US","North + Central US","East Asia","Australia Central","Australia East","Korea Central","East + US","West US 2","Brazil South","UK South","West Central US","North Europe","Canada + Central","Australia Southeast","Central India","France Central","Central US + EUAP"],"apiVersions":["2018-06-30","2018-01-15","2017-05-15-preview"],"capabilities":"None"},{"resourceType":"automationAccounts/jobs","locations":["Japan + East","East US 2","West Europe","Southeast Asia","South Central US","North + Central US","East Asia","Australia Central","Australia East","Korea Central","East + US","West US 2","Brazil South","UK South","West Central US","North Europe","Canada + Central","Australia Southeast","Central India","France Central","Central US + EUAP"],"apiVersions":["2018-06-30","2018-01-15","2017-05-15-preview","2015-10-31","2015-01-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VirtualMachineImages","namespace":"Microsoft.VirtualMachineImages","authorizations":[{"applicationId":"cf32a0cc-373c-47c9-9156-0db11f6a6dfc","roleDefinitionId":"0ee55a0b-f45f-4392-92ec-e8bf1b4b5da5","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"}],"resourceTypes":[{"resourceType":"imageTemplates","locations":["East + US","East US 2","West Central US","West US","West US 2"],"apiVersions":["2019-05-01-preview","2019-02-01-preview","2018-02-01-preview"],"defaultApiVersion":"2019-05-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"imageTemplates/runOutputs","locations":["East + US","East US 2","West Central US","West US","West US 2"],"apiVersions":["2019-05-01-preview","2019-02-01-preview","2018-02-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["East + US","East US 2","West Central US","West US","West US 2"],"apiVersions":["2019-05-01-preview","2019-02-01-preview","2018-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["East + US","East US 2","West Central US","West US","West US 2"],"apiVersions":["2019-05-01-preview","2019-02-01-preview","2018-02-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network","namespace":"Microsoft.Network","authorizations":[{"applicationId":"2cf9eb86-36b5-49dc-86ae-9a63135dfa8c","roleDefinitionId":"13ba9ab4-19f0-4804-adc4-14ece36cc7a1"},{"applicationId":"7c33bfcb-8d33-48d6-8e60-dc6404003489","roleDefinitionId":"ad6261e4-fa9a-4642-aa5f-104f1b67e9e3"},{"applicationId":"1e3e4475-288f-4018-a376-df66fd7fac5f","roleDefinitionId":"1d538b69-3d87-4e56-8ff8-25786fd48261"},{"applicationId":"a0be0c72-870e-46f0-9c49-c98333a996f7","roleDefinitionId":"7ce22727-ffce-45a9-930c-ddb2e56fa131"},{"applicationId":"486c78bf-a0f7-45f1-92fd-37215929e116","roleDefinitionId":"98a9e526-0a60-4c1f-a33a-ae46e1f8dc0d"},{"applicationId":"19947cfd-0303-466c-ac3c-fcc19a7a1570","roleDefinitionId":"d813ab6c-bfb7-413e-9462-005b21f0ce09"},{"applicationId":"341b7f3d-69b3-47f9-9ce7-5b7f4945fdbd","roleDefinitionId":"8141843c-c51c-4c1e-a5bf-0d351594b86c"}],"resourceTypes":[{"resourceType":"virtualNetworks","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"natGateways","locations":["West + US","Central US EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01"],"defaultApiVersion":"2018-11-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"publicIPAddresses","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"networkInterfaces","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"privateEndpoints","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01"],"defaultApiVersion":"2019-02-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"loadBalancers","locations":["West US","East + US","North Europe","West Europe","East Asia","Southeast Asia","North Central + US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil + South","Australia East","Australia Southeast","Central India","South India","West + India","Canada Central","Canada East","West Central US","West US 2","UK West","UK + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"networkSecurityGroups","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"applicationSecurityGroups","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"serviceEndpointPolicies","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01"],"defaultApiVersion":"2018-01-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"networkIntentPolicies","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","France + South","South Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"defaultApiVersion":"2018-04-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"routeTables","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"publicIPPrefixes","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01"],"defaultApiVersion":"2018-07-01","zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"ddosCustomPolicies","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01"],"defaultApiVersion":"2018-10-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"networkWatchers","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30"],"defaultApiVersion":"2017-09-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"networkWatchers/connectionMonitors","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-09-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"networkWatchers/lenses","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-09-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"networkWatchers/pingMeshes","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-09-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"virtualNetworkGateways","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"localNetworkGateways","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"connections","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"applicationGateways","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2018-12-01","zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"applicationGatewayWebApplicationFirewallPolicies","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01"],"defaultApiVersion":"2018-12-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"locations/operations","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"locations/CheckDnsNameAvailability","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"None"},{"resourceType":"locations/usages","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2015-06-15"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"locations/virtualNetworkAvailableEndpointServices","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01"],"capabilities":"None"},{"resourceType":"locations/availableDelegations","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"capabilities":"None"},{"resourceType":"locations/serviceTags","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01"],"capabilities":"None"},{"resourceType":"locations/availablePrivateEndpointResources","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01"],"capabilities":"None"},{"resourceType":"locations/supportedVirtualMachineSizes","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"capabilities":"None"},{"resourceType":"locations/checkAcceleratedNetworkingSupport","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"capabilities":"None"},{"resourceType":"locations/validateResourceOwnership","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"capabilities":"None"},{"resourceType":"locations/setResourceOwnership","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"capabilities":"None"},{"resourceType":"locations/effectiveResourceOwnership","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"None"},{"resourceType":"dnszones","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-10-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"dnsOperationResults","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnsOperationStatuses","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"getDnsResourceReference","locations":["global"],"apiVersions":["2018-05-01"],"defaultApiVersion":"2018-05-01","capabilities":"None"},{"resourceType":"internalNotify","locations":["global"],"apiVersions":["2018-05-01"],"defaultApiVersion":"2018-05-01","capabilities":"None"},{"resourceType":"dnszones/A","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/AAAA","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/CNAME","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/PTR","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/MX","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/TXT","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/SRV","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/SOA","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/NS","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/CAA","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01"],"defaultApiVersion":"2017-09-01","capabilities":"None"},{"resourceType":"dnszones/recordsets","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"dnszones/all","locations":["global"],"apiVersions":["2018-05-01","2018-03-01-preview","2017-10-01","2017-09-15-preview","2017-09-01","2016-04-01","2015-05-04-preview"],"defaultApiVersion":"2016-04-01","capabilities":"None"},{"resourceType":"privateDnsZones","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"privateDnsZones/virtualNetworkLinks","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"privateDnsOperationResults","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsOperationStatuses","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/A","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/AAAA","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/CNAME","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/PTR","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/MX","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/TXT","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/SRV","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/SOA","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"privateDnsZones/all","locations":["global"],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"trafficmanagerprofiles","locations":["global"],"apiVersions":["2018-08-01","2018-04-01","2018-03-01","2018-02-01","2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"],"defaultApiVersion":"2018-08-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"trafficmanagerprofiles/heatMaps","locations":["global"],"apiVersions":["2018-08-01","2018-04-01","2018-03-01","2018-02-01","2017-09-01-preview"],"defaultApiVersion":"2018-08-01","capabilities":"None"},{"resourceType":"checkTrafficManagerNameAvailability","locations":["global"],"apiVersions":["2018-08-01","2018-04-01","2018-03-01","2018-02-01","2017-05-01","2017-03-01","2015-11-01","2015-04-28-preview"],"defaultApiVersion":"2018-08-01","capabilities":"None"},{"resourceType":"trafficManagerUserMetricsKeys","locations":["global"],"apiVersions":["2018-08-01","2018-04-01","2017-09-01-preview"],"defaultApiVersion":"2018-08-01","capabilities":"None"},{"resourceType":"trafficManagerGeographicHierarchies","locations":["global"],"apiVersions":["2018-08-01","2018-04-01","2018-03-01","2018-02-01","2017-05-01","2017-03-01"],"defaultApiVersion":"2018-08-01","capabilities":"None"},{"resourceType":"expressRouteCircuits","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"defaultApiVersion":"2017-09-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"expressRouteServiceProviders","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01","2016-11-01","2016-10-01","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-03-30","2015-06-15","2015-05-01-preview","2014-12-01-preview"],"capabilities":"None"},{"resourceType":"applicationGatewayAvailableWafRuleSets","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01"],"capabilities":"None"},{"resourceType":"applicationGatewayAvailableSslOptions","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01"],"capabilities":"None"},{"resourceType":"applicationGatewayAvailableServerVariables","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01"],"capabilities":"None"},{"resourceType":"applicationGatewayAvailableRequestHeaders","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01"],"capabilities":"None"},{"resourceType":"applicationGatewayAvailableResponseHeaders","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01"],"capabilities":"None"},{"resourceType":"routeFilters","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"],"defaultApiVersion":"2016-12-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"bgpServiceCommunities","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01","2017-08-01","2017-06-01","2017-04-01","2017-03-01","2016-12-01"],"capabilities":"None"},{"resourceType":"virtualWans","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-09-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"vpnSites","locations":["West US","East + US","North Europe","West Europe","East Asia","Southeast Asia","North Central + US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil + South","Australia East","Australia Southeast","Central India","South India","West + India","Canada Central","Canada East","West Central US","West US 2","UK West","UK + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-09-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"virtualHubs","locations":["West US","East + US","North Europe","West Europe","East Asia","Southeast Asia","North Central + US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil + South","Australia East","Australia Southeast","Central India","South India","West + India","Canada Central","Canada East","West Central US","West US 2","UK West","UK + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-11-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"vpnGateways","locations":["West US","East + US","North Europe","West Europe","East Asia","Southeast Asia","North Central + US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil + South","Australia East","Australia Southeast","Central India","South India","West + India","Canada Central","Canada East","West Central US","West US 2","UK West","UK + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01","2017-10-01","2017-09-01"],"defaultApiVersion":"2017-11-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"secureGateways","locations":["South Africa + North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01","2018-01-01","2017-11-01"],"defaultApiVersion":"2018-02-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"azureFirewalls","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Brazil South","Australia + East","Australia Southeast","Central India","South India","West India","Canada + Central","Canada East","West Central US","West US 2","UK West","UK South","France + Central","Japan West","Japan East","Korea Central","Korea South","South Africa + North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01"],"defaultApiVersion":"2018-04-01","zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"azureFirewallFqdnTags","locations":[],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01"],"capabilities":"None"},{"resourceType":"virtualNetworkTaps","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01"],"defaultApiVersion":"2018-08-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"privateLinkServices","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01"],"defaultApiVersion":"2018-08-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"ddosProtectionPlans","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01","2018-04-01","2018-03-01","2018-02-01"],"defaultApiVersion":"2018-02-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"}],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"networkProfiles","locations":["West US","East + US","North Europe","West Europe","East Asia","Southeast Asia","North Central + US","South Central US","Central US","East US 2","Japan East","Japan West","Brazil + South","Australia East","Australia Southeast","Central India","South India","West + India","Canada Central","Canada East","West Central US","West US 2","UK West","UK + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01","2018-06-01","2018-05-01"],"defaultApiVersion":"2018-05-01","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"frontdoorOperationResults","locations":["global"],"apiVersions":["2019-05-01","2019-04-01","2018-08-01"],"defaultApiVersion":"2019-04-01","capabilities":"None"},{"resourceType":"checkFrontdoorNameAvailability","locations":["global","Central + US","East US","East US 2","North Central US","South Central US","West US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil + South","Australia East","Australia Southeast"],"apiVersions":["2019-05-01","2019-04-01","2018-08-01"],"defaultApiVersion":"2019-04-01","capabilities":"None"},{"resourceType":"frontdoorWebApplicationFirewallManagedRuleSets","locations":["global","Central + US","East US","East US 2","North Central US","South Central US","West US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Brazil + South","Australia East","Australia Southeast"],"apiVersions":["2019-03-01"],"defaultApiVersion":"2019-03-01","capabilities":"None"},{"resourceType":"locations/bareMetalTenants","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","North + Central US","South Central US","Central US","East US 2","Japan East","Japan + West","Brazil South","Australia East","Australia Southeast","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK West","UK South","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-07-01"],"capabilities":"None"},{"resourceType":"frontdoors","locations":["Central + US EUAP","East US 2 EUAP","global","Central US","East US","East US 2","North + Central US","South Central US","West US","North Europe","West Europe","East + Asia","Southeast Asia","Japan East","Japan West","Brazil South","Australia + East","Australia Southeast"],"apiVersions":["2019-05-01","2019-04-01","2019-02-01","2018-12-01","2018-11-01","2018-10-01","2018-08-01","2018-05-01"],"defaultApiVersion":"2019-04-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"frontdoorWebApplicationFirewallPolicies","locations":["East + US 2 EUAP","global","Central US","East US","East US 2","North Central US","South + Central US","West US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Brazil South","Australia East","Australia + Southeast"],"apiVersions":["2019-03-01","2018-08-01"],"defaultApiVersion":"2019-03-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"webApplicationFirewallPolicies","locations":["East + US 2 EUAP","global","Central US","East US","East US 2","North Central US","South + Central US","West US","North Europe","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","Brazil South","Australia East","Australia + Southeast"],"apiVersions":["2018-08-01"],"defaultApiVersion":"2018-08-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute","namespace":"Microsoft.Compute","authorizations":[{"applicationId":"60e6cd67-9c8c-4951-9b3c-23c25a2169af","roleDefinitionId":"e4770acb-272e-4dc8-87f3-12f44a612224"},{"applicationId":"a303894e-f1d8-4a37-bf10-67aa654a0596","roleDefinitionId":"903ac751-8ad5-4e5a-bfc2-5e49f450a241"},{"applicationId":"a8b6bf88-1d1a-4626-b040-9a729ea93c65","roleDefinitionId":"45c8267c-80ba-4b96-9a43-115b8f49fccd"},{"applicationId":"184909ca-69f1-4368-a6a7-c558ee6eb0bd","roleDefinitionId":"45c8267c-80ba-4b96-9a43-115b8f49fccd"},{"applicationId":"5e5e43d4-54da-4211-86a4-c6e7f3715801","roleDefinitionId":"ffcd6e5b-8772-457d-bb17-89703c03428f"},{"applicationId":"ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0","roleDefinitionId":"cb17cddc-dbac-4ae0-ae79-8db34eddfca0"},{"applicationId":"372140e0-b3b7-4226-8ef9-d57986796201","roleDefinitionId":"cb17cddc-dbac-4ae0-ae79-8db34eddfca0"}],"resourceTypes":[{"resourceType":"availabilitySets","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachines","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SystemAssignedResourceIdentity, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachines/extensions","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachineScaleSets","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SystemAssignedResourceIdentity, SupportsTags, SupportsLocation"},{"resourceType":"virtualMachineScaleSets/extensions","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"defaultApiVersion":"2015-06-15","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/virtualMachines","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/networkInterfaces","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/virtualMachines/networkInterfaces","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-09-01","2016-08-01","2016-07-01","2016-06-01","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"virtualMachineScaleSets/publicIPAddresses","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-10-30-preview","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/vmSizes","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/runCommands","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/usages","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/virtualMachines","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30"],"defaultApiVersion":"2018-06-01","apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"locations/publishers","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-03-30","2015-06-15","2015-05-01-preview"],"capabilities":"None"},{"resourceType":"restorePointCollections","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"restorePointCollections/restorePoints","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30"],"capabilities":"None"},{"resourceType":"proximityPlacementGroups","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"virtualMachines/metricDefinitions","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"sharedVMImages","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2017-10-15-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"sharedVMImages/versions","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2017-10-15-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"locations/artifactPublishers","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2017-10-15-preview"],"capabilities":"None"},{"resourceType":"locations/capsoperations","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2019-03-01","2018-06-01","2017-10-15-preview"],"capabilities":"None"},{"resourceType":"galleries","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2019-03-01","2018-06-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"galleries/images","locations":["West Central + US","South Central US","East US 2","Southeast Asia","West Europe","West US","East + US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2019-03-01","2018-06-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"galleries/images/versions","locations":["West + Central US","South Central US","East US 2","Southeast Asia","West Europe","West + US","East US","Canada Central","North Europe","North Central US","Brazil South","UK + West","West India","East Asia","Australia East","Japan East","Korea South","West + US 2","Canada East","UK South","Central India","South India","Australia Southeast","Japan + West","Korea Central","France Central","Central US","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2019-03-01","2018-06-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"disks","locations":["Southeast Asia","East + US 2","Central US","West Europe","East US","North Central US","South Central + US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-09-30","2018-06-01","2018-04-01","2017-03-30","2016-04-30-preview"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"snapshots","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-09-30","2018-06-01","2018-04-01","2017-03-30","2016-04-30-preview"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/diskoperations","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-09-30","2018-06-01","2018-04-01","2017-03-30","2016-04-30-preview"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"None"},{"resourceType":"locations/vsmoperations","locations":["East + US","West Central US","South Central US","North Europe","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview","2016-03-30","2015-06-15","2015-05-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-30"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2017-12-01"}],"capabilities":"None"},{"resourceType":"images","locations":["Southeast + Asia","East US 2","Central US","West Europe","East US","North Central US","South + Central US","West US","North Europe","East Asia","Brazil South","West US 2","West + Central US","UK West","UK South","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","Australia East","Australia Southeast","Korea + Central","Korea South","West India","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01","2017-03-30","2016-08-30","2016-04-30-preview"],"apiProfiles":[{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-03-30"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/logAnalytics","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-10-01","2018-06-01","2018-04-01","2017-12-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache","namespace":"Microsoft.Cache","authorization":{"applicationId":"96231a05-34ce-4eb4-aa6a-70759cbb5e83","roleDefinitionId":"4f731528-ba85-45c7-acfb-cd0a9b3cf31b"},"resourceTypes":[{"resourceType":"Redis","locations":["North + Central US","South Central US","Central US","West Europe","North Europe","West + US","East US","Japan East","Japan West","Brazil South","Southeast Asia","East + Asia","Australia East","Australia Southeast","Central India","West India","Canada + Central","Canada East","UK South","UK West","West US 2","West Central US","South + India","Korea Central","Korea South","France Central","South Africa North","East + US 2","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"}],"zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"}],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["North + Central US","South Central US","Central US","West Europe","North Europe","West + US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast + Asia","East Asia","Australia East","Australia Southeast","Central India","West + India","South India","Canada Central","Canada East","UK South","UK West","West + US 2","West Central US","Korea Central","Korea South","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01-alpha","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01","2014-04-01-preview","2014-04-01-alpha","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"}],"capabilities":"None"},{"resourceType":"RedisConfigDefinition","locations":[],"apiVersions":["2018-03-01","2017-10-01","2017-02-01","2016-04-01","2015-08-01","2015-03-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Providers.Test","namespace":"Providers.Test","resourceTypes":[{"resourceType":"statelessResources","locations":["West + US","West US 2","East US","Central US","North Central US","South Central US","West + Central US","West Europe","North Europe","East Asia","Southeast Asia","West + India","South India","Central India","Canada Central","Canada East","UK South","UK + West","France Central","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"statefulResources","locations":["West + US","West US 2","East US","North Central US","South Central US","West Central + US","North Europe","East Asia","Southeast Asia","West India","South India","Central + India","Canada Central","Canada East","UK South","UK West","France Central","Central + US","West Europe","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"zoneMappings":[{"location":"Central + US","zones":["1","2","3"]},{"location":"West Europe","zones":["1","2","3"]},{"location":"East + US 2 EUAP","zones":["1","2","3"]},{"location":"Central US EUAP","zones":["1","2"]},{"location":"France + Central","zones":["1","2","3"]},{"location":"Southeast Asia","zones":["1","2","3"]},{"location":"West + US 2","zones":["1","2","3"]},{"location":"North Europe","zones":["1","2","3"]},{"location":"East + US","zones":["1","2","3"]},{"location":"UK South","zones":["1","2","3"]}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"statefulResources/nestedResources","locations":["West + US","West US 2","East US","Central US","North Central US","South Central US","West + Central US","West Europe","North Europe","East Asia","Southeast Asia","West + India","South India","Central India","Canada Central","Canada East","UK South","UK + West","France Central","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"statefulIbizaEngines","locations":["West + US","West US 2","East US","Central US","North Central US","South Central US","West + Central US","West Europe","North Europe","East Asia","Southeast Asia","West + India","South India","Central India","Canada Central","Canada East","UK South","UK + West","France Central","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"statefulResources/metricDefinitions","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"statefulResources/metrics","locations":[],"apiVersions":["2014-04-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web","namespace":"Microsoft.Web","authorization":{"applicationId":"abfa0a7c-a6b6-4736-8310-5855508787cd","roleDefinitionId":"f47ed98b-b063-4a5b-9e10-4b9b44fa7735"},"resourceTypes":[{"resourceType":"publishingUsers","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"ishostnameavailable","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"ishostnameavailable","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"validate","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"validate","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central US (Stage)","North - Central US (Stage)","France Central","Australia Central","Australia Central - 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"isusernameavailable","locations":["Central + Central US (Stage)","France Central","South Africa North","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"isusernameavailable","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"sourceControls","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sourceControls","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"availableStacks","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"availableStacks","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"listSitesAssignedToHostName","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"listSitesAssignedToHostName","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"sites/hostNameBindings","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/networkConfig","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/domainOwnershipIdentifiers","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/slots/networkConfig","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"sites/slots/hostNameBindings","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/hostNameBindings","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"operations","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/slots/hostNameBindings","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"certificates","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}],"capabilities":"CrossSubscriptionResourceMove"},{"resourceType":"serverFarms","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"certificates","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"serverFarms/workers","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossSubscriptionResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"serverFarms","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"}]},{"resourceType":"sites","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"sites","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"sites/slots","locations":["Central - US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2017-08-01","2016-09-01","2016-08-01","2016-03-01","2015-11-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2015-01-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"sites/slots","locations":["Central US","North + Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"runtimes","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"sites/metrics","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2017-08-01","2016-09-01","2016-08-01","2016-03-01","2015-11-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2015-01-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"runtimes","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"recommendations","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"resourceHealthMetadata","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"georegions","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"sites/premieraddons","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"sites/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"sites/slots/metrics","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"hostingEnvironments","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"sites/slots/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"serverFarms/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"serverFarms/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"sites/recommendations","locations":[],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"recommendations","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"sites/resourceHealthMetadata","locations":[],"apiVersions":["2016-08-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-08-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-08-01"}]},{"resourceType":"resourceHealthMetadata","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"georegions","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"sites/premieraddons","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-02-01","2019-01-01","2018-11-01","2018-08-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"East US 2 EUAP","zones":["1","2","3"]},{"location":"Central + US EUAP","zones":["1","2"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":[]}],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"hostingEnvironments/multiRolePools","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"hostingEnvironments","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-02-01","2018-11-01","2018-08-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"hostingEnvironments/workerPools","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","Central US EUAP"],"apiVersions":["2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"}],"capabilities":"None"},{"resourceType":"hostingEnvironments/multiRolePools","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-02-01","2018-11-01","2018-08-01","2018-02-01","2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"deploymentLocations","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","Central US EUAP"],"apiVersions":["2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"}]},{"resourceType":"hostingEnvironments/workerPools","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"functions","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","Central US EUAP"],"apiVersions":["2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"}]},{"resourceType":"hostingEnvironments/metrics","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"deletedSites","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/instances","locations":[],"apiVersions":["2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/instances/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/multiRolePools/instances/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/instances","locations":[],"apiVersions":["2017-08-01","2016-09-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-09-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2017-08-01"}]},{"resourceType":"hostingEnvironments/workerPools/instances/metrics","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"hostingEnvironments/workerPools/instances/metricDefinitions","locations":["East - Asia (Stage)"],"apiVersions":["2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2014-04-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2014-04-01"}]},{"resourceType":"deploymentLocations","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"functions","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","East Asia (Stage)","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"locations/deletedSites","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"deletedSites","locations":["Central + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","East Asia (Stage)","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"defaultApiVersion":"2018-02-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"ishostingenvironmentnameavailable","locations":[],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"locations/deleteVirtualNetworkOrSubnets","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT - East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"ishostingenvironmentnameavailable","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"classicMobileServices","locations":[],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}],"capabilities":"None"},{"resourceType":"connections","locations":["North + East Asia","MSFT North Europe","East US 2 (Stage)","Central US (Stage)","North + Central US (Stage)","France Central","South Africa North","East Asia (Stage)","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-11-01","2016-08-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"defaultApiVersion":"2018-02-01","apiProfiles":[{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"connections","locations":["North + Central US","Central US","South Central US","North Europe","West Europe","East + Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan + East","Brazil South","Australia East","Australia Southeast","South India","Central + India","West India","West US 2","West Central US","Canada Central","Canada + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"customApis","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"customApis","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/listWsdlInterfaces","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":[],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}]},{"resourceType":"locations/listWsdlInterfaces","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/extractApiDefinitionFromWsdl","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}]},{"resourceType":"locations/extractApiDefinitionFromWsdl","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/managedApis","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}]},{"resourceType":"locations/managedApis","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/runtimes","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}]},{"resourceType":"locations/apiOperations","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"locations/apiOperations","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}]},{"resourceType":"connectionGateways","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-01-preview","2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"connectionGateways","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations/connectionGatewayInstallations","locations":["North + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/connectionGatewayInstallations","locations":["North Central US","Central US","South Central US","North Europe","West Europe","East Asia","Southeast Asia","West US","East US","East US 2","Japan West","Japan East","Brazil South","Australia East","Australia Southeast","South India","Central India","West India","West US 2","West Central US","Canada Central","Canada - East","UK South","UK West"],"apiVersions":["2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"}]},{"resourceType":"checkNameAvailability","locations":["Central + East","UK South","UK West","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-03-01-preview","2016-06-01","2015-08-01-preview"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-06-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-06-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-03-01-preview"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"billingMeters","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"billingMeters","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]},{"resourceType":"verifyHostingEnvironmentVnet","locations":["Central + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01-preview","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"verifyHostingEnvironmentVnet","locations":["Central US","North Europe","West Europe","Southeast Asia","Korea Central","Korea South","West US","East US","Japan West","Japan East","East Asia","East US 2","North Central US","South Central US","Brazil South","Australia East","Australia Southeast","West India","Central India","South India","Canada Central","Canada East","West Central US","UK West","UK South","West US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North Europe","East US 2 (Stage)","East Asia (Stage)","Central - US (Stage)","North Central US (Stage)","France Central","Australia Central","Australia - Central 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"}]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Providers.Test","namespace":"Providers.Test","resourceTypes":[{"resourceType":"statelessResources","locations":["West - US","West US 2","East US","Central US","North Central US","South Central US","West - Central US","West Europe","North Europe","East Asia","Southeast Asia","West - India","South India","Central India","Canada Central","Canada East","UK South","UK - West","France Central","France South","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"statefulResources","locations":["West - US","West US 2","East US","North Central US","South Central US","West Central - US","North Europe","East Asia","Southeast Asia","West India","South India","Central - India","Canada Central","Canada East","UK South","UK West","France Central","France - South","Central US","West Europe","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"zoneMappings":[{"location":"Central - US","zones":["1","2","3"]},{"location":"West Europe","zones":["1","2","3"]},{"location":"East - US 2 EUAP","zones":["1","2","3"]},{"location":"Central US EUAP","zones":["1","2"]},{"location":"France - Central","zones":["1","2","3"]},{"location":"Southeast Asia","zones":["1","2","3"]}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove, SystemAssignedResourceIdentity"},{"resourceType":"statefulResources/nestedResources","locations":["West - US","West US 2","East US","Central US","North Central US","South Central US","West - Central US","West Europe","North Europe","East Asia","Southeast Asia","West - India","South India","Central India","Canada Central","Canada East","UK South","UK - West","France Central","France South","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"statefulIbizaEngines","locations":["West - US","West US 2","East US","Central US","North Central US","South Central US","West - Central US","West Europe","North Europe","East Asia","Southeast Asia","West - India","South India","Central India","Canada Central","Canada East","UK South","UK - West","France Central","France South","Central US EUAP","East US 2 EUAP"],"apiVersions":["2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"statefulResources/metricDefinitions","locations":[],"apiVersions":["2014-04-01"]},{"resourceType":"statefulResources/metrics","locations":[],"apiVersions":["2014-04-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/SuccessBricks.ClearDB","namespace":"SuccessBricks.ClearDB","resourceTypes":[{"resourceType":"databases","locations":["Brazil - South","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","Southeast Asia","West Europe","West - US","South Central US","Australia East","Australia Southeast","Canada Central","Canada - East","Central India","South India","West India"],"apiVersions":["2014-04-01"],"capabilities":"None"},{"resourceType":"clusters","locations":["Brazil - South","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","Southeast Asia","West Europe","West - US","Australia Southeast","Australia East","South Central US","Canada Central","Canada - East","Central India","South India","West India"],"apiVersions":["2014-04-01"],"capabilities":"None"}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/TrendMicro.DeepSecurity","namespace":"TrendMicro.DeepSecurity","resourceTypes":[{"resourceType":"accounts","locations":["Central - US"],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-15"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-06-15"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-06-15"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Addons","namespace":"Microsoft.Addons","authorization":{"applicationId":"24d3987b-be4a-48e0-a3e7-11c186f39e41","roleDefinitionId":"8004BAAB-A4CB-4981-8571-F7E44D039D93"},"resourceTypes":[{"resourceType":"supportProviders","locations":["West - Central US","South Central US","East US","West Europe"],"apiVersions":["2018-03-01","2017-05-15"]},{"resourceType":"operations","locations":["West - Central US","South Central US","East US","West Europe"],"apiVersions":["2018-03-01","2017-05-15"]},{"resourceType":"operationResults","locations":["West - Central US","South Central US","East US","West Europe"],"apiVersions":["2018-03-01","2017-05-15"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ADHybridHealthService","namespace":"Microsoft.ADHybridHealthService","resourceTypes":[{"resourceType":"services","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"addsservices","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"configuration","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"operations","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"agents","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"aadsupportcases","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"reports","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"servicehealthmetrics","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"logs","locations":["West - US"],"apiVersions":["2014-01-01"]},{"resourceType":"anonymousapiusers","locations":["West - US"],"apiVersions":["2014-01-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AlertsManagement","namespace":"Microsoft.AlertsManagement","resourceTypes":[{"resourceType":"alerts","locations":[],"apiVersions":["2018-05-05-preview","2017-11-15-privatepreview"]},{"resourceType":"alertsSummary","locations":[],"apiVersions":["2018-05-05-preview","2017-11-15-privatepreview"]},{"resourceType":"smartGroups","locations":[],"apiVersions":["2018-05-05-preview","2017-11-15-privatepreview"]},{"resourceType":"smartDetectorMonitoringAppliances","locations":[],"apiVersions":["2018-05-01-privatepreview"]},{"resourceType":"smartDetectorAlertRules","locations":[],"apiVersions":["2018-05-01-privatepreview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-05-05-preview","2017-11-15-privatepreview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AnalysisServices","namespace":"Microsoft.AnalysisServices","authorization":{"applicationId":"4ac7d521-0382-477b-b0f8-7e1d95f85ca2","roleDefinitionId":"490d5987-bcf6-4be6-b6b2-056a78cb693a"},"resourceTypes":[{"resourceType":"servers","locations":["West + US (Stage)","North Central US (Stage)","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-01","2018-02-01","2016-03-01","2015-08-01","2015-07-01","2015-06-01","2015-05-01","2015-04-01","2015-02-01","2014-11-01","2014-06-01","2014-04-01-preview","2014-04-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2016-03-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2016-03-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-02-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights","namespace":"microsoft.insights","authorizations":[{"applicationId":"6bccf540-eb86-4037-af03-7fa058c2db75","roleDefinitionId":"89dcede2-9219-403a-9723-d3c6473f9472"},{"applicationId":"11c174dc-1945-4a9a-a36b-c79a0f246b9b","roleDefinitionId":"dd9d4347-f397-45f2-b538-85f21c90037b"},{"applicationId":"035f9e1d-4f00-4419-bf50-bf2d87eb4878","roleDefinitionId":"323795fe-ba3d-4f5a-ad42-afb4e1ea9485"},{"applicationId":"f5c26e74-f226-4ae8-85f0-b4af0080ac9e","roleDefinitionId":"529d7ae6-e892-4d43-809d-8547aeb90643"},{"applicationId":"b503eb83-1222-4dcc-b116-b98ed5216e05","roleDefinitionId":"68699c37-c689-44d4-9248-494b782d46ae"},{"applicationId":"ca7f3f0b-7d91-482c-8e09-c5d840d0eac5","roleDefinitionId":"5d5a2e56-9835-44aa-93db-d2f19e155438"},{"applicationId":"3af5a1e8-2459-45cb-8683-bcd6cccbcc13","roleDefinitionId":"b1309299-720d-4159-9897-6158a61aee41"},{"applicationId":"6a0a243c-0886-468a-a4c2-eff52c7445da","roleDefinitionId":"d2eda64b-c5e6-4930-8642-2d80ecd7c2e2"},{"applicationId":"707be275-6b9d-4ee7-88f9-c0c2bd646e0f","roleDefinitionId":"fa027d90-6ba0-4c33-9a54-59edaf2327e7"}],"resourceTypes":[{"resourceType":"components","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2","UK South","Canada Central","Central India","Japan East","Australia + East","Korea Central","France Central","East US 2","East Asia","West US"],"apiVersions":["2018-05-01-preview","2015-05-01","2014-12-01-preview","2014-08-01","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/query","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2","UK South","Central India","Canada Central","Japan East","Australia + East","Korea Central","France Central","East US 2","East Asia","West US"],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"components/metrics","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2","UK South","Central India","Canada Central","Japan East","Australia + East","Korea Central","France Central","East US 2","East Asia","West US"],"apiVersions":["2018-04-20","2014-04-01"],"capabilities":"None"},{"resourceType":"components/events","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2","UK South","Central India","Canada Central","Japan East","Australia + East","Korea Central","France Central","East US 2","East Asia","West US"],"apiVersions":["2018-04-20"],"capabilities":"None"},{"resourceType":"webtests","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2","UK South","Central India","Canada Central","Japan East","Australia + East","Korea Central","France Central","East US 2","East Asia","West US"],"apiVersions":["2018-05-01-preview","2015-05-01","2014-08-01","2014-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"queries","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2","Central India","Canada Central","UK South"],"apiVersions":["2015-05-01","2014-08-01"],"capabilities":"None"},{"resourceType":"scheduledqueryrules","locations":["West + Central US","East US","West Europe","Central India","Canada Central","Australia + Southeast","Japan East","Southeast Asia","UK South","South Central US","North + Europe","West US 2","Australia Central","Australia East","Korea Central","France + Central","Central US","East US 2","East Asia","West US","North Central US","South + Africa North","Brazil South","UK West"],"apiVersions":["2018-04-16","2017-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"components/pricingPlans","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"migrateToNewPricingModel","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"apiVersions":["2017-10-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"rollbackToLegacyPricingModel","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"apiVersions":["2017-10-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"listMigrationdate","locations":["East + US","South Central US","North Europe","West Europe","Southeast Asia","West + US 2"],"apiVersions":["2017-10-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-10-01"}],"capabilities":"None"},{"resourceType":"logprofiles","locations":[],"apiVersions":["2016-03-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}],"capabilities":"None"},{"resourceType":"migratealertrules","locations":[],"apiVersions":["2018-03-01"],"capabilities":"None"},{"resourceType":"metricalerts","locations":["Global"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"alertrules","locations":["West US","East + US","North Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan + West","North Central US","South Central US","East US 2","Central US","Australia + East","Australia Southeast","Brazil South","UK South","UK West","South India","Central + India","West India","Canada East","Canada Central","West Central US","West + US 2","Korea South","Korea Central","France Central","South Africa North","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2016-03-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-03-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"autoscalesettings","locations":["West + US","East US","North Europe","South Central US","East US 2","Central US","Australia + Southeast","Brazil South","UK South","UK West","South India","Central India","West + India","Canada East","Canada Central","West Central US","West US 2","Korea + South","Korea Central","France Central","West Europe","East Asia","Southeast + Asia","Japan East","Japan West","North Central US","Australia East","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2015-04-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"eventtypes","locations":[],"apiVersions":["2017-03-01-preview","2016-09-01-preview","2015-04-01","2014-11-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"None"},{"resourceType":"locations","locations":["East + US"],"apiVersions":["2015-04-01","2014-04-01"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":[],"apiVersions":["2015-04-01","2014-04-01"],"capabilities":"None"},{"resourceType":"vmInsightsOnboardingStatuses","locations":[],"apiVersions":["2018-11-27-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-04-01","2014-06-01","2014-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"None"},{"resourceType":"automatedExportSettings","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","East US 2","Central + US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South + India","Central India","West India","Canada East","Canada Central","West Central + US","West US 2","Korea South","Korea Central"],"apiVersions":["2015-04-01","2014-04-01"],"capabilities":"None"},{"resourceType":"diagnosticSettings","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","East US 2","Central + US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South + India","Central India","West India","Canada East","Canada Central","West Central + US","West US 2","Korea South","Korea Central","France Central","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-05-01-preview","2016-09-01","2015-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-09-01"}],"capabilities":"None"},{"resourceType":"diagnosticSettingsCategories","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","East US 2","Central + US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South + India","Central India","West India","Canada East","Canada Central","West Central + US","West US 2","Korea South","Korea Central","France Central","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-05-01-preview"],"capabilities":"None"},{"resourceType":"extendedDiagnosticSettings","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","East US 2","Central + US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South + India","Central India","West India","Canada East","Canada Central","West Central + US","West US 2","Korea South","Korea Central","France Central","South Africa + North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-02-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-02-01"}],"capabilities":"None"},{"resourceType":"metricDefinitions","locations":["East + US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan + West","North Central US","South Central US","East US 2","Canada East","Canada + Central","Central US","Australia East","Australia Southeast","Brazil South","South + India","Central India","West India","North Europe","West US 2","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-01-01","2017-12-01-preview","2017-09-01-preview","2017-05-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-01"}],"capabilities":"None"},{"resourceType":"logDefinitions","locations":["West + US","East US","North Europe","West Europe","East Asia","Southeast Asia","Japan + East","Japan West","North Central US","South Central US","East US 2","Central + US","Australia East","Australia Southeast","Brazil South","UK South","UK West","South + India","Central India","West India","Canada East","Canada Central","West Central + US","West US 2","Korea South","Korea Central","France Central","East US 2 + EUAP","Central US EUAP"],"apiVersions":["2015-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-07-01"}],"capabilities":"None"},{"resourceType":"eventCategories","locations":[],"apiVersions":["2015-04-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-04-01"}],"capabilities":"None"},{"resourceType":"metrics","locations":["East + US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan + West","North Central US","South Central US","East US 2","Canada East","Canada + Central","Central US","Australia East","Australia Southeast","Brazil South","South + India","Central India","West India","North Europe","West US 2","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-01-01","2017-12-01-preview","2017-09-01-preview","2017-05-01-preview","2016-09-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-01"}],"capabilities":"None"},{"resourceType":"metricNamespaces","locations":["East + US","West US","West Europe","East Asia","Southeast Asia","Japan East","Japan + West","North Central US","South Central US","East US 2","Canada East","Canada + Central","Central US","Australia East","Australia Southeast","Brazil South","South + India","Central India","West India","North Europe","West US 2","West Central + US","Korea South","Korea Central","UK South","UK West","France Central","South + Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2018-01-01","2017-12-01-preview"],"capabilities":"None"},{"resourceType":"actiongroups","locations":["Global"],"apiVersions":["2019-03-01","2018-09-01","2018-03-01","2017-04-01","2017-03-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"activityLogAlerts","locations":["Global"],"apiVersions":["2017-04-01","2017-03-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"baseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"None"},{"resourceType":"metricbaselines","locations":[],"apiVersions":["2019-03-01","2018-09-01"],"capabilities":"None"},{"resourceType":"calculatebaseline","locations":[],"apiVersions":["2018-09-01","2017-11-01-preview"],"capabilities":"None"},{"resourceType":"workbooks","locations":["West + Europe","South Central US","East US","North Europe","Southeast Asia","West + US 2","West Central US","Japan East","Australia East","Korea Central","France + Central","East US 2","East Asia","West US"],"apiVersions":[],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"myWorkbooks","locations":["West + Central US","West Europe","South Central US","East US","North Europe","Southeast + Asia","West US 2"],"apiVersions":["2016-06-15-preview"],"capabilities":"None"},{"resourceType":"logs","locations":["East + US","East US 2","West US","Central US","North Central US","South Central US","North + Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia + East","Australia Southeast","Brazil South","South India","Central India","West + India","Canada Central","Canada East","West US 2","West Central US","UK South","UK + West","Korea Central","Korea South","France Central","Central US EUAP","East + US 2 EUAP"],"apiVersions":["2018-03-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights","namespace":"Microsoft.OperationalInsights","authorizations":[{"applicationId":"d2a0a418-0aac-4541-82b2-b3142c89da77","roleDefinitionId":"86695298-2eb9-48a7-9ec3-2fdb38b6878b"},{"applicationId":"ca7f3f0b-7d91-482c-8e09-c5d840d0eac5","roleDefinitionId":"5d5a2e56-9835-44aa-93db-d2f19e155438"}],"resourceTypes":[{"resourceType":"workspaces","locations":["East + US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan + East","UK South","Central India","Canada Central","West US 2","Australia Central","Australia + East","France Central","Korea Central","North Europe","Central US","East Asia","East + US 2","South Central US","North Central US","West US","UK West","South Africa + North","Brazil South"],"apiVersions":["2017-04-26-preview","2017-03-15-preview","2017-03-03-preview","2017-01-01-preview","2015-11-01-preview","2015-03-20"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"workspaces/query","locations":["West + Central US","Australia Southeast","West Europe","East US","Southeast Asia","Japan + East","UK South","Central India","Canada Central","West US 2","Australia Central","Australia + East","France Central","Korea Central","North Europe","Central US","East Asia","East + US 2","South Central US","North Central US","West US","UK West","South Africa + North","Brazil South"],"apiVersions":["2017-10-01"],"capabilities":"None"},{"resourceType":"workspaces/dataSources","locations":["East + US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan + East","UK South","Central India","Canada Central","West US 2","Australia Central","Australia + East","France Central","Korea Central","North Europe","Central US","East Asia","East + US 2","South Central US","North Central US","West US","UK West","South Africa + North","Brazil South"],"apiVersions":["2015-11-01-preview"],"capabilities":"None"},{"resourceType":"storageInsightConfigs","locations":[],"apiVersions":["2014-10-10"],"capabilities":"None"},{"resourceType":"workspaces/linkedServices","locations":["East + US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan + East","UK South","Central India","Canada Central","West US 2","Australia Central","Australia + East","France Central","Korea Central","North Europe","Central US","East Asia","East + US 2","South Central US","North Central US","West US","UK West","South Africa + North","Brazil South"],"apiVersions":["2015-11-01-preview"],"capabilities":"None"},{"resourceType":"linkTargets","locations":["East + US"],"apiVersions":["2015-03-20"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2014-11-10"],"capabilities":"None"},{"resourceType":"devices","locations":[],"apiVersions":["2015-11-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Addons","namespace":"Microsoft.Addons","authorization":{"applicationId":"24d3987b-be4a-48e0-a3e7-11c186f39e41","roleDefinitionId":"8004BAAB-A4CB-4981-8571-F7E44D039D93"},"resourceTypes":[{"resourceType":"supportProviders","locations":["West + Central US","South Central US","East US","West Europe"],"apiVersions":["2018-03-01","2017-05-15"],"capabilities":"None"},{"resourceType":"operations","locations":["West + Central US","South Central US","East US","West Europe"],"apiVersions":["2018-03-01","2017-05-15"],"capabilities":"None"},{"resourceType":"operationResults","locations":["West + Central US","South Central US","East US","West Europe"],"apiVersions":["2018-03-01","2017-05-15"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ADHybridHealthService","namespace":"Microsoft.ADHybridHealthService","resourceTypes":[{"resourceType":"services","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"addsservices","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"configuration","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"agents","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"aadsupportcases","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"reports","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"servicehealthmetrics","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"logs","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"},{"resourceType":"anonymousapiusers","locations":["West + US"],"apiVersions":["2014-01-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AnalysisServices","namespace":"Microsoft.AnalysisServices","authorization":{"applicationId":"4ac7d521-0382-477b-b0f8-7e1d95f85ca2","roleDefinitionId":"490d5987-bcf6-4be6-b6b2-056a78cb693a"},"resourceTypes":[{"resourceType":"servers","locations":["West US","North Europe","South Central US","West Europe","West Central US","Southeast Asia","East US 2","North Central US","Brazil South","Canada Central","Australia Southeast","Japan East","UK South","West India","West US 2","Central US","East - US"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":[],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"]},{"resourceType":"locations/checkNameAvailability","locations":["West + US","Australia East","East US 2 EUAP"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"],"defaultApiVersion":"2017-08-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-08-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"],"defaultApiVersion":"2017-08-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-08-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West US","North Europe","South Central US","West Europe","West Central US","Southeast Asia","East US 2","North Central US","Brazil South","Canada Central","Australia Southeast","Japan East","UK South","West India","West US 2","Central US","East - US"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"]},{"resourceType":"locations/operationresults","locations":["West + US","Australia East","East US 2 EUAP"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"],"defaultApiVersion":"2017-08-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-08-01"}],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["West US","North Europe","South Central US","West Europe","West Central US","Southeast Asia","East US 2","North Central US","Brazil South","Canada Central","Australia Southeast","Japan East","UK South","West India","West US 2","Central US","East - US"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"]},{"resourceType":"locations/operationstatuses","locations":["West + US","Australia East","East US 2 EUAP"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"],"defaultApiVersion":"2017-08-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-08-01"}],"capabilities":"None"},{"resourceType":"locations/operationstatuses","locations":["West US","North Europe","South Central US","West Europe","West Central US","Southeast Asia","East US 2","North Central US","Brazil South","Canada Central","Australia Southeast","Japan East","UK South","West India","West US 2","Central US","East - US"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"]},{"resourceType":"operations","locations":["East - US 2","West Central US","West US 2"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureActiveDirectory","namespace":"Microsoft.AzureActiveDirectory","resourceTypes":[{"resourceType":"b2cDirectories","locations":["Global","United + US","Australia East","East US 2 EUAP"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"],"defaultApiVersion":"2017-08-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-08-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["East + US 2","West Central US","West US 2"],"apiVersions":["2017-08-01-beta","2017-08-01","2017-07-14","2016-05-16"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-08-01"}],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration","namespace":"Microsoft.AppConfiguration","resourceTypes":[{"resourceType":"configurationStores","locations":["West + Central US","Central US","West US","East US","West Europe","Southeast Asia","East + US 2 EUAP"],"apiVersions":["2019-02-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"configurationStores/eventGridFilters","locations":["West + Central US","Central US","West US","East US","West Europe","Southeast Asia","East + US 2 EUAP"],"apiVersions":["2019-02-01-preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["West + Central US","Central US","West US","East US","West Europe","Southeast Asia","East + US 2 EUAP"],"apiVersions":["2019-02-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["West + Central US","Central US","West US","East US","West Europe","Southeast Asia","East + US 2 EUAP"],"apiVersions":["2019-02-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationsStatus","locations":["West + Central US","Central US","West US","East US","West Europe","Southeast Asia","East + US 2 EUAP"],"apiVersions":["2019-02-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West + Central US","Central US","West US","East US","West Europe","Southeast Asia","East + US 2 EUAP"],"apiVersions":["2019-02-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Attestation","namespace":"Microsoft.Attestation","authorizations":[{"applicationId":"c61423b7-1d1f-430d-b444-0eee53298103","roleDefinitionId":"7299b0b1-11da-4858-8943-7db197005959"}],"resourceTypes":[{"resourceType":"attestationProviders","locations":["East + US"],"apiVersions":["2018-09-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US"],"apiVersions":["2018-09-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureActiveDirectory","namespace":"Microsoft.AzureActiveDirectory","resourceTypes":[{"resourceType":"b2cDirectories","locations":["Global","United States","Europe"],"apiVersions":["2017-01-30","2016-12-13-preview","2016-02-10-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["Global","United - States","Europe"],"apiVersions":["2017-01-30","2016-12-13-preview","2016-02-10-privatepreview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureStack","namespace":"Microsoft.AzureStack","resourceTypes":[{"resourceType":"operations","locations":["Global"],"apiVersions":["2017-06-01"]},{"resourceType":"registrations","locations":["West + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["Global","United + States","Europe"],"apiVersions":["2017-01-30","2016-12-13-preview","2016-02-10-privatepreview"],"capabilities":"None"},{"resourceType":"b2ctenants","locations":["Global","United + States","Europe"],"apiVersions":["2016-02-10-privatepreview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AzureStack","namespace":"Microsoft.AzureStack","resourceTypes":[{"resourceType":"operations","locations":["Global"],"apiVersions":["2017-06-01"],"capabilities":"None"},{"resourceType":"registrations","locations":["West Central US","Global"],"apiVersions":["2017-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"registrations/products","locations":["West - Central US","Global"],"apiVersions":["2017-06-01","2016-01-01"]},{"resourceType":"registrations/customerSubscriptions","locations":["West - Central US","Global"],"apiVersions":["2017-06-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BatchAI","namespace":"Microsoft.BatchAI","authorization":{"applicationId":"9fcb3732-5f52-4135-8c08-9d4bbaf203ea","roleDefinitionId":"703B89C7-CE2C-431B-BDD8-FA34E39AF696","managedByRoleDefinitionId":"90B8E153-EBFF-4073-A95F-4DAD56B14C78"},"resourceTypes":[{"resourceType":"clusters","locations":["East - US","West US 2","West Europe","East US 2","North Europe","Australia East"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"jobs","locations":["East - US","West US 2","West Europe","East US 2","North Europe","Australia East"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"fileservers","locations":["East - US","West US 2","West Europe","East US 2","North Europe","Australia East"],"apiVersions":["2018-03-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East - US","West US 2","West Europe","East US 2","North Europe","Australia East"],"apiVersions":["2018-03-01","2017-09-01-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2018-03-01","2017-09-01-preview"]},{"resourceType":"locations/operationresults","locations":["East - US","West US 2","West Europe","East US 2","North Europe","Australia East"],"apiVersions":["2018-03-01","2017-09-01-preview"]},{"resourceType":"locations/operationstatuses","locations":["East - US","West US 2","West Europe","East US 2","North Europe","Australia East"],"apiVersions":["2018-03-01","2017-09-01-preview"]},{"resourceType":"locations/usages","locations":["East - US","West US 2","West Europe","East US 2","North Europe","Australia East"],"apiVersions":["2018-03-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing","namespace":"Microsoft.Billing","authorizations":[{"applicationId":"80dbdb39-4f33-4799-8b6f-711b5e3e61b6","roleDefinitionId":"18d7d88d-d35e-4fb5-a5c3-7773c20a72d9"}],"resourceTypes":[{"resourceType":"BillingPeriods","locations":["Central - US"],"apiVersions":["2018-03-01-preview","2017-04-24-preview"]},{"resourceType":"Invoices","locations":["Central - US"],"apiVersions":["2018-03-01-preview","2017-04-24-preview","2017-02-27-preview"]},{"resourceType":"EnrollmentAccounts","locations":["Central - US"],"apiVersions":["2018-03-01-preview"]},{"resourceType":"operations","locations":["Central - US"],"apiVersions":["2018-03-01-preview","2017-04-24-preview","2017-02-27-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BizTalkServices","namespace":"Microsoft.BizTalkServices","resourceTypes":[{"resourceType":"BizTalk","locations":["East + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"registrations/products","locations":["West + Central US","Global"],"apiVersions":["2017-06-01","2016-01-01"],"capabilities":"None"},{"resourceType":"registrations/customerSubscriptions","locations":["West + Central US","Global"],"apiVersions":["2017-06-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Billing","namespace":"Microsoft.Billing","authorizations":[{"applicationId":"80dbdb39-4f33-4799-8b6f-711b5e3e61b6"}],"resourceTypes":[{"resourceType":"billingPeriods","locations":[],"apiVersions":["2018-03-01-preview","2017-04-24-preview"],"capabilities":"None"},{"resourceType":"invoices","locations":[],"apiVersions":["2018-11-01-preview","2018-03-01-preview","2017-04-24-preview","2017-02-27-preview"],"capabilities":"None"},{"resourceType":"enrollmentAccounts","locations":[],"apiVersions":["2018-03-01-preview"],"capabilities":"None"},{"resourceType":"BillingRoleDefinitions","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"BillingRoleAssignments","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"CreateBillingRoleAssignment","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"BillingPermissions","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview","2018-06-30","2018-05-31"],"capabilities":"None"},{"resourceType":"listBillingAccountsWithCreateProjectPermission","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"listBillingAccountsWithCreateInvoiceSectionPermission","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/projects","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/invoiceSections","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/elevate","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"BillingAccounts/createInvoiceSectionOperations","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"BillingAccounts/InvoiceSections/patchOperations","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"BillingAccounts/InvoiceSections/productMoveOperations","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"BillingAccounts/InvoiceSections/billingSubscriptionMoveOperations","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/listProjectsWithCreateSubscriptionPermission","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/listInvoiceSectionsWithCreateSubscriptionPermission","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"BillingAccounts/BillingProfiles/patchOperations","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"departments","locations":[],"apiVersions":["2018-06-30","2018-05-31"],"capabilities":"None"},{"resourceType":"billingAccounts/departments","locations":[],"apiVersions":["2018-06-30"],"capabilities":"None"},{"resourceType":"billingAccounts/enrollmentAccounts","locations":[],"apiVersions":["2018-06-30"],"capabilities":"None"},{"resourceType":"billingAccounts/eligibleOffers","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/paymentMethods","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/availableBalance","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoices","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/invoices","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/transactions","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/transactions","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/transactions","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingSubscriptions","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/billingSubscriptions","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/projects/billingSubscriptions","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/billingSubscriptions","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/operationResults","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/projects/operationResults","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/operationResults","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"OperationResults","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/operationStatus","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/projects/operationStatus","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/operationStatus","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"OperationStatus","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/projects/products","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/products","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/products/UpdateAutoRenew","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/products","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/products","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-11-01-preview","2018-06-30","2018-03-01-preview","2017-04-24-preview","2017-02-27-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/projects/initiateImportRequest","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/initiateImportRequest","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/initiateTransfer","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/projects/importRequests","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/importRequests","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/transfers","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"importRequests/acceptImportRequest","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"transfers/acceptTransfer","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"importRequests","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"transfers","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"importRequests/declineImportRequest","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"transfers/declineTransfer","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"usagePlans","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingProperty","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/policies","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/invoices/pricesheet","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/pricesheet","locations":[],"apiVersions":["2018-11-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/billingProfiles/pricesheetDownloadOperations","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/billingSubscriptions/transfer","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/products/transfer","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/invoiceSections/productTransfersResults","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"transfers/operationResults","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"transfers/operationStatus","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/agreements","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"billingAccounts/lineOfCredit","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BizTalkServices","namespace":"Microsoft.BizTalkServices","resourceTypes":[{"resourceType":"BizTalk","locations":["East US","West US","North Europe","West Europe","Southeast Asia","East Asia","North Central US","Japan West","Japan East","South Central US"],"apiVersions":["2014-04-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BotService","namespace":"Microsoft.BotService","authorization":{"applicationId":"f3723d34-6ff5-4ceb-a148-d99dcd2511fc","roleDefinitionId":"71213c26-43ed-41d8-9905-3c12971517a3"},"resourceTypes":[{"resourceType":"botServices","locations":["Global"],"apiVersions":["2017-12-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"}],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkNameAvailability","locations":["Global"],"apiVersions":["2017-12-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"}]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity","namespace":"Microsoft.Capacity","authorization":{"applicationId":"4d0ad6c7-f6c3-46d8-ab0d-1406d5e6c86b","roleDefinitionId":"FD9C0A9A-4DB9-4F41-8A61-98385DEB6E2D"},"resourceTypes":[{"resourceType":"resources","locations":["South - Central US"],"apiVersions":["2017-11-01"]},{"resourceType":"reservationOrders","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservationOrders/reservations","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservations","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservationOrders/reservations/revisions","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"catalogs","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"appliedReservations","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"checkOffers","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"checkScopes","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"calculatePrice","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservationOrders/calculateRefund","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservationOrders/return","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservationOrders/split","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservationOrders/merge","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"validateReservationOrder","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]},{"resourceType":"reservationOrders/availableScopes","locations":[],"apiVersions":["2017-11-01-beta","2017-11-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn","namespace":"Microsoft.Cdn","resourceTypes":[{"resourceType":"profiles","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"profiles/endpoints/origins","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"profiles/endpoints/customdomains","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US","Central US EUAP"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/originresults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"operationresults/profileresults/endpointresults/customdomainresults","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkNameAvailability","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"checkResourceUsage","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02"]},{"resourceType":"validateProbe","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02"]},{"resourceType":"operations","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]},{"resourceType":"edgenodes","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","North Central US","North Europe","South Central US","South India","Southeast - Asia","West Europe","West India","West US","West Central US"],"apiVersions":["2017-10-12","2017-04-02","2016-10-02","2016-04-02","2015-06-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CertificateRegistration","namespace":"Microsoft.CertificateRegistration","authorization":{"applicationId":"f3c21649-0979-4721-ac85-b0216b2cf413","roleDefinitionId":"933fba7e-2ed3-4da8-973d-8bd8298a9b40"},"resourceTypes":[{"resourceType":"certificateOrders","locations":["global"],"apiVersions":["2015-08-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"certificateOrders/certificates","locations":["global"],"apiVersions":["2015-08-01"]},{"resourceType":"validateCertificateRegistrationInformation","locations":["global"],"apiVersions":["2015-08-01"]},{"resourceType":"operations","locations":["global"],"apiVersions":["2015-08-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicSubscription","namespace":"Microsoft.ClassicSubscription","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2017-09-01","2017-06-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicInfrastructureMigrate","namespace":"Microsoft.ClassicInfrastructureMigrate","authorization":{"applicationId":"5e5abe2b-83cd-4786-826a-a05653ebb103","roleDefinitionId":"766c4d9b-ef83-4f73-8352-1450a506a69b"},"resourceTypes":[{"resourceType":"classicInfrastructureResources","locations":["East + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blockchain","namespace":"Microsoft.Blockchain","authorizations":[{"applicationId":"78827f38-7b69-4d5e-a627-d6fdd9c759a0","roleDefinitionId":"9c68eaf3-8315-4e5c-b857-641b16b21f8f"}],"resourceTypes":[{"resourceType":"blockchainMembers","locations":["East + US","Southeast Asia","West Europe","North Europe","West US 2","Japan East"],"apiVersions":["2018-06-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":["East + US","Southeast Asia","West Europe","North Europe","West US 2","Japan East"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/blockchainMemberOperationResults","locations":["East + US","Southeast Asia","West Europe","North Europe","West US 2","Japan East"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["East + US","Southeast Asia","West Europe","North Europe","West US 2","Japan East"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/listConsortiums","locations":["East + US","Southeast Asia","West Europe","North Europe","West US 2","Japan East"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US","Southeast Asia","West Europe","North Europe","West US 2","Japan East"],"apiVersions":["2018-06-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blueprint","namespace":"Microsoft.Blueprint","authorizations":[{"applicationId":"f71766dc-90d9-4b7d-bd9d-4499c4331c3f","roleDefinitionId":"cb180127-cf6d-4672-9e75-e29a487f9658"}],"resourceTypes":[{"resourceType":"blueprints","locations":[],"apiVersions":["2018-11-01-preview","2018-11-01-alpha","2017-11-11-preview","2017-11-11-alpha"],"capabilities":"None"},{"resourceType":"blueprints/artifacts","locations":[],"apiVersions":["2018-11-01-preview","2018-11-01-alpha","2017-11-11-preview","2017-11-11-alpha"],"capabilities":"None"},{"resourceType":"blueprints/versions","locations":[],"apiVersions":["2018-11-01-preview","2018-11-01-alpha","2017-11-11-preview","2017-11-11-alpha"],"capabilities":"None"},{"resourceType":"blueprints/versions/artifacts","locations":[],"apiVersions":["2018-11-01-preview","2018-11-01-alpha","2017-11-11-preview","2017-11-11-alpha"],"capabilities":"None"},{"resourceType":"blueprintAssignments","locations":[],"apiVersions":["2018-11-01-preview","2018-11-01-alpha","2017-11-11-preview","2017-11-11-alpha"],"capabilities":"SystemAssignedResourceIdentity"},{"resourceType":"blueprintAssignments/operations","locations":[],"apiVersions":["2017-11-11-preview","2017-11-11-alpha"],"capabilities":"None"},{"resourceType":"blueprintAssignments/assignmentOperations","locations":[],"apiVersions":["2018-11-01-preview","2018-11-01-alpha"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-11-01-preview","2018-11-01-alpha","2017-11-11-preview","2017-11-11-alpha"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.BotService","namespace":"Microsoft.BotService","authorization":{"applicationId":"f3723d34-6ff5-4ceb-a148-d99dcd2511fc","roleDefinitionId":"71213c26-43ed-41d8-9905-3c12971517a3"},"resourceTypes":[{"resourceType":"botServices","locations":["Global"],"apiVersions":["2018-07-12","2017-12-01"],"defaultApiVersion":"2017-12-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-12"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"botServices/channels","locations":["Global"],"apiVersions":["2018-07-12","2017-12-01"],"defaultApiVersion":"2017-12-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-12"}],"capabilities":"None"},{"resourceType":"botServices/connections","locations":["Global"],"apiVersions":["2018-07-12","2017-12-01"],"defaultApiVersion":"2017-12-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-12"}],"capabilities":"None"},{"resourceType":"listAuthServiceProviders","locations":["Global"],"apiVersions":["2018-07-12","2017-12-01"],"defaultApiVersion":"2017-12-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-12"}],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Global"],"apiVersions":["2018-07-12","2017-12-01"],"defaultApiVersion":"2017-12-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-12"}],"capabilities":"None"},{"resourceType":"operations","locations":["Global"],"apiVersions":["2018-07-12","2017-12-01"],"defaultApiVersion":"2017-12-01","apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2017-12-01"}],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity","namespace":"Microsoft.Capacity","authorization":{"applicationId":"4d0ad6c7-f6c3-46d8-ab0d-1406d5e6c86b","roleDefinitionId":"FD9C0A9A-4DB9-4F41-8A61-98385DEB6E2D"},"resourceTypes":[{"resourceType":"resources","locations":["South + Central US"],"apiVersions":["2019-04-01","2018-06-01","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders/reservations","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservations","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders/reservations/revisions","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"catalogs","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"appliedReservations","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"checkOffers","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"checkScopes","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"calculatePrice","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"calculateExchange","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01"],"capabilities":"None"},{"resourceType":"exchange","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01"],"capabilities":"None"},{"resourceType":"reservationOrders/calculateRefund","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders/return","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders/split","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders/merge","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders/swap","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01"],"capabilities":"None"},{"resourceType":"validateReservationOrder","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"reservationOrders/availableScopes","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01","2017-11-01-beta","2017-11-01"],"capabilities":"None"},{"resourceType":"commercialReservationOrders","locations":[],"apiVersions":["2019-04-01-beta","2019-04-01","2018-06-01-beta","2018-06-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CertificateRegistration","namespace":"Microsoft.CertificateRegistration","authorization":{"applicationId":"f3c21649-0979-4721-ac85-b0216b2cf413","roleDefinitionId":"933fba7e-2ed3-4da8-973d-8bd8298a9b40"},"resourceTypes":[{"resourceType":"certificateOrders","locations":["global"],"apiVersions":["2018-02-01","2015-08-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"certificateOrders/certificates","locations":["global"],"apiVersions":["2018-02-01","2015-08-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"validateCertificateRegistrationInformation","locations":["global"],"apiVersions":["2018-02-01","2015-08-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["global"],"apiVersions":["2018-02-01","2015-08-01"],"apiProfiles":[{"profileVersion":"2017-03-09-profile","apiVersion":"2018-02-01"},{"profileVersion":"2018-03-01-hybrid","apiVersion":"2018-02-01"},{"profileVersion":"2018-06-01-profile","apiVersion":"2018-02-01"}],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicSubscription","namespace":"Microsoft.ClassicSubscription","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2017-09-01","2017-06-01"],"defaultApiVersion":"2017-06-01","capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ClassicInfrastructureMigrate","namespace":"Microsoft.ClassicInfrastructureMigrate","authorization":{"applicationId":"5e5abe2b-83cd-4786-826a-a05653ebb103","roleDefinitionId":"766c4d9b-ef83-4f73-8352-1450a506a69b"},"resourceTypes":[{"resourceType":"classicInfrastructureResources","locations":["East Asia","Southeast Asia","East US","East US 2","West US","North Central US","South Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","Central India","West - India","South India"],"apiVersions":["2015-06-15"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Commerce","namespace":"Microsoft.Commerce","resourceTypes":[{"resourceType":"UsageAggregates","locations":[],"apiVersions":["2015-06-01-preview","2015-03-31"]},{"resourceType":"RateCard","locations":[],"apiVersions":["2016-08-31-preview","2015-06-01-preview","2015-05-15"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-01-preview","2015-03-31"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption","namespace":"Microsoft.Consumption","resourceTypes":[{"resourceType":"ReservationRecommendations","locations":[],"apiVersions":["2018-03-31"]},{"resourceType":"ReservationSummaries","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"]},{"resourceType":"ReservationTransactions","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"]},{"resourceType":"Balances","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"]},{"resourceType":"Marketplaces","locations":[],"apiVersions":["2018-03-31","2018-01-31"]},{"resourceType":"Pricesheets","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"]},{"resourceType":"ReservationDetails","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"]},{"resourceType":"Budgets","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-12-30-preview"]},{"resourceType":"CostTags","locations":[],"apiVersions":["2018-03-31"]},{"resourceType":"Tags","locations":[],"apiVersions":["2018-03-31"]},{"resourceType":"Terms","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-12-30-preview"]},{"resourceType":"UsageDetails","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview","2017-04-24-preview"]},{"resourceType":"Operations","locations":[],"apiVersions":["2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview","2017-04-24-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContentModerator","namespace":"Microsoft.ContentModerator","resourceTypes":[{"resourceType":"applications","locations":["Central + India","South India","Canada Central","Canada East","West US 2","West Central + US","UK South","UK West","Korea Central","Korea South","France Central","France + South","Australia Central","Australia Central 2","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2015-06-15"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Commerce","namespace":"Microsoft.Commerce","resourceTypes":[{"resourceType":"UsageAggregates","locations":[],"apiVersions":["2015-06-01-preview","2015-03-31"],"capabilities":"None"},{"resourceType":"RateCard","locations":[],"apiVersions":["2016-08-31-preview","2015-06-01-preview","2015-05-15"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-01-preview","2015-03-31"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Consumption","namespace":"Microsoft.Consumption","authorizations":[{"applicationId":"c5b17a4f-cc6f-4649-9480-684280a2af3a","roleDefinitionId":"4a2e6ae9-2713-4cc9-a3b3-312899d687c3"}],"resourceTypes":[{"resourceType":"Forecasts","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-05-31"],"capabilities":"None"},{"resourceType":"AggregatedCost","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-06-30"],"capabilities":"None"},{"resourceType":"tenants","locations":[],"apiVersions":["2019-01-01","2018-10-01"],"capabilities":"None"},{"resourceType":"ReservationRecommendations","locations":[],"apiVersions":["2019-05-01","2019-01-01-preview","2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-03-31"],"capabilities":"None"},{"resourceType":"ReservationSummaries","locations":[],"apiVersions":["2019-05-01","2019-01-01-preview","2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"],"capabilities":"None"},{"resourceType":"ReservationTransactions","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-05-31","2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"],"capabilities":"None"},{"resourceType":"Balances","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-05-31","2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"],"capabilities":"None"},{"resourceType":"Marketplaces","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-05-31","2018-03-31","2018-01-31"],"capabilities":"None"},{"resourceType":"Pricesheets","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-05-31","2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"],"capabilities":"None"},{"resourceType":"ReservationDetails","locations":[],"apiVersions":["2019-05-01","2019-01-01-preview","2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview"],"capabilities":"None"},{"resourceType":"Budgets","locations":[],"apiVersions":["2019-03-01-preview","2019-01-01-preview","2019-01-01","2018-12-01-preview","2018-10-01","2018-08-31","2018-06-30","2018-03-31","2018-01-31","2017-12-30-preview"],"capabilities":"None"},{"resourceType":"CostTags","locations":[],"apiVersions":["2018-10-01","2018-08-31","2018-06-30","2018-05-31","2018-03-31"],"capabilities":"None"},{"resourceType":"Tags","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview","2019-01-01","2018-12-01-preview","2018-10-01","2018-08-31","2018-08-01-preview","2018-06-30","2018-05-31","2018-03-31"],"capabilities":"None"},{"resourceType":"Terms","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-06-30","2018-03-31","2018-01-31","2017-12-30-preview"],"capabilities":"None"},{"resourceType":"UsageDetails","locations":[],"apiVersions":["2019-04-01-preview","2019-01-01","2018-12-01-preview","2018-11-01-preview","2018-10-01","2018-08-31","2018-06-30","2018-05-31","2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview","2017-04-24-preview"],"capabilities":"None"},{"resourceType":"Charges","locations":[],"apiVersions":["2019-05-01-preview","2019-01-01","2018-11-01-preview","2018-10-01","2018-08-31"],"capabilities":"None"},{"resourceType":"credits","locations":[],"apiVersions":["2018-11-01-preview","2018-10-01","2018-08-31"],"capabilities":"None"},{"resourceType":"events","locations":[],"apiVersions":["2018-11-01-preview","2018-10-01","2018-08-31"],"capabilities":"None"},{"resourceType":"lots","locations":[],"apiVersions":["2018-11-01-preview","2018-10-01","2018-08-31"],"capabilities":"None"},{"resourceType":"products","locations":[],"apiVersions":["2018-10-01","2018-08-31"],"capabilities":"None"},{"resourceType":"OperationStatus","locations":[],"apiVersions":["2019-04-01-preview","2019-01-01","2018-11-01-preview","2018-10-01","2018-08-31"],"capabilities":"None"},{"resourceType":"OperationResults","locations":[],"apiVersions":["2019-04-01-preview","2019-01-01","2018-11-01-preview","2018-10-01","2018-08-31"],"capabilities":"None"},{"resourceType":"Operations","locations":[],"apiVersions":["2019-01-01","2018-11-01-preview","2018-10-01","2018-08-31","2018-06-30","2018-05-31","2018-03-31","2018-01-31","2017-11-30","2017-06-30-preview","2017-04-24-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContentModerator","namespace":"Microsoft.ContentModerator","resourceTypes":[{"resourceType":"applications","locations":["Central US"],"apiVersions":["2016-04-08"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":[],"apiVersions":["2016-04-08"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-04-08"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-04-08"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CustomerInsights","namespace":"Microsoft.CustomerInsights","authorization":{"applicationId":"38c77d00-5fcb-4cce-9d93-af4738258e3c","roleDefinitionId":"E006F9C7-F333-477C-8AD6-1F3A9FE87F55"},"resourceTypes":[{"resourceType":"hubs","locations":["East + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-04-08"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-04-08"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-04-08"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement","namespace":"Microsoft.CostManagement","authorizations":[{"applicationId":"3184af01-7a88-49e0-8b55-8ecdce0aa950"}],"resourceTypes":[{"resourceType":"Connectors","locations":["West + US"],"apiVersions":["2018-08-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"CloudConnectors","locations":[],"apiVersions":["2019-03-01-preview"],"capabilities":"None"},{"resourceType":"ExternalBillingAccounts","locations":[],"apiVersions":["2019-03-01-preview"],"capabilities":"None"},{"resourceType":"ExternalBillingAccounts/Dimensions","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview"],"capabilities":"None"},{"resourceType":"ExternalBillingAccounts/Query","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview"],"capabilities":"None"},{"resourceType":"ExternalSubscriptions/Dimensions","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview"],"capabilities":"None"},{"resourceType":"ExternalSubscriptions/Query","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview"],"capabilities":"None"},{"resourceType":"ExternalSubscriptions","locations":[],"apiVersions":["2019-03-01-preview"],"capabilities":"None"},{"resourceType":"Forecast","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview","2018-12-01-preview"],"capabilities":"None"},{"resourceType":"ExternalSubscriptions/Forecast","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview","2018-12-01-preview"],"capabilities":"None"},{"resourceType":"ExternalBillingAccounts/Forecast","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview","2018-12-01-preview"],"capabilities":"None"},{"resourceType":"Settings","locations":[],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-01-01","2018-10-01","2018-08-31","2018-08-01-preview","2017-10-01-preview"],"capabilities":"None"},{"resourceType":"register","locations":[],"apiVersions":["2019-03-01-preview","2017-10-01-preview"],"capabilities":"None"},{"resourceType":"Query","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview","2019-01-01","2018-12-01-preview","2018-10-01-preview","2018-08-31","2018-08-01-preview","2018-05-31"],"capabilities":"None"},{"resourceType":"Dimensions","locations":[],"apiVersions":["2019-04-01-preview","2019-03-01-preview","2019-01-01","2018-12-01-preview","2018-10-01-preview","2018-08-31","2018-08-01-preview","2018-05-31"],"capabilities":"None"},{"resourceType":"ExternalSubscriptions/Alerts","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"ExternalBillingAccounts/Alerts","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"Alerts","locations":[],"apiVersions":["2018-08-01-preview"],"capabilities":"None"},{"resourceType":"showbackRules","locations":[],"apiVersions":["2019-03-01-preview","2019-02-03-alpha","2019-02-02-alpha","2019-02-01-alpha"],"capabilities":"None"},{"resourceType":"Exports","locations":[],"apiVersions":["2019-01-01-preview","2019-01-01"],"capabilities":"None"},{"resourceType":"Reports","locations":[],"apiVersions":["2018-12-01-preview","2018-08-01-preview"],"capabilities":"None"},{"resourceType":"Reportconfigs","locations":[],"apiVersions":["2018-05-31"],"capabilities":"None"},{"resourceType":"BillingAccounts","locations":[],"apiVersions":["2018-03-31"],"capabilities":"None"},{"resourceType":"Departments","locations":[],"apiVersions":["2018-03-31"],"capabilities":"None"},{"resourceType":"EnrollmentAccounts","locations":[],"apiVersions":["2018-03-31"],"capabilities":"None"},{"resourceType":"Views","locations":[],"apiVersions":["2019-04-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CustomerInsights","namespace":"Microsoft.CustomerInsights","authorization":{"applicationId":"38c77d00-5fcb-4cce-9d93-af4738258e3c","roleDefinitionId":"E006F9C7-F333-477C-8AD6-1F3A9FE87F55"},"resourceTypes":[{"resourceType":"hubs","locations":["East US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"hubs/profiles","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/interactions","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/authorizationPolicies","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/connectors","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/connectors/mappings","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/kpi","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/views","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/links","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/roleAssignments","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/roles","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/widgetTypes","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"hubs/suggestTypeSchema","locations":["East - US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]},{"resourceType":"operations","locations":["East - US 2"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Databricks","namespace":"Microsoft.Databricks","authorizations":[{"applicationId":"d9327919-6775-4843-9037-3fb0fb0473cb","roleDefinitionId":"6cb99a0b-29a8-49bc-b57b-057acc68cd9a","managedByRoleDefinitionId":"8e3af657-a8ff-443c-a75c-2fe8c4bcb635"},{"applicationId":"2ff814a6-3304-4ab8-85cb-cd0e6f879c1d","roleDefinitionId":"6cb99a0b-29a8-49bc-b57b-057acc68cd9a","managedByRoleDefinitionId":"8e3af657-a8ff-443c-a75c-2fe8c4bcb635"}],"resourceTypes":[{"resourceType":"workspaces","locations":["West + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"hubs/profiles","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/interactions","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/authorizationPolicies","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/connectors","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/connectors/mappings","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/kpi","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/views","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/links","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/roleAssignments","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/roles","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/widgetTypes","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"hubs/suggestTypeSchema","locations":["East + US 2","North Europe","Central US"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US 2"],"apiVersions":["2017-07-01","2017-01-01","2016-01-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CustomerLockbox","namespace":"Microsoft.CustomerLockbox","authorizations":[{"applicationId":"a0551534-cfc9-4e1f-9a7a-65093b32bb38"},{"applicationId":"01fc33a7-78ba-4d2f-a4b7-768e336e890e"}],"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2018-02-28-preview"],"capabilities":"None"},{"resourceType":"requests","locations":[],"apiVersions":["2018-02-28-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CustomProviders","namespace":"Microsoft.CustomProviders","authorization":{"applicationId":"bf8eb16c-7ba7-4b47-86be-ac5e4b2007a5","roleDefinitionId":"FACF09C9-A5D0-4D34-8B1F-B623AC29C6F7"},"resourceTypes":[{"resourceType":"resourceProviders","locations":["Australia + East","East US","West Europe","East US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2018-09-01-preview"],"capabilities":"None"},{"resourceType":"associations","locations":["East + US 2 EUAP"],"apiVersions":["2018-09-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBox","namespace":"Microsoft.DataBox","authorizations":[{"applicationId":"5613cb5c-a7c9-4099-8034-511fd7616cb2","roleDefinitionId":"382D72D1-63DC-4243-9B99-CB69FDD473D8","managedByRoleDefinitionId":"f4c0a4f9-768c-4927-ab83-d319111d6ef4"},{"applicationId":"c9dbed16-85b2-456e-87b9-9bc0302918b3","roleDefinitionId":"f4c0a4f9-768c-4927-ab83-d319111d6ef4","managedByRoleDefinitionId":"382D72D1-63DC-4243-9B99-CB69FDD473D8"}],"resourceTypes":[{"resourceType":"jobs","locations":["West + US","West Europe","Southeast Asia","East Asia","South India","Brazil South","Australia + East","Canada Central","Korea Central","Japan East","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-01-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2018-01-01"],"capabilities":"None"},{"resourceType":"locations/validateAddress","locations":["West + US","West Europe","Southeast Asia","East Asia","South India","Brazil South","Australia + East","Canada Central","Korea Central","Japan East","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-01-01"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","West Europe","Southeast Asia","East Asia","South India","Brazil South","Australia + East","Canada Central","Korea Central","Japan East","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-01-01"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["West + US","West Europe","Southeast Asia","East Asia","South India","Brazil South","Australia + East","Canada Central","Korea Central","Japan East","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-01-01"],"capabilities":"None"},{"resourceType":"locations/availableSkus","locations":["West + US","West Europe","Southeast Asia","East Asia","South India","Brazil South","Australia + East","Canada Central","Korea Central","Japan East","East US 2 EUAP","Central + US EUAP"],"apiVersions":["2018-01-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBoxEdge","namespace":"Microsoft.DataBoxEdge","authorizations":[{"applicationId":"2368d027-f996-4edb-bf48-928f98f2ab8c"}],"resourceTypes":[{"resourceType":"DataBoxEdgeDevices","locations":["East + US","West Europe","Southeast Asia","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-07-01","2017-09-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"DataBoxEdgeDevices/checkNameAvailability","locations":["East + US","West Europe","Southeast Asia","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-03-01","2018-07-01","2017-09-01"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US 2 EUAP"],"apiVersions":["2019-03-01","2018-07-01","2017-09-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Databricks","namespace":"Microsoft.Databricks","authorizations":[{"applicationId":"d9327919-6775-4843-9037-3fb0fb0473cb","roleDefinitionId":"f31567d0-b61f-43c2-97a5-a98cdc3bfcb6","managedByRoleDefinitionId":"8e3af657-a8ff-443c-a75c-2fe8c4bcb635"},{"applicationId":"2ff814a6-3304-4ab8-85cb-cd0e6f879c1d","roleDefinitionId":"f31567d0-b61f-43c2-97a5-a98cdc3bfcb6","managedByRoleDefinitionId":"8e3af657-a8ff-443c-a75c-2fe8c4bcb635"}],"resourceTypes":[{"resourceType":"workspaces","locations":["West US","East US 2","West Europe","East US","North Europe","Southeast Asia","East - Asia","South Central US","North Central US","West US 2","Central US"],"apiVersions":["2018-04-01","2017-09-01-preview"],"capabilities":"None"},{"resourceType":"workspaces/virtualNetworkPeerings","locations":["West + Asia","South Central US","North Central US","West US 2","Central US","UK West","UK + South","Australia East","Australia Southeast","Australia Central","Australia + Central 2","Japan East","Japan West","Canada Central","Canada East","Central + India","South India","West India"],"apiVersions":["2018-04-01","2017-09-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"workspaces/virtualNetworkPeerings","locations":["West + US","East US 2","West Europe","North Europe","East US","Southeast Asia","East + Asia","South Central US","North Central US","West US 2","Central US","UK West","UK + South","Australia East","Australia Southeast","Australia Central","Australia + Central 2","Japan East","Japan West","Canada Central","Canada East","Central + India","South India","West India"],"apiVersions":["2018-04-01"],"capabilities":"None"},{"resourceType":"operations","locations":["West US","East US 2","West Europe","North Europe","East US","Southeast Asia","East - Asia","South Central US","North Central US","West US 2","Central US"],"apiVersions":["2018-04-01"]},{"resourceType":"operations","locations":["West + Asia","South Central US","North Central US","Korea South","Korea Central","West + US 2","Central US","UK West","UK South","Australia East","Australia Southeast","Australia + Central","Australia Central 2","Japan East","Japan West","Canada Central","Canada + East","Central India","South India","West India"],"apiVersions":["2018-04-01"],"capabilities":"None"},{"resourceType":"locations","locations":["West US","East US 2","West Europe","North Europe","East US","Southeast Asia","East - Asia","South Central US","North Central US"],"apiVersions":["2018-04-01","2018-03-15","2018-03-01"]},{"resourceType":"locations","locations":["West - US","East US 2","West Europe","North Europe","East US","Southeast Asia"],"apiVersions":["2018-04-01","2018-03-15","2018-03-01","2017-09-01-preview","2017-08-01-preview","2016-09-01-preview"]},{"resourceType":"locations/operationstatuses","locations":["West + Asia","South Central US","North Central US","West US 2","Central US","UK West","UK + South","Australia East","Australia Southeast","Australia Central","Australia + Central 2","Japan East","Japan West","Canada Central","Canada East","Central + India","South India","West India","Korea Central","Korea South"],"apiVersions":["2018-04-01","2018-03-15","2018-03-01","2017-09-01-preview","2017-08-01-preview","2016-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationstatuses","locations":["West US","East US 2","West Europe","East US","North Europe","Southeast Asia","East - Asia","South Central US","North Central US","West US 2","Central US"],"apiVersions":["2018-04-01","2018-03-15","2018-03-01","2017-09-01-preview","2017-08-01-preview","2016-09-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataCatalog","namespace":"Microsoft.DataCatalog","resourceTypes":[{"resourceType":"catalogs","locations":["East + Asia","South Central US","North Central US","West US 2","Central US","UK West","UK + South","Australia East","Australia Southeast","Australia Central","Australia + Central 2","Japan East","Japan West","Canada Central","Canada East","Central + India","South India","West India"],"apiVersions":["2018-04-01","2018-03-15","2018-03-01","2017-09-01-preview","2017-08-01-preview","2016-09-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataCatalog","namespace":"Microsoft.DataCatalog","authorization":{"applicationId":"213f5f78-fb30-46c7-9e98-91c720a1c026"},"resourceTypes":[{"resourceType":"catalogs","locations":["East US","West US","Australia East","West Europe","North Europe","Southeast Asia","West Central US"],"apiVersions":["2016-03-30","2015-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"checkNameAvailability","locations":["West - Europe"],"apiVersions":["2016-03-30","2015-07-01-preview"]},{"resourceType":"operations","locations":["West - Europe"],"apiVersions":["2016-03-30","2015-07-01-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2016-03-30","2015-07-01-preview"]},{"resourceType":"locations/jobs","locations":["East + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"checkNameAvailability","locations":["West + Europe"],"apiVersions":["2018-12-01-preview","2016-03-30","2015-07-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West + Europe"],"apiVersions":["2018-12-01-preview","2016-03-30","2015-07-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2016-03-30","2015-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/jobs","locations":["East US","West US","Australia East","West Europe","North Europe","Southeast Asia","West - Central US"],"apiVersions":["2016-03-30","2015-07-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration","namespace":"Microsoft.DataMigration","authorization":{"applicationId":"a4bad4aa-bf02-4631-9f78-a64ffdba8150","roleDefinitionId":"b831a21d-db98-4760-89cb-bef871952df1","managedByRoleDefinitionId":"6256fb55-9e59-4018-a9e1-76b11c0a4c89"},"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"]},{"resourceType":"services","locations":["Brazil - South","West Europe","East US","Canada Central","West India","Central US","North - Europe","South Central US","Southeast Asia","West US"],"apiVersions":["2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"capabilities":"None"},{"resourceType":"services/projects","locations":["Brazil - South","West Europe","East US","Canada Central","West India","Central US","North - Europe","South Central US","Southeast Asia","West US"],"apiVersions":["2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["Brazil - South","West Europe","East US","Canada Central","West India","Central US","North - Europe","South Central US","Southeast Asia","West US"],"apiVersions":["2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"]},{"resourceType":"locations/operationStatuses","locations":["Brazil - South","West Europe","East US","Canada Central","West India","Central US","North - Europe","South Central US","Southeast Asia","West US"],"apiVersions":["2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"]},{"resourceType":"locations/checkNameAvailability","locations":["Brazil - South","West Europe","East US","Canada Central","West India","Central US","North - Europe","South Central US","Southeast Asia","West US"],"apiVersions":["2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"]},{"resourceType":"operations","locations":["Brazil - South","West Europe","East US","Canada Central","West India","Central US","North - Europe","South Central US","Southeast Asia","West US"],"apiVersions":["2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DomainRegistration","namespace":"Microsoft.DomainRegistration","authorization":{"applicationId":"ea2f600a-4980-45b7-89bf-d34da487bda1","roleDefinitionId":"54d7f2e3-5040-48a7-ae90-eebf629cfa0b"},"resourceTypes":[{"resourceType":"domains","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"domains/domainOwnershipIdentifiers","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"]},{"resourceType":"topLevelDomains","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"]},{"resourceType":"checkDomainAvailability","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"]},{"resourceType":"listDomainRecommendations","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"]},{"resourceType":"validateDomainRegistrationInformation","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"]},{"resourceType":"generateSsoRequest","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"]},{"resourceType":"operations","locations":["global"],"apiVersions":["2015-04-01","2015-02-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DynamicsLcs","namespace":"Microsoft.DynamicsLcs","resourceTypes":[{"resourceType":"lcsprojects","locations":["Brazil - South","East Asia","East US","Japan East","Japan West","North Central US","North - Europe","South Central US","West Europe","West US","Southeast Asia","Central - US","East US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North - Europe","Australia East","Australia Southeast"],"apiVersions":["2015-05-01-alpha","2015-04-01-alpha","2015-03-01-alpha","2015-02-01-privatepreview","2015-02-01-preview","2015-02-01-beta","2015-02-01-alpha"]},{"resourceType":"lcsprojects/connectors","locations":["Brazil - South","East Asia","East US","Japan East","Japan West","North Central US","North - Europe","South Central US","West Europe","West US","Southeast Asia","Central - US","East US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North - Europe","Australia East","Australia Southeast"],"apiVersions":["2015-05-01-alpha","2015-04-01-alpha","2015-03-01-alpha","2015-02-01-privatepreview","2015-02-01-preview","2015-02-01-beta","2015-02-01-alpha"]},{"resourceType":"lcsprojects/clouddeployments","locations":["Brazil - South","East Asia","East US","Japan East","Japan West","North Central US","North - Europe","South Central US","West Europe","West US","Southeast Asia","Central - US","East US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North - Europe","Australia East","Australia Southeast"],"apiVersions":["2015-05-01-alpha","2015-04-01-alpha","2015-03-01-alpha","2015-02-01-privatepreview","2015-02-01-preview","2015-02-01-beta","2015-02-01-alpha"]},{"resourceType":"operations","locations":["Brazil - South","East Asia","East US","Japan East","Japan West","North Central US","North - Europe","South Central US","West Europe","West US","Southeast Asia","Central - US","East US 2","MSFT West US","MSFT East US","MSFT East Asia","MSFT North - Europe","Australia East","Australia Southeast"],"apiVersions":["2015-02-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Features","namespace":"Microsoft.Features","resourceTypes":[{"resourceType":"features","locations":[],"apiVersions":["2015-12-01","2014-08-01-preview"]},{"resourceType":"providers","locations":[],"apiVersions":["2015-12-01","2014-08-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-12-01","2014-08-01-preview"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ImportExport","namespace":"Microsoft.ImportExport","authorization":{"applicationId":"7de4d5c5-5b32-4235-b8a9-33b34d6bcd2a","roleDefinitionId":"9f7aa6bb-9454-46b6-8c01-a4b0f33ca151"},"resourceTypes":[{"resourceType":"jobs","locations":["Australia + Central US"],"apiVersions":["2016-03-30","2015-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["East + US"],"apiVersions":["2018-12-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataMigration","namespace":"Microsoft.DataMigration","authorization":{"applicationId":"a4bad4aa-bf02-4631-9f78-a64ffdba8150","roleDefinitionId":"b831a21d-db98-4760-89cb-bef871952df1","managedByRoleDefinitionId":"6256fb55-9e59-4018-a9e1-76b11c0a4c89"},"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2018-07-15-preview","2018-04-19","2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"capabilities":"None"},{"resourceType":"services","locations":["Brazil + South","West Europe","Australia East","East US","East US 2","Canada Central","East + Asia","Central India","West India","Japan East","Korea South","North Central + US","Australia Southeast","Canada East","Central US","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","UK South","West US 2","France Central"],"apiVersions":["2018-07-15-preview","2018-04-19","2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"defaultApiVersion":"2018-07-15-preview","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"services/projects","locations":["Brazil + South","West Europe","Australia East","East US","East US 2","Canada Central","East + Asia","Central India","West India","Japan East","Korea South","North Central + US","Australia Southeast","Canada East","Central US","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","UK South","West US 2","France Central"],"apiVersions":["2018-07-15-preview","2018-04-19","2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"defaultApiVersion":"2018-07-15-preview","capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"locations/operationResults","locations":["Brazil + South","West Europe","Australia East","East US","East US 2","Canada Central","East + Asia","Central India","West India","Japan East","Korea South","North Central + US","Australia Southeast","Canada East","Central US","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","UK South","West US 2","France Central"],"apiVersions":["2018-07-15-preview","2018-04-19","2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["Brazil + South","West Europe","Australia East","East US","East US 2","Canada Central","East + Asia","Central India","West India","Japan East","Korea South","North Central + US","Australia Southeast","Canada East","Central US","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","UK South","West US 2","France Central"],"apiVersions":["2018-07-15-preview","2018-04-19","2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["Brazil + South","West Europe","Australia East","East US","East US 2","Canada Central","East + Asia","Central India","West India","Japan East","Korea South","North Central + US","Australia Southeast","Canada East","Central US","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","UK South","West US 2","France Central"],"apiVersions":["2018-07-15-preview","2018-04-19","2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"capabilities":"None"},{"resourceType":"operations","locations":["Brazil + South","West Europe","Australia East","East US","East US 2","Canada Central","East + Asia","Central India","West India","Japan East","Korea South","North Central + US","Australia Southeast","Canada East","Central US","South India","Japan + West","Korea Central","North Europe","South Central US","Southeast Asia","UK + West","West US","UK South","West US 2","France Central"],"apiVersions":["2018-07-15-preview","2018-04-19","2018-03-31-preview","2018-03-15-preview","2017-11-15-privatepreview","2017-11-15-preview","2017-04-15-privatepreview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare","namespace":"Microsoft.DataShare","authorization":{"applicationId":"799f1985-1517-4fe1-af2b-ba3d87d4996b","roleDefinitionId":"0146496b-e06f-439a-83be-49fac884edf5"},"resourceTypes":[{"resourceType":"listinvitations","locations":["East + US 2","East US","West US 2","West Europe","Central US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["East + US 2","Central US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"locations/rejectInvitation","locations":["East + US 2","East US","West US 2","West Europe","Central US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"locations/consumerInvitations","locations":["East + US 2","East US","West US 2","West Europe","Central US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"accounts/shares","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/shares/datasets","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/shares/synchronizationSettings","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/shares/invitations","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/sharesubscriptions","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/shares/providersharesubscriptions","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/sharesubscriptions/datasetmappings","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/sharesubscriptions/triggers","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"accounts/sharesubscriptions/consumerSourceDataSets","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["Central + US EUAP"],"apiVersions":["2018-11-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB","namespace":"Microsoft.DBforMariaDB","authorization":{"applicationId":"76cd24bf-a9fc-4344-b1dc-908275de6d6d","roleDefinitionId":"c13b7b9c-2ed1-4901-b8a8-16f35468da29"},"resourceTypes":[{"resourceType":"operations","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"servers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"servers/recoverableServers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central US","Central India","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK South","UK West","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"servers/virtualNetworkRules","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"locations","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"locations/azureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK South","UK West","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"locations/performanceTiers","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-preview","2018-06-01"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesAzureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01"],"capabilities":"None"},{"resourceType":"locations/securityAlertPoliciesOperationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01"],"capabilities":"None"},{"resourceType":"locations/recommendedActionSessionsAzureAsyncOperation","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"locations/recommendedActionSessionsOperationResults","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/topQueryStatistics","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/queryTexts","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","West Europe","UK + West","UK South","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/waitStatistics","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"},{"resourceType":"servers/advisors","locations":["Australia + Central","Australia Central 2","Australia East","Australia Southeast","Brazil + South","Canada Central","Canada East","Central India","Central US","East Asia","East + US 2","East US","France Central","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Africa North","South Africa + West","South Central US","South India","Southeast Asia","UK West","UK South","West + Europe","West India","West US","West US 2","East US 2 EUAP"],"apiVersions":["2018-06-01-privatepreview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevSpaces","namespace":"Microsoft.DevSpaces","resourceTypes":[{"resourceType":"controllers","locations":["East + US","Canada East","West Europe","Canada Central","Central US","West US 2","West + Central US","Southeast Asia","East US 2","North Europe","Australia East","UK + South","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-01-01-preview","2018-06-01-preview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"controllers/listConnectionDetails","locations":["East + US","Canada East","West Europe","Canada Central","Central US","West US 2","West + Central US","Southeast Asia","East US 2","North Europe","Australia East","UK + South","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-01-01-preview","2018-06-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US","Canada East","West Europe","Canada Central","Central US","West US 2","West + Central US","Southeast Asia","East US 2","North Europe","Australia East","UK + South","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-01-01-preview","2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["East + US","Canada East","West Europe","Canada Central","Central US","West US 2","West + Central US","Southeast Asia","East US 2","North Europe","Australia East","UK + South","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-01-01-preview","2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["East + US","Canada East","West Europe","Canada Central","Central US","West US 2","West + Central US","Southeast Asia","East US 2","North Europe","Australia East","UK + South","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-01-01-preview","2018-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkContainerHostMapping","locations":["East + US","Canada East","West Europe","Canada Central","Central US","West US 2","West + Central US","Southeast Asia","East US 2","North Europe","Australia East","UK + South","East US 2 EUAP"],"apiVersions":["2019-04-01","2019-01-01-preview","2018-06-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EnterpriseKnowledgeGraph","namespace":"Microsoft.EnterpriseKnowledgeGraph","authorizations":[{"applicationId":"2d7335d5-de37-4146-a8c7-eeb45818f348","roleDefinitionId":"413ada86-6aa5-4470-992a-7e965a5ecc1b"},{"applicationId":"df8484e9-6636-4a37-a7ad-3ebfe7924fad","roleDefinitionId":"413ada86-6aa5-4470-992a-7e965a5ecc1b"}],"resourceTypes":[{"resourceType":"services","locations":["East + Asia","Southeast Asia","East US","East US 2","West US 2","West US","North + Europe","West Europe"],"apiVersions":["2018-12-03"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["East + Asia","Southeast Asia","East US","East US 2","West US 2","West US","North + Europe","West Europe"],"apiVersions":["2018-12-03"],"capabilities":"None"},{"resourceType":"locations","locations":["East + Asia","Southeast Asia","East US","East US 2","West US 2","West US","North + Europe","West Europe"],"apiVersions":["2018-12-03"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["East + Asia","Southeast Asia","East US","East US 2","West US 2","West US","North + Europe","West Europe"],"apiVersions":["2018-12-03"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Features","namespace":"Microsoft.Features","resourceTypes":[{"resourceType":"features","locations":[],"apiVersions":["2015-12-01","2014-08-01-preview"],"capabilities":"None"},{"resourceType":"providers","locations":[],"apiVersions":["2015-12-01","2014-08-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-12-01","2014-08-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.GuestConfiguration","namespace":"Microsoft.GuestConfiguration","authorizations":[{"applicationId":"e935b4a5-8968-416d-8414-caed51c782a9","roleDefinitionId":"9c6ffa40-421e-4dc0-9739-76b0699a11de"}],"resourceTypes":[{"resourceType":"guestConfigurationAssignments","locations":[],"apiVersions":["2018-11-20","2018-06-30-preview","2018-01-20-preview"],"capabilities":"None"},{"resourceType":"software","locations":["East + US 2","South Central US"],"apiVersions":["2018-06-30-preview"],"capabilities":"None"},{"resourceType":"softwareUpdates","locations":["East + US 2","South Central US"],"apiVersions":["2018-06-30-preview"],"capabilities":"None"},{"resourceType":"softwareUpdateProfile","locations":["East + US 2","South Central US"],"apiVersions":["2018-06-30-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-11-20","2018-06-30-preview","2018-01-20-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HanaOnAzure","namespace":"Microsoft.HanaOnAzure","authorization":{"applicationId":"cc5476ec-3074-44d1-8461-711f5d9b0e39","roleDefinitionId":"4a10987e-dbcf-4c3d-8e3d-7ddcd9c771c2","managedByRoleDefinitionId":"9e3af657-a8ff-583c-a75c-2fe7c4bcb635"},"resourceTypes":[{"resourceType":"hanaInstances","locations":["West + US","West US 2","East US","West Europe","North Europe","Japan East","Japan + West","Australia East","Australia Southeast"],"apiVersions":["2017-11-03-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/operationsStatus","locations":["West + US","West US 2","East US","West Europe","North Europe","Japan East","Japan + West","Australia East","Australia Southeast"],"apiVersions":["2017-11-03-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-11-03-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["West + US","West US 2","East US","West Europe","North Europe","Japan East","Japan + West","Australia East","Australia Southeast"],"apiVersions":["2017-11-03-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West + US","West US 2","East US","West Europe","North Europe","Japan East","Japan + West","Australia East","Australia Southeast"],"apiVersions":["2017-11-03-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HardwareSecurityModules","namespace":"Microsoft.HardwareSecurityModules","authorizations":[{"applicationId":"0eb690b7-d23e-4fb0-b43e-cd161ac80cc3","roleDefinitionId":"48397dc8-3910-486a-8165-ab2df987447f"}],"resourceTypes":[{"resourceType":"locations","locations":[],"apiVersions":["2018-10-31-preview","2018-10-31"],"defaultApiVersion":"2018-10-31","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis","namespace":"Microsoft.HealthcareApis","authorizations":[{"applicationId":"4f6778d8-5aef-43dc-a1ff-b073724b9495"}],"resourceTypes":[{"resourceType":"services","locations":["UK + West","North Central US","West US 2"],"apiVersions":["2018-08-20-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":["UK + West","North Central US","West US 2"],"apiVersions":["2018-08-20-preview"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["UK + West","North Central US","West US 2"],"apiVersions":["2018-08-20-preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["UK + West","North Central US","West US 2"],"apiVersions":["2018-08-20-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["UK + West","North Central US","West US 2"],"apiVersions":["2018-08-20-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridCompute","namespace":"Microsoft.HybridCompute","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2019-03-18-preview"],"defaultApiVersion":"2019-03-18-preview","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HybridData","namespace":"Microsoft.HybridData","authorization":{"applicationId":"621269cf-1195-44a3-a835-c613d103dd15","roleDefinitionId":"00320cd4-8823-47f2-bbe4-5c9da031311d"},"resourceTypes":[{"resourceType":"dataManagers","locations":["West + US","North Europe","West Europe","East US","West US 2","West Central US","Southeast + Asia","East US 2 EUAP","Central US EUAP"],"apiVersions":["2016-06-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-06-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ImportExport","namespace":"Microsoft.ImportExport","authorization":{"applicationId":"7de4d5c5-5b32-4235-b8a9-33b34d6bcd2a","roleDefinitionId":"9f7aa6bb-9454-46b6-8c01-a4b0f33ca151"},"resourceTypes":[{"resourceType":"jobs","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","Japan East","Japan West","Korea Central","North Central US","North Europe","South Central US","Southeast Asia","South India","UK South","UK West","West Central US","West Europe","West - India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":["Australia + India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"],"defaultApiVersion":"2016-11-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-11-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","Japan East","Japan West","Korea Central","North Central US","North Europe","South Central US","Southeast Asia","South India","UK South","UK West","West Central US","West Europe","West - India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"]},{"resourceType":"locations/operationResults","locations":["Australia + India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"],"defaultApiVersion":"2016-11-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-11-01"}],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","Japan East","Japan West","Korea Central","North Central US","North Europe","South Central US","Southeast Asia","South India","UK South","UK West","West Central US","West Europe","West - India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"]},{"resourceType":"operations","locations":["Australia + India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"],"defaultApiVersion":"2016-11-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-11-01"}],"capabilities":"None"},{"resourceType":"operations","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","Japan East","Japan West","Korea Central","North Central US","North Europe","South Central US","Southeast Asia","South India","UK South","UK West","West Central US","West Europe","West - India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral","namespace":"Microsoft.IoTCentral","resourceTypes":[{"resourceType":"IoTApps","locations":["West - Europe","West US","East US 2","North Europe","East US"],"apiVersions":["2017-07-01-privatepreview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":["West - Europe","West US","East US 2","North Europe","East US"],"apiVersions":["2017-07-01-privatepreview"]},{"resourceType":"operations","locations":["West - Europe","West US","East US 2","North Europe","East US"],"apiVersions":["2017-07-01-privatepreview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LabServices","namespace":"Microsoft.LabServices","authorization":{"applicationId":"1a14be2a-e903-4cec-99cf-b2e209259a0f","roleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525","managedByRoleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525"},"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2017-12-01-preview"]},{"resourceType":"users","locations":[],"apiVersions":["2017-12-01-preview","2017-12-01-alpha"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-12-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LocationBasedServices","namespace":"Microsoft.LocationBasedServices","resourceTypes":[{"resourceType":"accounts","locations":["Global"],"apiVersions":["2017-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":[],"apiVersions":["2017-01-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LogAnalytics","namespace":"Microsoft.LogAnalytics","authorizations":[{"applicationId":"ca7f3f0b-7d91-482c-8e09-c5d840d0eac5","roleDefinitionId":"5d5a2e56-9835-44aa-93db-d2f19e155438"}],"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningExperimentation","namespace":"Microsoft.MachineLearningExperimentation","authorization":{"applicationId":"0736f41a-0425-4b46-bdb5-1563eff02385","roleDefinitionId":"1cc297bc-1829-4524-941f-966373421033"},"resourceTypes":[{"resourceType":"accounts","locations":["Australia - East","East US 2","West Central US","Southeast Asia","West Europe","East US - 2 EUAP"],"apiVersions":["2017-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"accounts/workspaces","locations":["Australia - East","East US 2","West Central US","Southeast Asia","West Europe","East US - 2 EUAP"],"apiVersions":["2017-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"accounts/workspaces/projects","locations":["Australia - East","East US 2","West Central US","Southeast Asia","West Europe","East US - 2 EUAP"],"apiVersions":["2017-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"teamAccounts","locations":["Australia - East","West Central US","East US 2","East US 2 EUAP"],"apiVersions":["2017-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"teamAccounts/workspaces","locations":["Australia - East","West Central US","East US 2","East US 2 EUAP"],"apiVersions":["2017-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"teamAccounts/workspaces/projects","locations":["Australia - East","West Central US","East US 2","East US 2 EUAP"],"apiVersions":["2017-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute","namespace":"Microsoft.MachineLearningCompute","authorization":{"applicationId":"0736f41a-0425-4b46-bdb5-1563eff02385","roleDefinitionId":"376aa7d7-51a9-463d-bd4d-7e1691345612","managedByRoleDefinitionId":"91d00862-cf55-46a5-9dce-260bbd92ce25"},"resourceTypes":[{"resourceType":"operationalizationClusters","locations":["East + India","West US","West US 2"],"apiVersions":["2016-11-01","2016-07-01-preview"],"defaultApiVersion":"2016-11-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-11-01"}],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTCentral","namespace":"Microsoft.IoTCentral","authorizations":[{"applicationId":"9edfcdd9-0bc5-4bd4-b287-c3afc716aac7"}],"resourceTypes":[{"resourceType":"IoTApps","locations":["West + Europe","West US","East US 2","North Europe","East US","Central US","West + Central US"],"apiVersions":["2018-09-01","2017-07-01-privatepreview"],"defaultApiVersion":"2018-09-01","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-09-01","2017-07-01-privatepreview"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"checkSubdomainAvailability","locations":[],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-09-01","2017-07-01-privatepreview"],"defaultApiVersion":"2018-09-01","capabilities":"None"},{"resourceType":"appTemplates","locations":[],"apiVersions":["2018-09-01"],"defaultApiVersion":"2018-09-01","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.IoTSpaces","namespace":"Microsoft.IoTSpaces","authorizations":[{"applicationId":"0b07f429-9f4b-4714-9392-cc5e8e80c8b0"}],"resourceTypes":[{"resourceType":"checkNameAvailability","locations":["North + Europe","West Europe","Australia East","West US 2","East US"],"apiVersions":["2017-10-01-preview"],"defaultApiVersion":"2017-10-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"Graph","locations":["North + Europe","West Europe","Australia East","West US 2","East US"],"apiVersions":["2017-10-01-preview"],"defaultApiVersion":"2017-10-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2017-10-01-preview"],"defaultApiVersion":"2017-10-01-preview","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto","namespace":"Microsoft.Kusto","authorizations":[{"applicationId":"2746ea77-4702-4b45-80ca-3c97e680e8b7","roleDefinitionId":"dd9d4347-f397-45f2-b538-85f21c90037c"}],"resourceTypes":[{"resourceType":"clusters","locations":["Central + US","West Europe","North Europe","East US 2","West US","Southeast Asia","East + US","West US 2","South Central US","North Central US","East Asia","Japan East","Canada + Central","UK South","Australia East","Brazil South","Japan West","South India","Central + India","West India","Canada East","Korea Central","France Central","UK West","Korea + South","France South","Australia Southeast"],"apiVersions":["2019-01-21","2018-09-07-preview","2017-09-07-privatepreview"],"defaultApiVersion":"2019-01-21","zoneMappings":[{"location":"East + US 2","zones":["1","2","3"]},{"location":"Central US","zones":["1","2","3"]},{"location":"West + Europe","zones":["1","2","3"]},{"location":"France Central","zones":["1","2","3"]},{"location":"Southeast + Asia","zones":["1","2","3"]},{"location":"West US 2","zones":["1","2","3"]},{"location":"North + Europe","zones":["1","2","3"]},{"location":"East US","zones":["1","2","3"]},{"location":"UK + South","zones":["1","2","3"]},{"location":"Japan East","zones":["1","2","3"]},{"location":"Australia + East","zones":["1","2","3"]}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"clusters/databases","locations":["Central + US","West Europe","North Europe","East US 2","West US","Southeast Asia","East + US","West US 2","South Central US","North Central US","East Asia","Japan East","Canada + Central","UK South","Australia East","Brazil South","Japan West","South India","Central + India","West India","Canada East","Korea Central","France Central","UK West","Korea + South","France South","Australia Southeast"],"apiVersions":["2019-01-21","2018-09-07-preview","2017-09-07-privatepreview"],"defaultApiVersion":"2019-01-21","capabilities":"None"},{"resourceType":"clusters/databases/eventhubconnections","locations":["Central + US","West Europe","North Europe","East US 2","West US","Southeast Asia","East + US","West US 2","South Central US","North Central US","East Asia","Japan East","Canada + Central","UK South","Australia East","Brazil South","Japan West","South India","Central + India","West India","Canada East","Korea Central","France Central","UK West","Korea + South","France South","Australia Southeast"],"apiVersions":["2019-01-21","2018-09-07-preview","2017-09-07-privatepreview"],"defaultApiVersion":"2019-01-21","capabilities":"None"},{"resourceType":"clusters/databases/dataconnections","locations":["Central + US","West Europe","North Europe","East US 2","West US","Southeast Asia","East + US","West US 2","South Central US","North Central US","East Asia","Japan East","Canada + Central","UK South","Australia East","Brazil South","Japan West","South India","Central + India","West India","Canada East","Korea Central","France Central","UK West","Korea + South","France South","Australia Southeast"],"apiVersions":["2019-01-21","2018-09-07-preview","2017-09-07-privatepreview"],"defaultApiVersion":"2019-01-21","capabilities":"None"},{"resourceType":"locations/operationResults","locations":["Central + US","West Europe","North Europe","East US 2","West US","Southeast Asia","East + US","West US 2","South Central US","North Central US","East Asia","Japan East","Canada + Central","UK South","Australia East","Brazil South","Japan West","South India","Central + India","West India","Canada East","Korea Central","France Central","UK West","Korea + South","France South","Australia Southeast"],"apiVersions":["2019-01-21","2018-09-07-preview","2017-09-07-privatepreview"],"defaultApiVersion":"2019-01-21","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-01-21","2018-09-07-preview","2017-09-07-privatepreview"],"defaultApiVersion":"2019-01-21","capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["Central + US","West Europe","North Europe","East US 2","West US","Southeast Asia","East + US","West US 2","South Central US","North Central US","East Asia","Japan East","Canada + Central","UK South","Australia East","Brazil South","Japan West","South India","Central + India","West India","Canada East","Korea Central","France Central","UK West","Korea + South","France South","Australia Southeast"],"apiVersions":["2019-01-21","2018-09-07-preview"],"defaultApiVersion":"2019-01-21","capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-01-21","2018-09-07-preview","2017-09-07-privatepreview"],"defaultApiVersion":"2019-01-21","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.LabServices","namespace":"Microsoft.LabServices","authorization":{"applicationId":"1a14be2a-e903-4cec-99cf-b2e209259a0f","roleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525","managedByRoleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525"},"resourceTypes":[{"resourceType":"labaccounts","locations":["West + Central US","Japan East","West US","Australia Southeast","Canada Central","Central + India","Central US","East Asia","Korea Central","North Europe","South Central + US","UK West","West India","Australia East","Brazil South","Canada East","East + US","East US 2","France Central","Japan West","Korea South","North Central + US","South India","Southeast Asia","UK South","West Europe","West US 2","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2019-01-01-preview","2018-10-15","2017-12-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations/operations","locations":["West + Central US","Japan East","West US","Australia Southeast","Canada Central","Central + India","Central US","East Asia","Korea Central","North Europe","South Central + US","UK West","West India","Australia East","Brazil South","Canada East","East + US","East US 2","Japan West","Korea South","North Central US","South India","Southeast + Asia","UK South","West Europe","West US 2","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-01-01-preview","2018-10-15","2017-12-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-01-01-preview","2018-10-15","2017-12-01-preview"],"capabilities":"None"},{"resourceType":"users","locations":[],"apiVersions":["2019-01-01-preview","2019-01-01-beta","2019-01-01-alpha","2018-10-15","2017-12-01-preview","2017-12-01-beta","2017-12-01-alpha"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-01-01-preview","2018-10-15","2017-12-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningCompute","namespace":"Microsoft.MachineLearningCompute","authorization":{"applicationId":"0736f41a-0425-4b46-bdb5-1563eff02385","roleDefinitionId":"376aa7d7-51a9-463d-bd4d-7e1691345612","managedByRoleDefinitionId":"91d00862-cf55-46a5-9dce-260bbd92ce25"},"resourceTypes":[{"resourceType":"operationalizationClusters","locations":["East US 2","West Central US","Australia East","West Europe","Southeast Asia","East US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["East - US 2","East US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"]},{"resourceType":"locations","locations":["East - US 2","East US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"]},{"resourceType":"locations/operations","locations":["East + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["East + US 2","East US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["East + US 2","East US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["East US 2","West Central US","Australia East","West Europe","Southeast Asia","East - US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"]},{"resourceType":"locations/operationsStatus","locations":["East + US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationsStatus","locations":["East US 2","West Central US","Australia East","West Europe","Southeast Asia","East - US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningModelManagement","namespace":"Microsoft.MachineLearningModelManagement","resourceTypes":[{"resourceType":"accounts","locations":["East - US 2","West Central US","Australia East","West Europe","Southeast Asia","East - US 2 EUAP"],"apiVersions":["2017-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["West - Central US","East US 2 EUAP"],"apiVersions":["2017-09-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedLab","namespace":"Microsoft.ManagedLab","authorization":{"applicationId":"1a14be2a-e903-4cec-99cf-b2e209259a0f","roleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525","managedByRoleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525"},"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2017-12-01-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-12-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-01-01-preview"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-01-01-preview"]},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-01-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Marketplace","namespace":"Microsoft.Marketplace","resourceTypes":[{"resourceType":"privategalleryitems","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes/publishers","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes/publishers/offers","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes/publishers/offers/plans","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes/publishers/offers/plans/configs","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes/publishers/offers/plans/configs/importImage","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes/publishers/offers/plans/agreements","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-beta"]},{"resourceType":"offerTypes/listOffers","locations":[],"apiVersions":["2018-03-01-beta"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MarketplaceApps","namespace":"Microsoft.MarketplaceApps","resourceTypes":[{"resourceType":"classicDevServices","locations":["Northwest + US 2 EUAP"],"apiVersions":["2017-08-01-preview","2017-06-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices","namespace":"Microsoft.MachineLearningServices","authorizations":[{"applicationId":"0736f41a-0425-4b46-bdb5-1563eff02385","roleDefinitionId":"376aa7d7-51a9-463d-bd4d-7e1691345612","managedByRoleDefinitionId":"91d00862-cf55-46a5-9dce-260bbd92ce25"},{"applicationId":"9fcb3732-5f52-4135-8c08-9d4bbaf203ea","roleDefinitionId":"703B89C7-CE2C-431B-BDD8-FA34E39AF696","managedByRoleDefinitionId":"90B8E153-EBFF-4073-A95F-4DAD56B14C78"}],"resourceTypes":[{"resourceType":"workspaces","locations":["Canada + Central","UK South","East US","North Europe","Australia East","East US 2","West + US 2","West Central US","Southeast Asia","West Europe","South Central US","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-19","2018-03-01-preview"],"defaultApiVersion":"2018-03-01-preview","capabilities":"SystemAssignedResourceIdentity, + SupportsTags, SupportsLocation"},{"resourceType":"workspaces/computes","locations":["Canada + Central","UK South","East US","North Europe","Australia East","East US 2","West + US 2","West Central US","Southeast Asia","West Europe","South Central US","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-19","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US 2","East US 2 EUAP"],"apiVersions":["2018-11-19","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":["East + US 2","East US 2 EUAP"],"apiVersions":["2018-11-19","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/computeOperationsStatus","locations":["Canada + Central","UK South","East US","Australia East","East US 2","West US 2","West + Central US","Southeast Asia","West Europe","South Central US","North Europe","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-19","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/workspaceOperationsStatus","locations":["Canada + Central","UK South","East US","North Europe","Australia East","East US 2","West + US 2","West Central US","Southeast Asia","West Europe","South Central US","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-19","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/usages","locations":["Canada + Central","UK South","East US","North Europe","Australia East","East US 2","West + US 2","West Central US","Southeast Asia","West Europe","South Central US","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-19"],"capabilities":"None"},{"resourceType":"locations/vmsizes","locations":["Canada + Central","UK South","East US","North Europe","Australia East","East US 2","West + US 2","West Central US","Southeast Asia","West Europe","South Central US","East + US 2 EUAP","Central US EUAP"],"apiVersions":["2018-11-19"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ManagedLab","namespace":"Microsoft.ManagedLab","authorization":{"applicationId":"1a14be2a-e903-4cec-99cf-b2e209259a0f","roleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525","managedByRoleDefinitionId":"8f2de81a-b9aa-49d8-b24c-11814d3ab525"},"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2017-12-01-preview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-12-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Management","namespace":"Microsoft.Management","authorization":{"applicationId":"f2c304cf-8e7e-4c3f-8164-16299ad9d272","roleDefinitionId":"c1cf3708-588a-4647-be7f-f400bbe214cf"},"resourceTypes":[{"resourceType":"resources","locations":[],"apiVersions":["2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"managementGroups","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"getEntities","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operationResults","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta","2018-01-01-preview","2017-11-01-preview","2017-08-31-preview","2017-06-30-preview","2017-05-31-preview"],"capabilities":"None"},{"resourceType":"tenantBackfillStatus","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"},{"resourceType":"startTenantBackfill","locations":[],"apiVersions":["2018-03-01-preview","2018-03-01-beta"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maps","namespace":"Microsoft.Maps","authorizations":[{"applicationId":"608f6f31-fed0-4f7b-809f-90f6c9b3de78","roleDefinitionId":"3431F0E6-63BC-482D-A96E-0AB819610A5F"},{"applicationId":"ba1ea022-5807-41d5-bbeb-292c7e1cf5f6"}],"resourceTypes":[{"resourceType":"accounts","locations":["Global"],"apiVersions":["2018-05-01","2017-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"accounts/eventGridFilters","locations":[],"apiVersions":["2018-05-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-05-01","2017-01-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Marketplace","namespace":"Microsoft.Marketplace","resourceTypes":[{"resourceType":"privategalleryitems","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"products","locations":[],"apiVersions":["2018-08-01-beta"],"capabilities":"None"},{"resourceType":"offers","locations":[],"apiVersions":["2018-08-01-beta"],"capabilities":"None"},{"resourceType":"offerTypes","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"offerTypes/publishers","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"offerTypes/publishers/offers","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"offerTypes/publishers/offers/plans","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"offerTypes/publishers/offers/plans/configs","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"offerTypes/publishers/offers/plans/configs/importImage","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"offerTypes/publishers/offers/plans/agreements","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"listAvailableOffers","locations":[],"apiVersions":["2018-03-01-beta"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MarketplaceApps","namespace":"Microsoft.MarketplaceApps","resourceTypes":[{"resourceType":"classicDevServices","locations":["Northwest US","East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia East","Australia Southeast","South India","Central India","Canada Central","Canada - East"],"apiVersions":["2017-11-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2017-11-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2017-11-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MarketplaceOrdering","namespace":"Microsoft.MarketplaceOrdering","resourceTypes":[{"resourceType":"agreements","locations":["South - Central US","West US"],"apiVersions":["2015-06-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-01"]},{"resourceType":"offertypes","locations":["South - Central US","West US"],"apiVersions":["2015-06-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media","namespace":"Microsoft.Media","authorization":{"applicationId":"374b2a64-3b6b-436b-934c-b820eacca870","roleDefinitionId":"aab70789-0cec-44b5-95d7-84b64c9487af"},"resourceTypes":[{"resourceType":"mediaservices","locations":["Japan - West","Japan East","East Asia","Southeast Asia","West Europe","North Europe","East - US","West US","Australia East","Australia Southeast","Central US","Brazil - South","Central India","West India","South India","South Central US","Canada - Central","Canada East","West Central US","West US 2"],"apiVersions":["2015-10-01","2015-04-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":[],"apiVersions":["2018-03-30-preview","2018-02-05","2015-10-01","2015-04-01"]},{"resourceType":"checknameavailability","locations":[],"apiVersions":["2015-10-01","2015-04-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Migrate","namespace":"Microsoft.Migrate","resourceTypes":[{"resourceType":"projects","locations":["West - Central US","East US","East US 2 EUAP"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["West - Central US"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"]},{"resourceType":"locations","locations":[],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"]},{"resourceType":"locations/checkNameAvailability","locations":["West - Central US","East US","East US 2 EUAP"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"]},{"resourceType":"locations/assessmentOptions","locations":["East - US 2 EUAP"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationsManagement","namespace":"Microsoft.OperationsManagement","authorization":{"applicationId":"d2a0a418-0aac-4541-82b2-b3142c89da77","roleDefinitionId":"aa249101-6816-4966-aafa-08175d795f14"},"resourceTypes":[{"resourceType":"solutions","locations":["East - US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan - East","UK South","Central India","Canada Central"],"apiVersions":["2015-11-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"managementconfigurations","locations":["East - US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan - East","UK South","Central India","Canada Central"],"apiVersions":["2015-11-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"managementassociations","locations":[],"apiVersions":["2015-11-01-preview"]},{"resourceType":"views","locations":["East - US","West Europe","Southeast Asia","Australia Southeast","West Central US","Japan - East","UK South","Central India","Canada Central"],"apiVersions":["2017-08-21-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":[],"apiVersions":["2015-11-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PolicyInsights","namespace":"Microsoft.PolicyInsights","authorization":{"applicationId":"1d78a85d-813d-46f0-b496-dd72f50a3ec0","roleDefinitionId":"63d2b225-4c34-4641-8768-21a1f7c68ce8"},"resourceTypes":[{"resourceType":"policyEvents","locations":[],"apiVersions":["2018-04-04","2017-12-12-preview","2017-10-17-preview","2017-08-09-preview"]},{"resourceType":"policyStates","locations":[],"apiVersions":["2018-04-04","2017-12-12-preview","2017-10-17-preview","2017-08-09-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2018-04-04","2017-12-12-preview","2017-10-17-preview","2017-08-09-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PowerBI","namespace":"Microsoft.PowerBI","resourceTypes":[{"resourceType":"workspaceCollections","locations":["South + East"],"apiVersions":["2017-11-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2017-11-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2017-11-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2017-11-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MarketplaceOrdering","namespace":"Microsoft.MarketplaceOrdering","resourceTypes":[{"resourceType":"agreements","locations":["South + Central US","West US"],"apiVersions":["2015-06-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-01"],"capabilities":"None"},{"resourceType":"offertypes","locations":["South + Central US","West US"],"apiVersions":["2015-06-01"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Migrate","namespace":"Microsoft.Migrate","authorizations":[{"applicationId":"e3bfd6ac-eace-4438-9dc1-eed439e738de","roleDefinitionId":"e88f4159-1d71-4b12-8ef0-38c039cb051e"}],"resourceTypes":[{"resourceType":"projects","locations":["West + Central US","East US","West Europe","North Europe","Southeast Asia","East + Asia","East US 2 EUAP"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":["West Central + US"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + Central US","East US","West Europe","North Europe","Southeast Asia","East + Asia","East US 2 EUAP"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"],"capabilities":"None"},{"resourceType":"locations/assessmentOptions","locations":["West + Central US","East US","West Europe","North Europe","Southeast Asia","East + Asia","East US 2 EUAP"],"apiVersions":["2018-02-02","2017-11-11-preview","2017-09-25-privatepreview"],"capabilities":"None"},{"resourceType":"migrateprojects","locations":["Central + US EUAP"],"apiVersions":["2018-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"assessmentProjects","locations":["Central + US EUAP"],"apiVersions":["2019-05-01","2018-06-30-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MixedReality","namespace":"Microsoft.MixedReality","authorizations":[{"applicationId":"c7ddd9b4-5172-4e28-bd29-1e0792947d18","roleDefinitionId":"b67ee066-e058-4ddb-92bc-83cdd74bc38a"}],"resourceTypes":[{"resourceType":"locations/checkNameAvailability","locations":["East + US 2","East US 2 EUAP"],"apiVersions":["2019-12-02-preview","2019-02-28-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-12-02-preview","2019-02-28-preview"],"capabilities":"None"},{"resourceType":"spatialAnchorsAccounts","locations":["East + US 2","East US 2 EUAP"],"apiVersions":["2019-12-02-preview","2019-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2019-12-02-preview","2019-02-28-preview"],"capabilities":"None"},{"resourceType":"remoteRenderingAccounts","locations":["East + US 2 EUAP"],"apiVersions":["2019-12-02-preview","2019-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp","namespace":"Microsoft.NetApp","authorizations":[{"applicationId":"12fb057d-b751-47cd-857c-f2934bb677b4","roleDefinitionId":"e4796bef-6b6d-4cbc-ba1e-27f1a308d860"}],"resourceTypes":[{"resourceType":"operations","locations":["East + US","East US 2","North Europe","South Central US","West Central US","West + Europe","West US 2","West US (Stage)"],"apiVersions":["2019-05-01","2017-08-15"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OffAzure","namespace":"Microsoft.OffAzure","authorizations":[{"applicationId":"728a93e3-065d-4678-93b1-3cc281223341","roleDefinitionId":"b9967bf7-a345-4af8-95f0-49916f760fc6"}],"resourceTypes":[{"resourceType":"operations","locations":["Southeast + Asia"],"apiVersions":["2018-05-01-preview"],"capabilities":"None"},{"resourceType":"VMwareSites","locations":["Central + US EUAP"],"apiVersions":["2018-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"HyperVSites","locations":["Central + US EUAP"],"apiVersions":["2018-05-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Peering","namespace":"Microsoft.Peering","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2019-03-01-preview"],"defaultApiVersion":"2019-03-01-preview","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PowerBI","namespace":"Microsoft.PowerBI","resourceTypes":[{"resourceType":"workspaceCollections","locations":["South Central US","North Central US","East US 2","West US","West Europe","North Europe","Brazil South","Southeast Asia","Australia Southeast","Canada Central","Japan - East","UK South","West India"],"apiVersions":["2016-01-29"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":[],"apiVersions":["2016-01-29"]},{"resourceType":"locations/checkNameAvailability","locations":["South + East","UK South","West India"],"apiVersions":["2016-01-29"],"defaultApiVersion":"2016-01-29","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2016-01-29"],"defaultApiVersion":"2016-01-29","capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["South Central US","North Central US","East US 2","West US","West Europe","North Europe","Brazil South","Southeast Asia","Australia Southeast","Canada Central","Japan - East","UK South","West India"],"apiVersions":["2016-01-29"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PowerBIDedicated","namespace":"Microsoft.PowerBIDedicated","authorization":{"applicationId":"4ac7d521-0382-477b-b0f8-7e1d95f85ca2","roleDefinitionId":"490d5987-bcf6-4be6-b6b2-056a78cb693a"},"resourceTypes":[{"resourceType":"capacities","locations":["Australia - Southeast","Brazil South","Canada Central","East Asia","East US","East US - 2","West India","Japan East","West Central US","North Central US","North Europe","South - Central US","Southeast Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":[],"apiVersions":["2017-01-01-preview"]},{"resourceType":"locations/checkNameAvailability","locations":["Australia - Southeast","Brazil South","Canada Central","East Asia","East US","East US - 2","West India","Japan East","West Central US","North Central US","North Europe","South - Central US","Southeast Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"]},{"resourceType":"locations/operationresults","locations":["Australia - Southeast","Brazil South","Canada Central","East Asia","East US","East US - 2","West India","Japan East","West Central US","North Central US","North Europe","South - Central US","Southeast Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"]},{"resourceType":"locations/operationstatuses","locations":["Australia - Southeast","Brazil South","Canada Central","East Asia","East US","East US - 2","West India","Japan East","West Central US","North Central US","North Europe","South - Central US","Southeast Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"]},{"resourceType":"operations","locations":["East - US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay","namespace":"Microsoft.Relay","authorization":{"applicationId":"80369ed6-5f11-4dd9-bef3-692475845e77"},"resourceTypes":[{"resourceType":"namespaces","locations":["Australia + East","UK South","West India"],"apiVersions":["2016-01-29"],"defaultApiVersion":"2016-01-29","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.PowerBIDedicated","namespace":"Microsoft.PowerBIDedicated","authorization":{"applicationId":"4ac7d521-0382-477b-b0f8-7e1d95f85ca2","roleDefinitionId":"490d5987-bcf6-4be6-b6b2-056a78cb693a"},"resourceTypes":[{"resourceType":"capacities","locations":["Australia + Southeast","Brazil South","Canada Central","France Central","France South","Korea + Central","Korea South","Japan West","Canada East","UK West","Central US","Central + India","Australia East","East Asia","East US","East US 2","West India","Japan + East","West Central US","North Central US","North Europe","South Central US","Southeast + Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"],"defaultApiVersion":"2017-01-01-preview","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2017-01-01-preview"],"defaultApiVersion":"2017-01-01-preview","capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["Australia + Southeast","Brazil South","Canada Central","France Central","France South","Korea + Central","Korea South","Japan West","Canada East","UK West","Central US","Central + India","Australia East","East Asia","East US","East US 2","West India","Japan + East","West Central US","North Central US","North Europe","South Central US","Southeast + Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"],"defaultApiVersion":"2017-01-01-preview","capabilities":"None"},{"resourceType":"locations/operationresults","locations":["Australia + Southeast","Brazil South","Canada Central","France Central","France South","Korea + Central","Korea South","Japan West","Canada East","UK West","Central US","Central + India","Australia East","East Asia","East US","East US 2","West India","Japan + East","West Central US","North Central US","North Europe","South Central US","Southeast + Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"],"defaultApiVersion":"2017-01-01-preview","capabilities":"None"},{"resourceType":"locations/operationstatuses","locations":["Australia + Southeast","Brazil South","Canada Central","France Central","France South","Korea + Central","Korea South","Japan West","Canada East","UK West","Central US","Central + India","Australia East","East Asia","East US","East US 2","West India","Japan + East","West Central US","North Central US","North Europe","South Central US","Southeast + Asia","UK South","West Europe","West US","West US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"],"defaultApiVersion":"2017-01-01-preview","capabilities":"None"},{"resourceType":"operations","locations":["East + US 2"],"apiVersions":["2017-10-01","2017-01-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay","namespace":"Microsoft.Relay","authorization":{"applicationId":"80369ed6-5f11-4dd9-bef3-692475845e77"},"resourceTypes":[{"resourceType":"namespaces","locations":["Australia East","Australia Southeast","Central US","East US","East US 2","West US 2","West US","North Central US","South Central US","West Central US","East Asia","Southeast Asia","Brazil South","Japan East","Japan West","North Europe","West Europe","Central India","South India","West India","Canada Central","Canada East","UK West","UK - South","Korea Central","Korea South","France Central","Central US EUAP","East - US 2 EUAP"],"apiVersions":["2017-04-01","2016-07-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"namespaces/authorizationrules","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/hybridconnections","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/hybridconnections/authorizationrules","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/wcfrelays","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"]},{"resourceType":"namespaces/wcfrelays/authorizationrules","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"]},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2016-07-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2016-07-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources","namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"tenants","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"locations","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"checkPolicyCompliance","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"providers","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"checkresourcename","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"resources","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/resources","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/providers","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/operationresults","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"resourceGroups","locations":["Central + South","Korea Central","Korea South","France Central","South Africa North","Central + US EUAP","East US 2 EUAP"],"apiVersions":["2017-04-01","2016-07-01"],"defaultApiVersion":"2017-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"namespaces/authorizationrules","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"],"capabilities":"None"},{"resourceType":"namespaces/hybridconnections","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"],"capabilities":"None"},{"resourceType":"namespaces/hybridconnections/authorizationrules","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"],"capabilities":"None"},{"resourceType":"namespaces/wcfrelays","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"],"capabilities":"None"},{"resourceType":"namespaces/wcfrelays/authorizationrules","locations":[],"apiVersions":["2017-04-01","2016-07-01","2015-08-01","2014-09-01"],"capabilities":"None"},{"resourceType":"checkNameAvailability","locations":[],"apiVersions":["2017-04-01","2016-07-01"],"defaultApiVersion":"2017-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-04-01","2016-07-01"],"defaultApiVersion":"2017-04-01","apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-04-01"}],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ResourceGraph","namespace":"Microsoft.ResourceGraph","authorization":{"applicationId":"509e4652-da8d-478d-a730-e9d4a1996ca4","roleDefinitionId":"63d2b225-4c34-4641-8768-21a1f7c68ce8"},"resourceTypes":[{"resourceType":"resources","locations":["East + US"],"apiVersions":["2019-04-01","2018-09-01-preview"],"capabilities":"None"},{"resourceType":"resourcesHistory","locations":["East + US"],"apiVersions":["2018-09-01-preview"],"capabilities":"None"},{"resourceType":"resourceChanges","locations":["East + US"],"apiVersions":["2018-09-01-preview"],"capabilities":"None"},{"resourceType":"resourceChangeDetails","locations":["East + US"],"apiVersions":["2018-09-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US"],"apiVersions":["2019-04-01","2018-09-01-preview"],"capabilities":"None"},{"resourceType":"subscriptionsStatus","locations":["East + US"],"apiVersions":["2019-04-01","2018-09-01-preview"],"capabilities":"None"},{"resourceType":"queries","locations":["global"],"apiVersions":["2018-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources","namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"tenants","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"operationresults","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"notifyResourceJobs","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01"],"capabilities":"None"},{"resourceType":"tags","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01"],"capabilities":"None"},{"resourceType":"checkPolicyCompliance","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"capabilities":"None"},{"resourceType":"providers","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"checkresourcename","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"resources","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"subscriptions","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"subscriptions/resources","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"subscriptions/providers","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"subscriptions/operationresults","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"resourceGroups","locations":["Central US","East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia Southeast","Australia East","West India","South India","Central India","Canada Central","Canada - East","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/resourceGroups","locations":["Central + East","UK South","UK West","Korea Central","Korea South","France Central","South + Africa West","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"subscriptions/resourceGroups","locations":["Central US","East Asia","Southeast Asia","East US","East US 2","West US","West US 2","North Central US","South Central US","West Central US","North Europe","West Europe","Japan East","Japan West","Brazil South","Australia Southeast","Australia East","West India","South India","Central India","Canada Central","Canada - East","UK South","UK West","Korea Central","Korea South","France Central","East - US 2 EUAP","Central US EUAP"],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/resourcegroups/resources","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/locations","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/tagnames","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"subscriptions/tagNames/tagValues","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"deployments","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"deployments/operations","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"links","locations":[],"apiVersions":["2018-05-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityGraph","namespace":"Microsoft.SecurityGraph","resourceTypes":[{"resourceType":"operations","locations":["West - US"],"apiVersions":["2017-04-01-preview"]},{"resourceType":"diagnosticSettings","locations":[],"apiVersions":["2017-04-01-preview"]},{"resourceType":"diagnosticSettingsCategories","locations":[],"apiVersions":["2017-04-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric","namespace":"Microsoft.ServiceFabric","authorization":{"applicationId":"74cb6831-0dbb-4be1-8206-fd4df301cdc2","roleDefinitionId":"e55cc65f-6903-4917-b4ef-f8d4640b57f5"},"resourceTypes":[{"resourceType":"clusters","locations":["West + East","UK South","UK West","Korea Central","Korea South","France Central","South + Africa West","South Africa North","East US 2 EUAP","Central US EUAP"],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"SupportsTags"},{"resourceType":"subscriptions/resourcegroups/resources","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"subscriptions/locations","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"subscriptions/tagnames","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"subscriptions/tagNames/tagValues","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"deployments","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"deployments/operations","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"links","locations":[],"apiVersions":["2019-05-01","2019-04-01","2019-03-01","2018-11-01","2018-09-01","2018-08-01","2018-07-01","2018-05-01","2018-02-01","2018-01-01","2017-08-01","2017-06-01","2017-05-10","2017-05-01","2017-03-01","2016-09-01","2016-07-01","2016-06-01","2016-02-01","2015-11-01","2015-01-01","2014-04-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"},{"profileVersion":"2019-03-01-hybrid","apiVersion":"2018-05-01"}],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2015-01-01"}],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SaaS","namespace":"Microsoft.SaaS","authorization":{"applicationId":"f738ef14-47dc-4564-b53b-45069484ccc7","roleDefinitionId":"b131dd2d-387a-4cae-bb9b-3d021f80d1e6"},"resourceTypes":[{"resourceType":"applications","locations":["global"],"apiVersions":["2018-03-01-beta"],"capabilities":"CrossResourceGroupResourceMove, + SupportsTags, SupportsLocation"},{"resourceType":"checknameavailability","locations":["global"],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"checkModernEligibility","locations":["global"],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"saasresources","locations":["global"],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operationResults","locations":["global"],"apiVersions":["2018-03-01-beta"],"capabilities":"None"},{"resourceType":"operations","locations":["global"],"apiVersions":["2018-03-01-beta"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SecurityInsights","namespace":"Microsoft.SecurityInsights","authorizations":[{"applicationId":"98785600-1bb7-4fb9-b9fa-19afe2c8a360","roleDefinitionId":"ef1c46aa-ae81-4091-ab83-f75f28efb7b8"}],"resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"alertRules","locations":["West + Europe","North Europe","France Central","UK South"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"cases","locations":["West + Europe","North Europe","France Central","UK South"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"bookmarks","locations":["West + Europe","North Europe","France Central","UK South"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"dataConnectors","locations":["West + Europe","North Europe","France Central","UK South"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"officeConsents","locations":["West + Europe","North Europe","France Central","UK South"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"settings","locations":["West + Europe","North Europe","France Central","UK South"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"},{"resourceType":"aggregations","locations":["West + Europe","North Europe","France Central","UK South"],"apiVersions":["2019-01-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric","namespace":"Microsoft.ServiceFabric","authorization":{"applicationId":"74cb6831-0dbb-4be1-8206-fd4df301cdc2","roleDefinitionId":"e55cc65f-6903-4917-b4ef-f8d4640b57f5"},"resourceTypes":[{"resourceType":"clusters","locations":["West US","West US 2","West Central US","East US","East US 2","Central US","West Europe","North Europe","UK West","UK South","Australia East","Australia Southeast","North Central US","East Asia","Southeast Asia","Japan West","Japan East","South India","West India","Central India","Brazil South","South Central US","Korea - Central","Korea South","Canada Central","Canada East","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"clusters/applications","locations":["West + Central","Korea South","Canada Central","Canada East","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-01-preview","2018-02-01-privatepreview","2018-02-01","2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"clusters/applications","locations":["West US","West US 2","West Central US","East US","East US 2","Central US","West Europe","North Europe","UK West","UK South","Australia East","Australia Southeast","North Central US","East Asia","Southeast Asia","Japan West","Japan East","South India","West India","Central India","Brazil South","South Central US","Korea - Central","Korea South","Canada Central","Canada East","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview","2016-09-01","2016-03-01"]},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"]},{"resourceType":"locations/clusterVersions","locations":["West + Central","Korea South","Canada Central","Canada East","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-01-preview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"SystemAssignedResourceIdentity"},{"resourceType":"locations","locations":[],"apiVersions":["2019-03-01-preview","2018-02-01-privatepreview","2018-02-01","2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"None"},{"resourceType":"locations/clusterVersions","locations":["West US","West US 2","West Central US","East US","East US 2","Central US","West Europe","North Europe","UK West","UK South","Australia East","Australia Southeast","North Central US","East Asia","Southeast Asia","Japan West","Japan East","South India","West India","Central India","Brazil South","South Central US","Korea - Central","Korea South","Canada Central","Canada East","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"]},{"resourceType":"locations/environments","locations":["West + Central","Korea South","Canada Central","Canada East","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-01-preview","2018-02-01-privatepreview","2018-02-01","2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"None"},{"resourceType":"locations/environments","locations":["West US","West US 2","West Central US","East US","East US 2","Central US","West Europe","North Europe","UK West","UK South","Australia East","Australia Southeast","North Central US","East Asia","Southeast Asia","Japan West","Japan East","South India","West India","Central India","Brazil South","South Central US","Korea - Central","Korea South","Canada Central","Canada East","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"]},{"resourceType":"locations/operations","locations":["West + Central","Korea South","Canada Central","Canada East","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-01-preview","2018-02-01-privatepreview","2018-02-01","2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"None"},{"resourceType":"locations/operations","locations":["West US","West US 2","West Central US","East US","East US 2","Central US","West Europe","North Europe","UK West","UK South","Australia East","Australia Southeast","North Central US","East Asia","Southeast Asia","Japan West","Japan East","South India","West India","Central India","Brazil South","South Central US","Korea - Central","Korea South","Canada Central","Canada East","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"]},{"resourceType":"locations/operationResults","locations":["West + Central","Korea South","Canada Central","Canada East","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-01-preview","2018-02-01-privatepreview","2018-02-01","2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["West US","West US 2","West Central US","East US","East US 2","Central US","West Europe","North Europe","UK West","UK South","Australia East","Australia Southeast","North Central US","East Asia","Southeast Asia","Japan West","Japan East","South India","West India","Central India","Brazil South","South Central US","Korea - Central","Korea South","Canada Central","Canada East","France Central","Central - US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService","namespace":"Microsoft.SignalRService","resourceTypes":[{"resourceType":"operationResults","locations":["East - US","West US"],"apiVersions":["2018-03-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"operations","locations":["East - US"],"apiVersions":["2018-03-01-preview"]},{"resourceType":"checkNameAvailability","locations":["East - US"],"apiVersions":["2018-03-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.StorageSync","namespace":"Microsoft.StorageSync","authorizations":[{"applicationId":"9469b9f5-6722-4481-a2b2-14ed560b706f"}],"resourceTypes":[{"resourceType":"storageSyncServices","locations":["West - US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","East - US","Canada Central","Canada East","Central US","East US 2","UK South"],"apiVersions":["2017-06-05-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"storageSyncServices/syncGroups","locations":["West - US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","East - US","Canada Central","Canada East","Central US","East US 2","UK South"],"apiVersions":["2017-06-05-preview"]},{"resourceType":"storageSyncServices/syncGroups/cloudEndpoints","locations":["West - US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","East - US","Canada Central","Canada East","Central US","East US 2","UK South"],"apiVersions":["2017-06-05-preview"]},{"resourceType":"storageSyncServices/syncGroups/serverEndpoints","locations":["West - US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","East - US","Canada Central","Canada East","Central US","East US 2","UK South"],"apiVersions":["2017-06-05-preview"]},{"resourceType":"storageSyncServices/registeredServers","locations":["West - US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","East - US","Canada Central","Canada East","Central US","East US 2","UK South"],"apiVersions":["2017-06-05-preview"]},{"resourceType":"storageSyncServices/workflows","locations":["West - US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","East - US","Canada Central","Canada East","Central US","East US 2","UK South"],"apiVersions":["2017-06-05-preview"]},{"resourceType":"operations","locations":[],"apiVersions":["2017-06-05-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.StorSimple","namespace":"Microsoft.StorSimple","resourceTypes":[{"resourceType":"managers","locations":["West + Central","Korea South","Canada Central","Canada East","France Central","South + Africa North","Central US EUAP","East US 2 EUAP"],"apiVersions":["2019-03-01-preview","2018-02-01-privatepreview","2018-02-01","2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-02-01-privatepreview","2018-02-01","2017-07-01-privatepreview","2017-07-01-preview","2016-09-01","2016-03-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabricMesh","namespace":"Microsoft.ServiceFabricMesh","authorizations":[{"applicationId":"d10de03d-5ba3-497a-90e6-7ff8c9736059","roleDefinitionId":"BC13595A-E262-4621-929E-56FF90E6BF18"}],"resourceTypes":[{"resourceType":"applications","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"networks","locations":["East US","West + US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"volumes","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"secrets","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"gateways","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/applicationOperations","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/networkOperations","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/volumeOperations","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"None"},{"resourceType":"locations/gatewayOperations","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview"],"capabilities":"None"},{"resourceType":"locations/secretOperations","locations":["East + US","West US","West Europe","East Asia"],"apiVersions":["2018-09-01-preview","2018-07-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2018-09-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.SignalRService","namespace":"Microsoft.SignalRService","resourceTypes":[{"resourceType":"SignalR","locations":["East + US","West US","Southeast Asia","West Europe","West US 2","East US 2","North + Europe","Australia East","Canada East","Central US","Japan East","UK South","South + Central US","Central US EUAP"],"apiVersions":["2018-10-01","2018-03-01-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2018-10-01","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationResults","locations":["East + US","West US","Southeast Asia","West Europe","West US 2","East US 2","North + Europe","Australia East","Canada East","Central US","Japan East","UK South","South + Central US","Central US EUAP"],"apiVersions":["2018-10-01","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/operationStatuses","locations":["East + US","West US","Southeast Asia","West Europe","West US 2","East US 2","North + Europe","Australia East","Canada East","Central US","Japan East","UK South","South + Central US","Central US EUAP"],"apiVersions":["2018-10-01","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US","East US 2","West US","West US 2","Central US"],"apiVersions":["2018-10-01","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["East + US","West US","Southeast Asia","West Europe","West US 2","East US 2","North + Europe","Australia East","Canada East","Central US","Japan East","UK South","South + Central US","Central US EUAP"],"apiVersions":["2018-10-01","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"locations/usages","locations":["East + US","West US","Southeast Asia","West Europe","West US 2","East US 2","North + Europe","Australia East","Canada East","Central US","Japan East","UK South","South + Central US","Central US EUAP"],"apiVersions":["2018-10-01","2018-03-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.StorageSync","namespace":"Microsoft.StorageSync","authorizations":[{"applicationId":"9469b9f5-6722-4481-a2b2-14ed560b706f"}],"resourceTypes":[{"resourceType":"storageSyncServices","locations":["West + Central US","West US","West Europe","North Europe","Southeast Asia","East + Asia","Australia East","Australia Southeast","East US","Canada Central","Canada + East","Central US","East US 2","UK South","UK West","Central India","South + India","North Central US","South Central US","Brazil South","Japan East","Japan + West","West US 2","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02","2018-01-01-preview","2017-06-05-preview"],"defaultApiVersion":"2018-04-02","capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"storageSyncServices/syncGroups","locations":["West + Central US","West US","West Europe","North Europe","Southeast Asia","East + Asia","Australia East","Australia Southeast","East US","Canada Central","Canada + East","Central US","East US 2","UK South","UK West","Central India","South + India","North Central US","South Central US","Brazil South","Japan East","Japan + West","West US 2","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02","2018-01-01-preview","2017-06-05-preview"],"defaultApiVersion":"2017-06-05-preview","capabilities":"None"},{"resourceType":"storageSyncServices/syncGroups/cloudEndpoints","locations":["West + Central US","West US","West Europe","North Europe","Southeast Asia","East + Asia","Australia East","Australia Southeast","East US","Canada Central","Canada + East","Central US","East US 2","UK South","UK West","Central India","South + India","North Central US","South Central US","Brazil South","Japan East","Japan + West","West US 2","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02","2018-01-01-preview","2017-06-05-preview"],"defaultApiVersion":"2017-06-05-preview","capabilities":"None"},{"resourceType":"storageSyncServices/syncGroups/serverEndpoints","locations":["West + Central US","West US","West Europe","North Europe","Southeast Asia","East + Asia","Australia East","Australia Southeast","East US","Canada Central","Canada + East","Central US","East US 2","UK South","UK West","Central India","South + India","North Central US","South Central US","Brazil South","Japan East","Japan + West","West US 2","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02","2018-01-01-preview","2017-06-05-preview"],"defaultApiVersion":"2017-06-05-preview","capabilities":"None"},{"resourceType":"storageSyncServices/registeredServers","locations":["West + Central US","West US","West Europe","North Europe","Southeast Asia","East + Asia","Australia East","Australia Southeast","East US","Canada Central","Canada + East","Central US","East US 2","UK South","UK West","Central India","South + India","North Central US","South Central US","Brazil South","Japan East","Japan + West","West US 2","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02","2018-01-01-preview","2017-06-05-preview"],"defaultApiVersion":"2017-06-05-preview","capabilities":"None"},{"resourceType":"storageSyncServices/workflows","locations":["West + Central US","West US","West Europe","North Europe","Southeast Asia","East + Asia","Australia East","Australia Southeast","East US","Canada Central","Canada + East","Central US","East US 2","UK South","UK West","Central India","South + India","North Central US","South Central US","Brazil South","Japan East","Japan + West","West US 2","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02","2018-01-01-preview","2017-06-05-preview"],"defaultApiVersion":"2017-06-05-preview","capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02","2018-01-01-preview","2017-06-05-preview"],"defaultApiVersion":"2017-06-05-preview","capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02"],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","Australia + Southeast","East US","Canada Central","Canada East","Central US","East US + 2","UK South","UK West","Central India","South India","North Central US","South + Central US","Brazil South","Japan East","Japan West","West Central US","West + US 2","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02"],"defaultApiVersion":"2018-04-02","capabilities":"None"},{"resourceType":"locations/workflows","locations":["West + US","West Europe","North Europe","Southeast Asia","East Asia","Australia East","Australia + Southeast","East US","Canada Central","Canada East","Central US","East US + 2","UK South","UK West","Central India","South India","West Central US","West + US 2","North Central US","South Central US","Brazil South","Japan East","Japan + West","Korea Central","Korea South"],"apiVersions":["2019-03-01","2019-02-01","2018-10-01","2018-07-01","2018-04-02"],"defaultApiVersion":"2018-04-02","capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.StorSimple","namespace":"Microsoft.StorSimple","resourceTypes":[{"resourceType":"managers","locations":["West US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast Asia","West Central US","Japan East","Japan West","Australia East","Australia - Southeast","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-06-01","2017-05-15","2017-01-01","2016-10-01","2016-06-01","2015-03-15","2014-09-01"],"capabilities":"None"},{"resourceType":"operations","locations":["West - Central US","Southeast Asia"],"apiVersions":["2016-10-01","2016-06-01","2015-03-15","2014-09-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.StreamAnalytics","namespace":"Microsoft.StreamAnalytics","resourceTypes":[{"resourceType":"streamingjobs","locations":["Central - US","West Europe","East US 2","North Europe","Japan East","West US","Southeast - Asia","South Central US","East Asia","Japan West","North Central US","East - US","Australia East","Australia Southeast","Brazil South","Central India","West - Central US","UK South","UK West","Canada Central","Canada East","West US 2"],"apiVersions":["2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2015-03-01-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"locations","locations":["West - Europe","Central US","East US 2","North Europe","Japan East","West US","Southeast - Asia","South Central US","East Asia","Japan West","North Central US","East - US","Australia East","Australia Southeast","Brazil South","Central India","West - Central US","UK South","West US 2","UK West","Canada Central","Canada East"],"apiVersions":["2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2015-03-01-preview"]},{"resourceType":"locations/quotas","locations":[],"apiVersions":["2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2015-03-01-preview"]},{"resourceType":"streamingjobs/diagnosticSettings","locations":["East - US","East US 2","North Central US","North Europe","West Europe","Brazil South","Central - India","West Central US","UK South","UK West","Canada Central","Canada East","West - US 2","West US","Central US","South Central US","Japan East","Japan West","East - Asia","Southeast Asia","Australia East","Australia Southeast"],"apiVersions":["2014-04-01"]},{"resourceType":"streamingjobs/metricDefinitions","locations":["East - US","East US 2","North Central US","North Europe","West Europe","Brazil South","Central - India","West Central US","UK South","UK West","Canada Central","Canada East","West - US 2","West US","Central US","South Central US","Japan East","Japan West","East - Asia","Southeast Asia","Australia East","Australia Southeast"],"apiVersions":["2014-04-01"]},{"resourceType":"operations","locations":["West - Europe","West US","Central US","East US 2","North Europe","Japan East","Southeast - Asia","South Central US","East Asia","Japan West","North Central US","East - US","Australia East","Australia Southeast","Brazil South","Central India","West - Central US","UK South","UK West","Canada Central","Canada East","West US 2"],"apiVersions":["2017-04-01-preview","2016-03-01","2015-11-01","2015-10-01","2015-09-01","2015-08-01-preview","2015-06-01","2015-05-01","2015-04-01","2014-04-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Subscription","namespace":"Microsoft.Subscription","authorizations":[{"applicationId":"e3335adb-5ca0-40dc-b8d3-bedc094e523b","roleDefinitionId":"c8967224-f823-4f1b-809b-0110a008dd26"}],"resourceTypes":[{"resourceType":"SubscriptionDefinitions","locations":["West - US"],"apiVersions":["2017-11-01-preview"]},{"resourceType":"SubscriptionOperations","locations":["West - US"],"apiVersions":["2018-03-01-preview","2017-11-01-preview"]},{"resourceType":"CreateSubscription","locations":["Central - US"],"apiVersions":["2018-03-01-preview"]},{"resourceType":"operations","locations":["West - US"],"apiVersions":["2017-11-01-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.support","namespace":"microsoft.support","resourceTypes":[{"resourceType":"operations","locations":["North + Southeast","East US 2 EUAP","Central US EUAP"],"apiVersions":["2017-06-01","2017-05-15","2017-01-01","2016-10-01","2016-06-01","2015-03-15","2014-09-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":["West Central + US","Southeast Asia"],"apiVersions":["2016-10-01","2016-06-01","2015-03-15","2014-09-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Subscription","namespace":"Microsoft.Subscription","authorizations":[{"applicationId":"e3335adb-5ca0-40dc-b8d3-bedc094e523b"},{"applicationId":"5da7367f-09c8-493e-8fd4-638089cddec3"}],"resourceTypes":[{"resourceType":"SubscriptionDefinitions","locations":["West + US"],"apiVersions":["2017-11-01-preview"],"capabilities":"None"},{"resourceType":"SubscriptionOperations","locations":["West + US"],"apiVersions":["2018-11-01-preview","2018-03-01-preview","2017-11-01-preview"],"capabilities":"None"},{"resourceType":"CreateSubscription","locations":["Central + US"],"apiVersions":["2018-11-01-preview","2018-03-01-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["West + US"],"apiVersions":["2017-11-01-preview"],"capabilities":"None"},{"resourceType":"cancel","locations":["West + US"],"apiVersions":["2019-03-01-preview"],"capabilities":"None"},{"resourceType":"rename","locations":["West + US"],"apiVersions":["2019-03-01-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.support","namespace":"microsoft.support","authorizations":[{"applicationId":"959678cf-d004-4c22-82a6-d2ce549a58b8","roleDefinitionId":"81a3dd11-5123-4ec3-9485-772b0a27d1bd"}],"resourceTypes":[{"resourceType":"operations","locations":["North Central US","South Central US","Central US","West Europe","North Europe","West US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast - Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2015-07-01-Preview","2015-03-01"]},{"resourceType":"supporttickets","locations":["North + Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2019-05-01-preview","2015-07-01-Preview","2015-03-01"],"capabilities":"None"},{"resourceType":"services","locations":["North Central US","South Central US","Central US","West Europe","North Europe","West US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast - Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2015-07-01-Preview","2015-03-01"]}],"registrationState":"Registered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TimeSeriesInsights","namespace":"Microsoft.TimeSeriesInsights","authorizations":[{"applicationId":"120d688d-1518-4cf7-bd38-182f158850b6","roleDefinitionId":"5a43abdf-bb87-42c4-9e56-1c24bf364150"}],"resourceTypes":[{"resourceType":"environments","locations":["East - US","East US 2","North Europe","West Europe","West US"],"apiVersions":["2017-11-15","2017-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"environments/eventsources","locations":["East - US","East US 2","North Europe","West Europe","West US"],"apiVersions":["2017-11-15","2017-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"environments/referenceDataSets","locations":["East - US","East US 2","North Europe","West Europe","West US"],"apiVersions":["2017-11-15","2017-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, - CrossSubscriptionResourceMove"},{"resourceType":"environments/accessPolicies","locations":["East - US","East US 2","North Europe","West Europe","West US"],"apiVersions":["2017-11-15","2017-02-28-preview"]},{"resourceType":"operations","locations":["East - US","East US 2","North Europe","West Europe","West US"],"apiVersions":["2017-11-15","2017-02-28-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.WorkloadMonitor","namespace":"Microsoft.WorkloadMonitor","authorizations":[{"applicationId":"c4583fa2-767f-4008-9148-324598ac61bb","roleDefinitionId":"749f88d5-cbae-40b8-bcfc-e573ddc772fa"}],"resourceTypes":[{"resourceType":"operations","locations":["East - US"],"apiVersions":["2018-01-29-privatepreview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Myget.PackageManagement","namespace":"Myget.PackageManagement","resourceTypes":[{"resourceType":"services","locations":["West - Europe"],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/NewRelic.APM","namespace":"NewRelic.APM","authorization":{"allowedThirdPartyExtensions":[{"name":"NewRelic_AzurePortal_APM"}]},"resourceTypes":[{"resourceType":"accounts","locations":["North - Central US","South Central US","West US","East US","North Europe","West Europe","Southeast - Asia","East Asia","Japan East","Japan West"],"apiVersions":["2014-10-01","2014-04-01"],"capabilities":"None"}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/nuubit.nextgencdn","namespace":"nuubit.nextgencdn","resourceTypes":[{"resourceType":"accounts","locations":["East - US","East US 2","North Central US","South Central US","North Europe","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast","West US","Central US"],"apiVersions":["2017-05-05"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-05-05"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2017-05-05"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2017-05-05"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Paraleap.CloudMonix","namespace":"Paraleap.CloudMonix","resourceTypes":[{"resourceType":"services","locations":["West - US"],"apiVersions":["2016-08-10"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-10"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-10"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-10"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Pokitdok.Platform","namespace":"Pokitdok.Platform","resourceTypes":[{"resourceType":"services","locations":["West - US"],"apiVersions":["2016-05-17"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-05-17"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-05-17"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-05-17"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/RavenHq.Db","namespace":"RavenHq.Db","resourceTypes":[{"resourceType":"databases","locations":["East - US","North Europe","West Europe"],"apiVersions":["2016-07-18"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-07-18","2016-06-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-07-18","2016-06-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-07-18","2016-06-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Raygun.CrashReporting","namespace":"Raygun.CrashReporting","resourceTypes":[{"resourceType":"apps","locations":["East - US"],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/RedisLabs.Memcached","namespace":"RedisLabs.Memcached","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2016-07-10"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/RedisLabs.Redis","namespace":"RedisLabs.Redis","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2016-07-10"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/RevAPM.MobileCDN","namespace":"RevAPM.MobileCDN","resourceTypes":[{"resourceType":"accounts","locations":["Central - US","East US","East US 2","North Central US","South Central US","West US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast"],"apiVersions":["2016-08-29"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2017-05-24","2016-08-29"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-29"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-29"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Sendgrid.Email","namespace":"Sendgrid.Email","resourceTypes":[{"resourceType":"accounts","locations":["Australia - East","Australia Southeast","Brazil South","Canada Central","Canada East","Central - India","Central US","East Asia","East US","East US 2","Japan East","Japan - West","Korea Central","Korea South","North Central US","North Europe","South - Central US","South India","Southeast Asia","UK South","UK West","West Central - US","West Europe","West India","West US","West US 2"],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":["Australia + Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2019-05-01-preview"],"capabilities":"None"},{"resourceType":"services/problemclassifications","locations":["North + Central US","South Central US","Central US","West Europe","North Europe","West + US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast + Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2019-05-01-preview"],"capabilities":"None"},{"resourceType":"supporttickets","locations":["North + Central US","South Central US","Central US","West Europe","North Europe","West + US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast + Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2019-05-01-preview","2015-07-01-Preview","2015-03-01"],"capabilities":"None"},{"resourceType":"createsupportticket","locations":["North + Central US","South Central US","Central US","West Europe","North Europe","West + US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast + Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2019-05-01-preview"],"capabilities":"None"},{"resourceType":"operationresults","locations":["North + Central US","South Central US","Central US","West Europe","North Europe","West + US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast + Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2019-05-01-preview"],"capabilities":"None"},{"resourceType":"operationsstatus","locations":["North + Central US","South Central US","Central US","West Europe","North Europe","West + US","East US","East US 2","Japan East","Japan West","Brazil South","Southeast + Asia","East Asia","Australia East","Australia Southeast"],"apiVersions":["2019-05-01-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.TimeSeriesInsights","namespace":"Microsoft.TimeSeriesInsights","authorizations":[{"applicationId":"120d688d-1518-4cf7-bd38-182f158850b6","roleDefinitionId":"5a43abdf-bb87-42c4-9e56-1c24bf364150"}],"resourceTypes":[{"resourceType":"environments","locations":["East + US","East US 2","North Europe","West Europe","West US","West US 2","Central + US","Australia East","Australia Southeast"],"apiVersions":["2018-08-15-preview","2017-11-15","2017-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"environments/eventsources","locations":["East + US","East US 2","North Europe","West Europe","West US","West US 2","Central + US","Australia East","Australia Southeast"],"apiVersions":["2018-08-15-preview","2017-11-15","2017-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"environments/referenceDataSets","locations":["East + US","East US 2","North Europe","West Europe","West US","West US 2","Central + US","Australia East","Australia Southeast"],"apiVersions":["2018-08-15-preview","2017-11-15","2017-02-28-preview"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"environments/accessPolicies","locations":["East + US","East US 2","North Europe","West Europe","West US","West US 2","Central + US","Australia East","Australia Southeast"],"apiVersions":["2018-08-15-preview","2017-11-15","2017-02-28-preview"],"capabilities":"None"},{"resourceType":"operations","locations":["East + US","East US 2","North Europe","West Europe","West US","West US 2","Central + US","Australia East","Australia Southeast"],"apiVersions":["2018-08-15-preview","2017-11-15","2017-02-28-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.VMwareCloudSimple","namespace":"Microsoft.VMwareCloudSimple","authorizations":[{"allowedThirdPartyExtensions":[{"name":"CloudSimpleExtension"}]}],"resourceTypes":[{"resourceType":"virtualMachines","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"dedicatedCloudNodes","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"dedicatedCloudServices","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"},{"resourceType":"locations","locations":[],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"locations/usages","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"locations/availabilities","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"locations/privateClouds","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"locations/privateClouds/virtualNetworks","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"locations/privateClouds/virtualMachineTemplates","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"locations/privateClouds/resourcePools","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"locations/operationresults","locations":["East + US","West US"],"apiVersions":["2019-04-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2019-04-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.WindowsIoT","namespace":"Microsoft.WindowsIoT","resourceTypes":[{"resourceType":"DeviceServices","locations":["West + US"],"apiVersions":["2018-02-16-preview"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":["West + US"],"apiVersions":["2018-02-16-preview"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.WorkloadMonitor","namespace":"Microsoft.WorkloadMonitor","resourceTypes":[{"resourceType":"operations","locations":[],"apiVersions":["2018-08-31-preview"],"capabilities":"None"},{"resourceType":"componentsSummary","locations":[],"apiVersions":["2018-08-31-preview"],"capabilities":"None"},{"resourceType":"monitorInstancesSummary","locations":[],"apiVersions":["2018-08-31-preview"],"capabilities":"None"},{"resourceType":"monitorInstances","locations":[],"apiVersions":["2018-08-31-preview"],"capabilities":"None"},{"resourceType":"components","locations":[],"apiVersions":["2018-08-31-preview"],"capabilities":"None"},{"resourceType":"monitors","locations":[],"apiVersions":["2018-08-31-preview"],"capabilities":"None"},{"resourceType":"notificationSettings","locations":[],"apiVersions":["2018-08-31-preview"],"capabilities":"None"}],"registrationState":"Registered","registrationPolicy":"RegistrationFree"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Myget.PackageManagement","namespace":"Myget.PackageManagement","resourceTypes":[{"resourceType":"services","locations":["West + Europe"],"apiVersions":["2015-01-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Paraleap.CloudMonix","namespace":"Paraleap.CloudMonix","resourceTypes":[{"resourceType":"services","locations":["West + US"],"apiVersions":["2016-08-10"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-10"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-10"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-10"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Pokitdok.Platform","namespace":"Pokitdok.Platform","resourceTypes":[{"resourceType":"services","locations":["West + US"],"apiVersions":["2016-05-17"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-05-17"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-05-17"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-05-17"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/RavenHq.Db","namespace":"RavenHq.Db","resourceTypes":[{"resourceType":"databases","locations":["East + US","North Europe","West Europe"],"apiVersions":["2016-07-18"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-07-18"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-07-18"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-07-18"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Raygun.CrashReporting","namespace":"Raygun.CrashReporting","resourceTypes":[{"resourceType":"apps","locations":["East + US"],"apiVersions":["2015-01-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-01-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Sendgrid.Email","namespace":"Sendgrid.Email","resourceTypes":[{"resourceType":"accounts","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","Japan East","Japan West","Korea Central","Korea South","North Central US","North Europe","South Central US","South India","Southeast Asia","UK South","UK West","West Central - US","West Europe","West India","West US","West US 2"],"apiVersions":["2015-01-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Signiant.Flight","namespace":"Signiant.Flight","resourceTypes":[{"resourceType":"accounts","locations":["East - US","Central US","North Central US","South Central US","West US","North Europe","West - Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast"],"apiVersions":["2015-06-29"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-29"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-06-29"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-06-29"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Sparkpost.Basic","namespace":"Sparkpost.Basic","resourceTypes":[{"resourceType":"services","locations":["West - US"],"apiVersions":["2016-08-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/stackify.retrace","namespace":"stackify.retrace","resourceTypes":[{"resourceType":"services","locations":["West - US"],"apiVersions":["2016-01-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-01-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-01-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-01-01"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/U2uconsult.TheIdentityHub","namespace":"U2uconsult.TheIdentityHub","resourceTypes":[{"resourceType":"services","locations":["West - Europe"],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-15"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-06-15"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-06-15"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataBoxEdge","namespace":"Microsoft.DataBoxEdge","resourceTypes":[{"resourceType":"DataBoxEdgeDevices","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2017-09-01"],"capabilities":"None"},{"resourceType":"DataBoxEdgeDevices/checkNameAvailability","locations":["East - US 2 EUAP","Central US EUAP"],"apiVersions":["2017-09-01"]}],"registrationState":"NotRegistered"}]}'} - headers: - cache-control: [no-cache] - content-length: ['392178'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 23 Apr 2018 16:16:24 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27 - msrest_azure/0.4.22 resourcemanagementclient/2.0.0rc1 Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/84codes.CloudAMQP/register?api-version=2018-05-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/84codes.CloudAMQP","namespace":"84codes.CloudAMQP","resourceTypes":[{"resourceType":"servers","locations":["East - US 2","Central US","East US","North Central US","South Central US","West US","North - Europe","West Europe","East Asia","Southeast Asia","Japan East","Japan West","Australia - East","Australia Southeast"],"apiVersions":["2016-08-01"],"capabilities":"None"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-01"]},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-01"]},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-01"]}],"registrationState":"Registered"}'} + US","West Europe","West India","West US","West US 2"],"apiVersions":["2015-01-01"],"capabilities":"SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":["Australia East","Australia + Southeast","Brazil South","Canada Central","Canada East","Central India","Central + US","East Asia","East US","East US 2","Japan East","Japan West","Korea Central","Korea + South","North Central US","North Europe","South Central US","South India","Southeast + Asia","UK South","UK West","West Central US","West Europe","West India","West + US","West US 2"],"apiVersions":["2015-01-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Sparkpost.Basic","namespace":"Sparkpost.Basic","resourceTypes":[{"resourceType":"services","locations":["West + US"],"apiVersions":["2016-08-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-08-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-08-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-08-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/stackify.retrace","namespace":"stackify.retrace","resourceTypes":[{"resourceType":"services","locations":["West + US"],"apiVersions":["2016-01-01"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2016-01-01"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2016-01-01"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2016-01-01"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/U2uconsult.TheIdentityHub","namespace":"U2uconsult.TheIdentityHub","resourceTypes":[{"resourceType":"services","locations":["West + Europe"],"apiVersions":["2015-06-15"],"capabilities":"SupportsTags, SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"listCommunicationPreference","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"},{"resourceType":"updateCommunicationPreference","locations":[],"apiVersions":["2015-06-15"],"capabilities":"None"}],"registrationState":"NotRegistered","registrationPolicy":"RegistrationRequired"}]}'} headers: cache-control: [no-cache] - content-length: ['727'] + content-length: ['669484'] content-type: [application/json; charset=utf-8] - date: ['Mon, 23 Apr 2018 16:16:25 GMT'] + date: ['Thu, 13 Jun 2019 17:46:39 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} version: 1 diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resource_groups.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resource_groups.yaml index 1ba2818e0909..6541664cccbd 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resource_groups.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resource_groups.yaml @@ -7,23 +7,23 @@ interactions: Connection: [keep-alive] Content-Length: ['50'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","location":"westus","tags":{"tag1":"value1"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"tag1":"value1"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] - content-length: ['272'] + content-length: ['316'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:54 GMT'] + date: ['Fri, 31 May 2019 16:14:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -31,19 +31,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","location":"westus","tags":{"tag1":"value1"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"tag1":"value1"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] - content-length: ['272'] + content-length: ['316'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:54 GMT'] + date: ['Fri, 31 May 2019 16:14:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -56,18 +55,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:41:55 GMT'] + date: ['Fri, 31 May 2019 16:14:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -79,19 +77,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/unknowngroup?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/unknowngroup?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['104'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:55 GMT'] + date: ['Fri, 31 May 2019 16:14:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -104,19 +101,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups?api-version=2019-05-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar","name":"amar","location":"eastus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/antisch-amqp","name":"antisch-amqp","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg326oxnqqn33y3n42vz6x5xol5rvvw3z4o6tladwwtkmcntnsxhhxxtddtrxwm2edj","name":"clitest.rg326oxnqqn33y3n42vz6x5xol5rvvw3z4o6tladwwtkmcntnsxhhxxtddtrxwm2edj","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T20:07:28Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6xf4idvnxclgamrcp2ezv54qhk3doyffriwiegbm7ouxjbfmd2cj7izni3bhdv4wf","name":"clitest.rg6xf4idvnxclgamrcp2ezv54qhk3doyffriwiegbm7ouxjbfmd2cj7izni3bhdv4wf","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-05-15T02:09:45Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgd5ygu6mbq43qw57ncgznekmhwaqlrowjc6dggyk2h6cfwioigvtt3bg7ayqckcwvk","name":"clitest.rgd5ygu6mbq43qw57ncgznekmhwaqlrowjc6dggyk2h6cfwioigvtt3bg7ayqckcwvk","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T17:59:58Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgeblmtd6pv6car44ga6qwvicwjyuxydhhkaharam4nad6uekgqgm2uiisw7v4a3czx","name":"clitest.rgeblmtd6pv6car44ga6qwvicwjyuxydhhkaharam4nad6uekgqgm2uiisw7v4a3czx","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T22:26:43Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgeyg7p46zydk24opv23uowejjybhvp2nqcyqpnmknbs7o3w5c3tocuuygkogbvxz5f","name":"clitest.rgeyg7p46zydk24opv23uowejjybhvp2nqcyqpnmknbs7o3w5c3tocuuygkogbvxz5f","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-20T01:19:52Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgf3er5m4irbxsxhyil42jxq3t5ehzphmdzn2gortdlrzyw4i6tlgswx2xrcgldp6oh","name":"clitest.rgf3er5m4irbxsxhyil42jxq3t5ehzphmdzn2gortdlrzyw4i6tlgswx2xrcgldp6oh","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T19:20:15Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgjzhnckmw5ftoqmm2b5gezwgslvfm2dqg7ldpwvuukicy7ca4unquohsptfrbddr2a","name":"clitest.rgjzhnckmw5ftoqmm2b5gezwgslvfm2dqg7ldpwvuukicy7ca4unquohsptfrbddr2a","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-05-29T19:38:14Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgldagdmcl4pklmwzmr3wftx2kidhw7johz6d7tl6m7raetzzfhpqhrfffu5vwqtfxo","name":"clitest.rgldagdmcl4pklmwzmr3wftx2kidhw7johz6d7tl6m7raetzzfhpqhrfffu5vwqtfxo","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T17:51:10Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmr6jo34yofyafj3n6gjbhrgmrd6pwgguthc2u235qfle6y6ztyzrlkuqn544s7cop","name":"clitest.rgmr6jo34yofyafj3n6gjbhrgmrd6pwgguthc2u235qfle6y6ztyzrlkuqn544s7cop","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T20:14:03Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgnipcxreywyorqhptpg4lmvsb6sqsef3mezozbrenqq6ufmd3hrh7plmdnorjt5y5x","name":"clitest.rgnipcxreywyorqhptpg4lmvsb6sqsef3mezozbrenqq6ufmd3hrh7plmdnorjt5y5x","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-05-14T19:03:54Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgoo2qxqtbb56w7uujqzhodrozdh7fxg5wxscql4ndybxkardgqzqvheltadic2zoxf","name":"clitest.rgoo2qxqtbb56w7uujqzhodrozdh7fxg5wxscql4ndybxkardgqzqvheltadic2zoxf","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T20:34:21Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgpfhep77mmcmcn3afvnvskjk3g27ybc7gq6kh5c6vu7ugy7e3ykawkib6u7st25kbi","name":"clitest.rgpfhep77mmcmcn3afvnvskjk3g27ybc7gq6kh5c6vu7ugy7e3ykawkib6u7st25kbi","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-05-25T01:22:07Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgv6extdlzddtno2qf5o37e5g2n2d2x5ah4gq2olmpqezmxibj4h36focak4y6dose7","name":"clitest.rgv6extdlzddtno2qf5o37e5g2n2d2x5ah4gq2olmpqezmxibj4h36focak4y6dose7","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-05-25T01:20:18Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwxiadyatfxsixayqfinia7ybjwo5cfoyw65qpuna3alx3x2diwukx4tkcpwir2mbq","name":"clitest.rgwxiadyatfxsixayqfinia7ybjwo5cfoyw65qpuna3alx3x2diwukx4tkcpwir2mbq","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T17:57:21Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestlab1","name":"clitestlab1","location":"southcentralus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-westus","name":"cloud-shell-storage-westus","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SoutheastAsia","name":"Default-Storage-SoutheastAsia","location":"southeastasia","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS","name":"Default-Storage-WestUS","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-eventgridtesting","name":"lmazuel-eventgridtesting","location":"centralus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-logictest","name":"lmazuel-logictest","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture","name":"lmazuel-testcapture","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mcauto01","name":"mcauto01","location":"eastus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","location":"westus","tags":{"tag1":"value1"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxgroup","name":"wilxgroup","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxgroup2","name":"wilxgroup2","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxgroup3","name":"wilxgroup3","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc","name":"ygsrc","location":"westus","properties":{"provisioningState":"Succeeded"}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/-biubiubiu","name":"-biubiubiu","type":"Microsoft.Resources/resourceGroups","location":"centralus","tags":{},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aibmdi","name":"aibmdi","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/alexghi","name":"alexghi","type":"Microsoft.Resources/resourceGroups","location":"centralus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amae","name":"amae","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/antisch-amqp-tests","name":"antisch-amqp-tests","type":"Microsoft.Resources/resourceGroups","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/AzureBackupRG_westus_1","name":"AzureBackupRG_westus_1","type":"Microsoft.Resources/resourceGroups","location":"westus","managedBy":"subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice","name":"cleanupservice","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_migrationepijd2pzo2hps57yd4r6vmulpsjimep3c5pcvbex62eijsfudjz246","name":"cli_test_sb_migrationepijd2pzo2hps57yd4r6vmulpsjimep3c5pcvbex62eijsfudjz246","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-28T02:03:35Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_migrationezavmapri3syq6fmbjnot4nxuo6qv55ocgpwcv3bvp2d2xgspr5jmw","name":"cli_test_sb_migrationezavmapri3syq6fmbjnot4nxuo6qv55ocgpwcv3bvp2d2xgspr5jmw","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-28T01:09:04Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_migrationjxw52modxf32cnh3rhelmp3vm7kcsin55xi6mfr4akxksfhaxcl5iq","name":"cli_test_sb_migrationjxw52modxf32cnh3rhelmp3vm7kcsin55xi6mfr4akxksfhaxcl5iq","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-07-28T01:28:11Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest2ckzqyiozi","name":"clitest2ckzqyiozi","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T20:00:31Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest3hwlplp27a","name":"clitest3hwlplp27a","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T21:57:34Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest5g2ydn3pvz","name":"clitest5g2ydn3pvz","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T23:00:56Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest5maoimhjbl","name":"clitest5maoimhjbl","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T23:58:45Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg2f7wsdgvgsjbk3qe6jce2wxvwxj6nl7rwufdgngb573qx5xilnenqpz5shhp6oh2p","name":"clitest.rg2f7wsdgvgsjbk3qe6jce2wxvwxj6nl7rwufdgngb573qx5xilnenqpz5shhp6oh2p","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-08T23:47:15Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg326oxnqqn33y3n42vz6x5xol5rvvw3z4o6tladwwtkmcntnsxhhxxtddtrxwm2edj","name":"clitest.rg326oxnqqn33y3n42vz6x5xol5rvvw3z4o6tladwwtkmcntnsxhhxxtddtrxwm2edj","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T20:07:28Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg7f5jjgz2vniqujmnobv3ud4j3fhjsoao7bcimizgbjspg5nwlr72qugdtfgo7ovn6","name":"clitest.rg7f5jjgz2vniqujmnobv3ud4j3fhjsoao7bcimizgbjspg5nwlr72qugdtfgo7ovn6","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-16T17:18:07Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgdxgqgossxjqvg3knc4po4nhpezscthslqj554n5aufqy6llzobd35ex333rpwom4p","name":"clitest.rgdxgqgossxjqvg3knc4po4nhpezscthslqj554n5aufqy6llzobd35ex333rpwom4p","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-17T04:55:16Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgevdibpjptswoyyvgh3w6rylmk6aruigknvfz7yrhcv7tvgerwdyrgnxd3ilfmq6xb","name":"clitest.rgevdibpjptswoyyvgh3w6rylmk6aruigknvfz7yrhcv7tvgerwdyrgnxd3ilfmq6xb","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-14T22:04:22Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rggcbozcaoqcvyxyhsax7bevei6phf6m6yk2u4m3m2wjn7qqhph2c5dqyz2vrar2fz6","name":"clitest.rggcbozcaoqcvyxyhsax7bevei6phf6m6yk2u4m3m2wjn7qqhph2c5dqyz2vrar2fz6","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-16T00:22:56Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rglwtxxxotabpblyephsiknmarmfjl325ixoojyprquq6ehxx5b2wokoysglc4meehl","name":"clitest.rglwtxxxotabpblyephsiknmarmfjl325ixoojyprquq6ehxx5b2wokoysglc4meehl","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-09-12T19:25:52Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgmr6jo34yofyafj3n6gjbhrgmrd6pwgguthc2u235qfle6y6ztyzrlkuqn544s7cop","name":"clitest.rgmr6jo34yofyafj3n6gjbhrgmrd6pwgguthc2u235qfle6y6ztyzrlkuqn544s7cop","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2018-04-19T20:14:03Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgneuacqttufmkpgch7zg7xge3ci3pvsexkawxdv4xcjzuw5bwjjlz6uplznillxgwb","name":"clitest.rgneuacqttufmkpgch7zg7xge3ci3pvsexkawxdv4xcjzuw5bwjjlz6uplznillxgwb","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-16T00:30:40Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgp5iow4t3ju7wplyhwwyyxfikac7kfqqnclthayti3d77pxn3ca53hnghnbepxy6vl","name":"clitest.rgp5iow4t3ju7wplyhwwyyxfikac7kfqqnclthayti3d77pxn3ca53hnghnbepxy6vl","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgpngxmiq5kjet77dbpu5suzlrqcawlrej5mjnfhwjl4fmi7irwxh7lv4ihzcsvld4m","name":"clitest.rgpngxmiq5kjet77dbpu5suzlrqcawlrej5mjnfhwjl4fmi7irwxh7lv4ihzcsvld4m","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-11-16T21:44:31Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgwrwfwfeym72qee3nah2tasiw4z3ccr3lo6xnpbdlmiuzm4hs574o7lgzayesgwffv","name":"clitest.rgwrwfwfeym72qee3nah2tasiw4z3ccr3lo6xnpbdlmiuzm4hs574o7lgzayesgwffv","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-06-27T00:17:52Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestdycsgv3esn","name":"clitestdycsgv3esn","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T23:26:42Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestffdl6od2a7","name":"clitestffdl6od2a7","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-26T03:35:17Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestfxfivhxykn","name":"clitestfxfivhxykn","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T22:49:59Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestlab1","name":"clitestlab1","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestlhtusxwsiz","name":"clitestlhtusxwsiz","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T22:54:21Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestnqmy43yu2w","name":"clitestnqmy43yu2w","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T23:28:16Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestplwi7yzvp2","name":"clitestplwi7yzvp2","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T23:14:09Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestpnmpfl742h","name":"clitestpnmpfl742h","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T21:26:58Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestqwhnzxwhf7","name":"clitestqwhnzxwhf7","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T22:02:32Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestti2isrnc2f","name":"clitestti2isrnc2f","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T22:46:41Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitesttxslhomvb7","name":"clitesttxslhomvb7","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T23:47:20Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestwtivq2hrvb","name":"clitestwtivq2hrvb","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2019-05-24T23:52:24Z"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-westus","name":"cloud-shell-storage-westus","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SoutheastAsia","name":"Default-Storage-SoutheastAsia","type":"Microsoft.Resources/resourceGroups","location":"southeastasia","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS","name":"Default-Storage-WestUS","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group4591223413","name":"group4591223413","type":"Microsoft.Resources/resourceGroups","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group6598336280","name":"group6598336280","type":"Microsoft.Resources/resourceGroups","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group7952583189","name":"group7952583189","type":"Microsoft.Resources/resourceGroups","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/limgurg","name":"limgurg","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-eventgridtesting","name":"lmazuel-eventgridtesting","type":"Microsoft.Resources/resourceGroups","location":"centralus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-logictest","name":"lmazuel-logictest","type":"Microsoft.Resources/resourceGroups","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-luis-test","name":"lmazuel-luis-test","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture","name":"lmazuel-testcapture","type":"Microsoft.Resources/resourceGroups","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel_rg_Linux_eastus","name":"lmazuel_rg_Linux_eastus","type":"Microsoft.Resources/resourceGroups","location":"eastus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest2ckzqyiozi_cliakstestpaihm5_eastus","name":"MC_clitest2ckzqyiozi_cliakstestpaihm5_eastus","type":"Microsoft.Resources/resourceGroups","location":"eastus","managedBy":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest2ckzqyiozi/providers/Microsoft.ContainerService/managedClusters/cliakstestpaihm5","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/NetworkWatcherRG","name":"NetworkWatcherRG","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test","name":"ova-test","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-vm-delete","name":"test-vm-delete","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_devtestlabs_test_devtestlabs34410fc3","name":"test_mgmt_devtestlabs_test_devtestlabs34410fc3","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_basic667e10fe","name":"test_mgmt_resource_test_deployments_basic667e10fe","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Deleting"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template27ec152e","name":"test_mgmt_resource_test_deployments_linked_template27ec152e","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Deleting"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_deployments_linked_template_errorafa117b7","name":"test_mgmt_resource_test_deployments_linked_template_errorafa117b7","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Deleting"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"tag1":"value1"},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxgroup3","name":"wilxgroup3","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/YGReadyWorkshop","name":"YGReadyWorkshop","type":"Microsoft.Resources/resourceGroups","location":"westus2","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc","name":"ygsrc","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}}]}'} headers: cache-control: [no-cache] - content-length: ['8339'] + content-length: ['19151'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:55 GMT'] + date: ['Fri, 31 May 2019 16:14:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -129,19 +125,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups?$top=2&api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups?$top=2&api-version=2019-05-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar","name":"amar","location":"eastus","properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/antisch-amqp","name":"antisch-amqp","location":"westus2","properties":{"provisioningState":"Succeeded"}}],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups?%24top=2&api-version=2018-05-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IU56WkVSak0tIiwibmV4dFJvd0tleSI6IjEhMTQ4IU1EQTVOemREUkVJeE5qTkdORE0xUmpsRE16SXpPVVZET0VGRk5qRkdORVJmUTB4SlZFVlRWRG95UlZKSE16STJUMWhPVVZGT016TlpNMDQwTWxaYU5sZzFXRTlNTlZKV1ZsY3pXalJQTmxSOE9EWTFRamM1UVVZM1FrUkNRalUwTlMxRlFWTlVWVk15UlZWQlVBLS0ifQ%3d%3d"}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/-biubiubiu","name":"-biubiubiu","type":"Microsoft.Resources/resourceGroups","location":"centralus","tags":{},"properties":{"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aibmdi","name":"aibmdi","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}}],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups?%24top=2&api-version=2019-05-01&%24skiptoken=eyJuZXh0UGFydGl0aW9uS2V5IjoiMSE4IU56WkVSak0tIiwibmV4dFJvd0tleSI6IjEhNjghTURBNU56ZERSRUl4TmpOR05ETTFSamxETXpJek9VVkRPRUZGTmpGR05FUmZRVXhGV0VkSVNTMURSVTVVVWtGTVZWTS0ifQ%3d%3d"}'} headers: cache-control: [no-cache] - content-length: ['786'] + content-length: ['778'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:56 GMT'] + date: ['Fri, 31 May 2019 16:14:58 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -156,25 +151,25 @@ interactions: Connection: [keep-alive] Content-Length: ['46'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","location":"westus","tags":{"tag1":"valueA","tag2":"valueB"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050","name":"test_mgmt_resource_test_resource_groups457f1050","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"tag1":"valueA","tag2":"valueB"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] - content-length: ['288'] + content-length: ['332'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:57 GMT'] + date: ['Fri, 31 May 2019 16:15:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -182,19 +177,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050/resources?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resource_groups457f1050/resources?api-version=2019-05-01 response: body: {string: '{"value":[]}'} headers: cache-control: [no-cache] content-length: ['12'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:58 GMT'] + date: ['Fri, 31 May 2019 16:14:59 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -209,18 +203,18 @@ interactions: Connection: [keep-alive] Content-Length: ['20'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050/exportTemplate?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050/exportTemplate?api-version=2019-05-01 response: body: {string: '{"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{},"variables":{},"resources":[]}}'} headers: cache-control: [no-cache] content-length: ['179'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:41:58 GMT'] + date: ['Fri, 31 May 2019 16:15:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -234,24 +228,23 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resource_groups457f1050?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:41:59 GMT'] + date: ['Fri, 31 May 2019 16:15:00 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -259,18 +252,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:42:14 GMT'] + date: ['Fri, 31 May 2019 16:15:15 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -281,18 +274,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:42:29 GMT'] + date: ['Fri, 31 May 2019 16:15:31 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -303,16 +296,16 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1URVNUOjVGTUdNVDo1RlJFU09VUkNFOjVGVEVTVDo1RlJFU09VUkNFOjVGR1JPVVBTNDU3RjEwNTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:42:45 GMT'] + date: ['Fri, 31 May 2019 16:15:45 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml index 49b232e8d7dd..dbac9fbb8581 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_resources.yaml @@ -5,9 +5,8 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: HEAD uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2015-05-01-preview @@ -17,7 +16,7 @@ interactions: cache-control: [no-cache] content-length: ['199'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:42:48 GMT'] + date: ['Fri, 31 May 2019 16:15:49 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -32,21 +31,21 @@ interactions: Connection: [keep-alive] Content-Length: ['22'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2015-05-01-preview response: - body: {string: "{\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ - : 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"type\": \"Microsoft.Compute/availabilitySets\"\ - ,\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ - ,\r\n \"name\": \"pytestavsetea520dc4\"\r\n}"} + body: {string: "{\r\n \"properties\": {\r\n \"platformUpdateDomainCount\": + 5,\r\n \"platformFaultDomainCount\": 3\r\n },\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n + \ \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\",\r\n + \ \"name\": \"pytestavsetea520dc4\"\r\n}"} headers: cache-control: [no-cache] content-length: ['394'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:42:50 GMT'] + date: ['Fri, 31 May 2019 16:15:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -54,7 +53,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1197'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1197'] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -63,23 +62,22 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2015-05-01-preview response: - body: {string: "{\r\n \"properties\": {\r\n \"platformUpdateDomainCount\"\ - : 5,\r\n \"platformFaultDomainCount\": 3,\r\n \"virtualMachines\": []\r\ - \n },\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\"\ - : \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\"\ - ,\r\n \"name\": \"pytestavsetea520dc4\"\r\n}"} + body: {string: "{\r\n \"properties\": {\r\n \"platformUpdateDomainCount\": + 5,\r\n \"platformFaultDomainCount\": 3,\r\n \"virtualMachines\": []\r\n + \ },\r\n \"type\": \"Microsoft.Compute/availabilitySets\",\r\n \"location\": + \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4\",\r\n + \ \"name\": \"pytestavsetea520dc4\"\r\n}"} headers: cache-control: [no-cache] content-length: ['422'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:42:51 GMT'] + date: ['Fri, 31 May 2019 16:15:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -87,7 +85,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4199,Microsoft.Compute/LowCostGet30Min;33599'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31999'] status: {code: 200, message: OK} - request: body: null @@ -95,19 +93,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=name%20eq%20%27pytestavsetea520dc4%27&api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=name%20eq%20%27pytestavsetea520dc4%27&api-version=2019-05-01 response: body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4","name":"pytestavsetea520dc4","type":"Microsoft.Compute/availabilitySets","location":"westus"}]}'} headers: cache-control: [no-cache] content-length: ['287'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:42:51 GMT'] + date: ['Fri, 31 May 2019 16:15:49 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -122,18 +119,18 @@ interactions: Connection: [keep-alive] Content-Length: ['22'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/pynewgroupea520dc4?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/pynewgroupea520dc4?api-version=2019-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/pynewgroupea520dc4","name":"pynewgroupea520dc4","location":"westus","properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/pynewgroupea520dc4","name":"pynewgroupea520dc4","type":"Microsoft.Resources/resourceGroups","location":"westus","properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] - content-length: ['189'] + content-length: ['233'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:42:53 GMT'] + date: ['Fri, 31 May 2019 16:15:51 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -149,19 +146,19 @@ interactions: Connection: [keep-alive] Content-Length: ['304'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/moveResources?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_test_resourcesea520dc4/moveResources?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:42:54 GMT'] + date: ['Fri, 31 May 2019 16:15:52 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -173,18 +170,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:43:09 GMT'] + date: ['Fri, 31 May 2019 16:16:07 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -195,18 +192,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:43:25 GMT'] + date: ['Fri, 31 May 2019 16:16:22 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -217,18 +214,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:43:41 GMT'] + date: ['Fri, 31 May 2019 16:16:38 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -239,18 +236,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:43:56 GMT'] + date: ['Fri, 31 May 2019 16:16:54 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -261,18 +258,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:44:11 GMT'] + date: ['Fri, 31 May 2019 16:17:10 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -283,18 +280,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:44:27 GMT'] + date: ['Fri, 31 May 2019 16:17:25 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -305,18 +302,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:44:42 GMT'] + date: ['Fri, 31 May 2019 16:17:40 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -327,18 +324,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:44:58 GMT'] + date: ['Fri, 31 May 2019 16:17:55 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -349,18 +346,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:45:13 GMT'] + date: ['Fri, 31 May 2019 16:18:11 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -371,18 +368,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:45:28 GMT'] + date: ['Fri, 31 May 2019 16:18:26 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -393,18 +390,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:45:44 GMT'] + date: ['Fri, 31 May 2019 16:18:41 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -415,18 +412,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:45:59 GMT'] + date: ['Fri, 31 May 2019 16:18:57 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -437,18 +434,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:46:15 GMT'] + date: ['Fri, 31 May 2019 16:19:13 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -459,15 +456,15 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFQkFUQ0hNT1ZFSk9CLVRFU1Q6NUZNR01UOjVGUkVTT1VSQ0U6NUZURVNUOjVGUkVTT1VSQ0VTRUE1MjBEQzQtV0VTVFVTLU1PVkUiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] - date: ['Wed, 13 Jun 2018 16:46:31 GMT'] + date: ['Fri, 31 May 2019 16:19:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -480,9 +477,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/pynewgroupea520dc4/providers/Microsoft.Compute/availabilitySets/pytestavsetea520dc4?api-version=2015-05-01-preview @@ -491,7 +487,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:46:32 GMT'] + date: ['Fri, 31 May 2019 16:19:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -507,24 +503,23 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/pynewgroupea520dc4?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/pynewgroupea520dc4?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:46:33 GMT'] + date: ['Fri, 31 May 2019 16:19:28 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -532,18 +527,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:46:48 GMT'] + date: ['Fri, 31 May 2019 16:19:44 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -554,18 +549,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:47:05 GMT'] + date: ['Fri, 31 May 2019 16:19:59 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -576,16 +571,16 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QWU5FV0dST1VQRUE1MjBEQzQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:47:19 GMT'] + date: ['Fri, 31 May 2019 16:20:15 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_tag_operations.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_tag_operations.yaml index 35b261c4ef24..33ede0c47ac2 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_tag_operations.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource.test_tag_operations.yaml @@ -6,25 +6,26 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1?api-version=2019-05-01 response: body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1","tagName":"tag1","count":{"type":"Total","value":0},"values":[]}'} headers: cache-control: [no-cache] content-length: ['138'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:47:26 GMT'] + date: ['Fri, 31 May 2019 16:20:17 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} - request: body: null headers: @@ -32,19 +33,18 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1?api-version=2019-05-01 response: body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1","tagValue":"value1","count":{"type":"Total","value":0}}'} headers: cache-control: [no-cache] content-length: ['146'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:47:26 GMT'] + date: ['Fri, 31 May 2019 16:20:18 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -57,19 +57,26 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames?api-version=2019-05-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/CreatedBy","tagName":"CreatedBy","count":{"type":"Total","value":1},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/CreatedBy/tagValues/DevTestLabs","tagValue":"DevTestLabs","count":{"type":"Total","value":1}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/ms-resource-usage","tagName":"ms-resource-usage","count":{"type":"Total","value":1},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/ms-resource-usage/tagValues/azure-cloud-shell","tagValue":"azure-cloud-shell","count":{"type":"Total","value":1}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/applicationType","tagName":"applicationType","count":{"type":"Total","value":1},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/applicationType/tagValues/web","tagValue":"web","count":{"type":"Total","value":1}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1","tagName":"tag1","count":{"type":"Total","value":0},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1","tagValue":"value1","count":{"type":"Total","value":0}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tagNameTwo","tagName":"tagNameTwo","count":{"type":"Total","value":0},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tagNameTwo/tagValues/value2","tagValue":"value2","count":{"type":"Total","value":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tagNameTwo/tagValues/value3","tagValue":"value3","count":{"type":"Total","value":0}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/product","tagName":"product","count":{"type":"Total","value":14},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/product/tagValues/azurecli","tagValue":"azurecli","count":{"type":"Total","value":14}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/cause","tagName":"cause","count":{"type":"Total","value":14},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/cause/tagValues/automation","tagValue":"automation","count":{"type":"Total","value":14}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date","tagName":"date","count":{"type":"Total","value":14},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T20:07:28Z","tagValue":"2018-04-19T20:07:28Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-05-15T02:09:45Z","tagValue":"2018-05-15T02:09:45Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T17:59:58Z","tagValue":"2018-04-19T17:59:58Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T22:26:43Z","tagValue":"2018-04-19T22:26:43Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-20T01:19:52Z","tagValue":"2018-04-20T01:19:52Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T19:20:15Z","tagValue":"2018-04-19T19:20:15Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-05-29T19:38:14Z","tagValue":"2018-05-29T19:38:14Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T17:51:10Z","tagValue":"2018-04-19T17:51:10Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T20:14:03Z","tagValue":"2018-04-19T20:14:03Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-05-14T19:03:54Z","tagValue":"2018-05-14T19:03:54Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T20:34:21Z","tagValue":"2018-04-19T20:34:21Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-05-25T01:22:07Z","tagValue":"2018-05-25T01:22:07Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-05-25T01:20:18Z","tagValue":"2018-05-25T01:20:18Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T17:57:21Z","tagValue":"2018-04-19T17:57:21Z","count":{"type":"Total","value":1}}]}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/test","tagName":"test","count":{"type":"Total","value":3},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/test/tagValues/true","tagValue":"true","count":{"type":"Total","value":3}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/foo","tagName":"foo","count":{"type":"Total","value":1},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/foo/tagValues/barwin","tagValue":"barwin","count":{"type":"Total","value":1}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/{tag1: + value1,","tagName":"{tag1: value1,","count":{"type":"Total","value":4},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/{tag1: + value1,/tagValues/","tagValue":"","count":{"type":"Total","value":4}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag2: + value2}","tagName":"tag2: value2}","count":{"type":"Total","value":4},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag2: + value2}/tagValues/","tagValue":"","count":{"type":"Total","value":4}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/{tag2: + value2,","tagName":"{tag2: value2,","count":{"type":"Total","value":2},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/{tag2: + value2,/tagValues/","tagValue":"","count":{"type":"Total","value":2}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1: + value1}","tagName":"tag1: value1}","count":{"type":"Total","value":2},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1: + value1}/tagValues/","tagValue":"","count":{"type":"Total","value":2}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/scenario_test","tagName":"scenario_test","count":{"type":"Total","value":2},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/scenario_test/tagValues/","tagValue":"","count":{"type":"Total","value":2}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/CreatedBy","tagName":"CreatedBy","count":{"type":"Total","value":2},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/CreatedBy/tagValues/DevTestLabs","tagValue":"DevTestLabs","count":{"type":"Total","value":2}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/ms-resource-usage","tagName":"ms-resource-usage","count":{"type":"Total","value":1},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/ms-resource-usage/tagValues/azure-cloud-shell","tagValue":"azure-cloud-shell","count":{"type":"Total","value":1}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/applicationType","tagName":"applicationType","count":{"type":"Total","value":1},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/applicationType/tagValues/web","tagValue":"web","count":{"type":"Total","value":1}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/a_tag","tagName":"a_tag","count":{"type":"Total","value":5},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/a_tag/tagValues/True","tagValue":"True","count":{"type":"Total","value":5}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1","tagName":"tag1","count":{"type":"Total","value":0},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1","tagValue":"value1","count":{"type":"Total","value":0}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tagNameTwo","tagName":"tagNameTwo","count":{"type":"Total","value":0},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tagNameTwo/tagValues/value2","tagValue":"value2","count":{"type":"Total","value":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tagNameTwo/tagValues/value3","tagValue":"value3","count":{"type":"Total","value":0}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/product","tagName":"product","count":{"type":"Total","value":29},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/product/tagValues/azurecli","tagValue":"azurecli","count":{"type":"Total","value":29}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/cause","tagName":"cause","count":{"type":"Total","value":29},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/cause/tagValues/automation","tagValue":"automation","count":{"type":"Total","value":29}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date","tagName":"date","count":{"type":"Total","value":29},"values":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-07-28T02:03:35Z","tagValue":"2018-07-28T02:03:35Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-07-28T01:09:04Z","tagValue":"2018-07-28T01:09:04Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-07-28T01:28:11Z","tagValue":"2018-07-28T01:28:11Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T20:00:31Z","tagValue":"2019-05-24T20:00:31Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T21:57:34Z","tagValue":"2019-05-24T21:57:34Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T23:00:56Z","tagValue":"2019-05-24T23:00:56Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T23:58:45Z","tagValue":"2019-05-24T23:58:45Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-08T23:47:15Z","tagValue":"2019-05-08T23:47:15Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T20:07:28Z","tagValue":"2018-04-19T20:07:28Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-10-16T17:18:07Z","tagValue":"2018-10-16T17:18:07Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-10-17T04:55:16Z","tagValue":"2018-10-17T04:55:16Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-14T22:04:22Z","tagValue":"2019-05-14T22:04:22Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-10-16T00:22:56Z","tagValue":"2018-10-16T00:22:56Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-09-12T19:25:52Z","tagValue":"2018-09-12T19:25:52Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-04-19T20:14:03Z","tagValue":"2018-04-19T20:14:03Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-10-16T00:30:40Z","tagValue":"2018-10-16T00:30:40Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-11-16T21:44:31Z","tagValue":"2018-11-16T21:44:31Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2018-06-27T00:17:52Z","tagValue":"2018-06-27T00:17:52Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T23:26:42Z","tagValue":"2019-05-24T23:26:42Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-26T03:35:17Z","tagValue":"2019-05-26T03:35:17Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T22:49:59Z","tagValue":"2019-05-24T22:49:59Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T22:54:21Z","tagValue":"2019-05-24T22:54:21Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T23:28:16Z","tagValue":"2019-05-24T23:28:16Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T23:14:09Z","tagValue":"2019-05-24T23:14:09Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T21:26:58Z","tagValue":"2019-05-24T21:26:58Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T22:02:32Z","tagValue":"2019-05-24T22:02:32Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T22:46:41Z","tagValue":"2019-05-24T22:46:41Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T23:47:20Z","tagValue":"2019-05-24T23:47:20Z","count":{"type":"Total","value":1}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/date/tagValues/2019-05-24T23:52:24Z","tagValue":"2019-05-24T23:52:24Z","count":{"type":"Total","value":1}}]},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tosintag1","tagName":"tosintag1","count":{"type":"Total","value":0},"values":[]}]}'} headers: cache-control: [no-cache] - content-length: ['4907'] + content-length: ['10034'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:47:26 GMT'] + date: ['Fri, 31 May 2019 16:20:19 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -83,18 +90,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1/tagValues/value1?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:47:28 GMT'] + date: ['Fri, 31 May 2019 16:20:20 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -108,18 +114,17 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 resourcemanagementclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.6.0 + resourcemanagementclient/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/tag1?api-version=2019-05-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 13 Jun 2018 16:47:29 GMT'] + date: ['Fri, 31 May 2019 16:20:20 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] diff --git a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml index ce1d069bc3f5..e028ce6f59dc 100644 --- a/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml +++ b/sdk/resources/azure-mgmt-resource/tests/recordings/test_mgmt_resource_policy.test_policy_definition.yaml @@ -10,19 +10,19 @@ interactions: Connection: [keep-alive] Content-Length: ['288'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0?api-version=2018-05-01 response: - body: {string: '{"properties":{"policyType":"Custom","description":"Don''t create - a VM anywhere","policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"}'} + body: {string: '{"properties":{"policyType":"Custom","mode":"Indexed","description":"Don''t + create a VM anywhere","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:28:49.7957626Z","updatedBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","updatedOn":"2019-06-13T19:36:26.447317Z"},"policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['473'] + content-length: ['690'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:50 GMT'] + date: ['Thu, 13 Jun 2019 19:36:26 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -35,20 +35,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0?api-version=2018-05-01 response: - body: {string: '{"properties":{"policyType":"Custom","description":"Don''t create - a VM anywhere","policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"}'} + body: {string: '{"properties":{"policyType":"Custom","mode":"Indexed","description":"Don''t + create a VM anywhere","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:28:49.7957626Z","updatedBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","updatedOn":"2019-06-13T19:36:26.447317Z"},"policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['473'] + content-length: ['690'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:50 GMT'] + date: ['Thu, 13 Jun 2019 19:36:26 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -62,46 +61,270 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions?api-version=2018-05-01 response: - body: {string: '{"value":[{"properties":{"displayName":"Audit SQL DB Level Audit - Setting","policyType":"BuiltIn","mode":"All","description":"Audit DB level - audit setting for SQL databases","metadata":{"category":"SQL","deprecated":true},"parameters":{"setting":{"type":"String","metadata":{"displayName":"Audit - Setting"},"allowedValues":["enabled","disabled"]}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers/databases"},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Sql/servers/databases/auditingSettings","name":"default","existenceCondition":{"allOf":[{"field":"Microsoft.Sql/auditingSettings.state","equals":"[parameters(''setting'')]"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a12","type":"Microsoft.Authorization/policyDefinitions","name":"06a78e20-9358-41c9-923c-fb736d382a12"},{"properties":{"displayName":"Audit + body: {string: '{"value":[{"properties":{"displayName":"Audit virtual machines + without disaster recovery configured","policyType":"BuiltIn","mode":"All","description":"Audit + virtual machines which do not have disaster recovery configured. To learn + more about disaster recovery, visit https://aka.ms/asr-doc.","metadata":{"category":"Compute"},"parameters":{},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"auditIfNotExists","details":{"type":"Microsoft.Resources/links","existenceCondition":{"field":"name","like":"ASR-Protect-*"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56","type":"Microsoft.Authorization/policyDefinitions","name":"0015ea4d-51ff-4ce3-8d8c-f3f8f0179a56"},{"properties":{"displayName":"[Deprecated]: + Audit Web Sockets state for a Function App","policyType":"BuiltIn","mode":"All","description":"The + Web Sockets protocol is vulnerable to different types of security threats. + Use of Web Sockets within an Function app must be carefully reviewed.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"functionapp"},{"field":"kind","equals":"functionapp,linux"},{"field":"kind","equals":"functionapp,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"DisableWebSockets","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/001802d1-4969-4c82-a700-c29c6c6f9bbd","type":"Microsoft.Authorization/policyDefinitions","name":"001802d1-4969-4c82-a700-c29c6c6f9bbd"},{"properties":{"displayName":"[Preview]: + Deploy Log Analytics Agent for Linux VMs","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Log Analytics Agent for Linux VMs if the VM Image (OS) is in the list defined + and the agent is not installed.","metadata":{"category":"Monitoring"},"parameters":{"logAnalytics":{"type":"String","metadata":{"displayName":"Log + Analytics workspace","description":"Select Log Analytics workspace from dropdown + list. If this workspace is outside of the scope of the assignment you must + manually grant ''Log Analytics Contributor'' permissions (or similar) to the + policy assignment''s principal ID.","strongType":"omsWorkspace","assignPermissions":true}},"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"12*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"14.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"16.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"18.04*LTS"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Oracle"},{"field":"Microsoft.Compute/imageOffer","equals":"Oracle-Linux"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7.*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["CentOS","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"OmsAgentForLinux"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"},{"field":"Microsoft.Compute/virtualMachines/extensions/provisioningState","equals":"Succeeded"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"logAnalytics":{"type":"string"}},"variables":{"vmExtensionName":"MMAExtension","vmExtensionPublisher":"Microsoft.EnterpriseCloud.Monitoring","vmExtensionType":"OmsAgentForLinux","vmExtensionTypeHandlerVersion":"1.7"},"resources":[{"name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","apiVersion":"2018-06-01","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true,"settings":{"workspaceId":"[reference(parameters(''logAnalytics''), + ''2015-03-20'').customerId]","stopOnMultipleConnections":"true"},"protectedSettings":{"workspaceKey":"[listKeys(parameters(''logAnalytics''), + ''2015-03-20'').primarySharedKey]"}}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + extension for VM'', '': '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"logAnalytics":{"value":"[parameters(''logAnalytics'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/053d3325-282c-4e5c-b944-24faffd30d77","type":"Microsoft.Authorization/policyDefinitions","name":"053d3325-282c-4e5c-b944-24faffd30d77"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Azure Data Lake Store","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Data Lake"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.DataLakeStore/accounts"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/057ef27e-665e-4328-8ea3-04b3122bd9fb","type":"Microsoft.Authorization/policyDefinitions","name":"057ef27e-665e-4328-8ea3-04b3122bd9fb"},{"properties":{"displayName":"Audit + SQL DB Level Audit Setting","policyType":"BuiltIn","mode":"All","description":"Audit + DB level audit setting for SQL databases","metadata":{"category":"SQL","deprecated":true},"parameters":{"setting":{"type":"String","metadata":{"displayName":"Audit + Setting"},"allowedValues":["enabled","disabled"]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Sql/servers/databases"},{"field":"name","notEquals":"master"}]},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Sql/servers/databases/auditingSettings","name":"default","existenceCondition":{"allOf":[{"field":"Microsoft.Sql/auditingSettings.state","equals":"[parameters(''setting'')]"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a12","type":"Microsoft.Authorization/policyDefinitions","name":"06a78e20-9358-41c9-923c-fb736d382a12"},{"properties":{"displayName":"Audit VMs that do not use managed disks","policyType":"BuiltIn","mode":"All","description":"This - policy audits VMs that do not use managed disks","metadata":{"category":"Compute"},"parameters":{},"policyRule":{"if":{"anyOf":[{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"field":"Microsoft.Compute/virtualMachines/osDisk.uri","exists":"True"}]},{"allOf":[{"field":"type","equals":"Microsoft.Compute/VirtualMachineScaleSets"},{"anyOf":[{"field":"Microsoft.Compute/VirtualMachineScaleSets/osDisk.vhdContainers","exists":"True"},{"field":"Microsoft.Compute/VirtualMachineScaleSets/osdisk.imageUrl","exists":"True"}]}]}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a4d","type":"Microsoft.Authorization/policyDefinitions","name":"06a78e20-9358-41c9-923c-fb736d382a4d"},{"properties":{"displayName":"[Preview]: - Deploy default OMS VM Extension for Windows VMs.","policyType":"BuiltIn","mode":"NotSpecified","description":"This - policy deploys OMS VM Extensions on Windows VMs, and connects to the selected - Log Analytics workspace","metadata":{"category":"Compute"},"parameters":{"logAnalytics":{"type":"String","metadata":{"displayName":"Log + policy audits VMs that do not use managed disks","metadata":{"category":"Compute"},"parameters":{},"policyRule":{"if":{"anyOf":[{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"field":"Microsoft.Compute/virtualMachines/osDisk.uri","exists":"True"}]},{"allOf":[{"field":"type","equals":"Microsoft.Compute/VirtualMachineScaleSets"},{"anyOf":[{"field":"Microsoft.Compute/VirtualMachineScaleSets/osDisk.vhdContainers","exists":"True"},{"field":"Microsoft.Compute/VirtualMachineScaleSets/osdisk.imageUrl","exists":"True"}]}]}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/06a78e20-9358-41c9-923c-fb736d382a4d","type":"Microsoft.Authorization/policyDefinitions","name":"06a78e20-9358-41c9-923c-fb736d382a4d"},{"properties":{"displayName":"Audit + CORS resource access restrictions for a Function App","policyType":"BuiltIn","mode":"All","description":"Cross + origin Resource Sharing (CORS) should not allow all domains to access your + Function app. Allow only required domains to interact with your Function app.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"functionapp"},{"field":"kind","equals":"functionapp,linux"},{"field":"kind","equals":"functionapp,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"CorsRestrictionsForFunctionApp","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0820b7b9-23aa-4725-a1ce-ae4558f718e5","type":"Microsoft.Authorization/policyDefinitions","name":"0820b7b9-23aa-4725-a1ce-ae4558f718e5"},{"properties":{"displayName":"[Preview]: + Deploy Log Analytics Agent for Windows VMs","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Log Analytics Agent for Windows VMs if the VM Image (OS) is in the list defined + and the agent is not installed. The list of OS images will be updated over + time as support is updated.","metadata":{"category":"Monitoring"},"parameters":{"logAnalytics":{"type":"String","metadata":{"displayName":"Log Analytics workspace","description":"Select Log Analytics workspace from dropdown - list","strongType":"omsWorkspace"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH"]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"MicrosoftMonitoringAgent"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"logAnalytics":{"type":"string"}},"resources":[{"name":"[concat(parameters(''vmName''),''/omsPolicy'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","apiVersion":"2017-12-01","properties":{"publisher":"Microsoft.EnterpriseCloud.Monitoring","type":"MicrosoftMonitoringAgent","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true,"settings":{"workspaceId":"[reference(parameters(''logAnalytics''), - ''2015-03-20'').customerId]"},"protectedSettings":{"workspaceKey":"[listKeys(parameters(''logAnalytics''), + list. If this workspace is outside of the scope of the assignment you must + manually grant ''Log Analytics Contributor'' permissions (or similar) to the + policy assignment''s principal ID.","strongType":"omsWorkspace","assignPermissions":true}},"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + values: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"MicrosoftMonitoringAgent"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"},{"field":"Microsoft.Compute/virtualMachines/extensions/provisioningState","equals":"Succeeded"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"logAnalytics":{"type":"string"}},"variables":{"vmExtensionName":"MMAExtension","vmExtensionPublisher":"Microsoft.EnterpriseCloud.Monitoring","vmExtensionType":"MicrosoftMonitoringAgent","vmExtensionTypeHandlerVersion":"1.0"},"resources":[{"name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","apiVersion":"2018-06-01","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true,"settings":{"workspaceId":"[reference(parameters(''logAnalytics''), + ''2015-03-20'').customerId]","stopOnMultipleConnections":"true"},"protectedSettings":{"workspaceKey":"[listKeys(parameters(''logAnalytics''), ''2015-03-20'').primarySharedKey]"}}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled - monitoring for Windows VM'', '': '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"logAnalytics":{"value":"[parameters(''logAnalytics'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0868462e-646c-4fe3-9ced-a733534b6a2c","type":"Microsoft.Authorization/policyDefinitions","name":"0868462e-646c-4fe3-9ced-a733534b6a2c"},{"properties":{"displayName":"[Preview]: - Monitor unencrypted VM Disks in Security Center","policyType":"BuiltIn","mode":"All","description":"VMs + extension for VM'', '': '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"logAnalytics":{"value":"[parameters(''logAnalytics'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0868462e-646c-4fe3-9ced-a733534b6a2c","type":"Microsoft.Authorization/policyDefinitions","name":"0868462e-646c-4fe3-9ced-a733534b6a2c"},{"properties":{"displayName":"[Deprecated]: + Audit Web Applications that are not using latest supported PHP Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported PHP version for the latest security classes. Using older + classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestPHP","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/08b17839-76c6-4015-90e0-33d9d54d219c","type":"Microsoft.Authorization/policyDefinitions","name":"08b17839-76c6-4015-90e0-33d9d54d219c"},{"properties":{"displayName":"Monitor + Internet-facing virtual machines for Network Security Group traffic hardening + recommendations","policyType":"BuiltIn","mode":"Indexed","description":"Azure + Security Center analyzes the traffic patterns of Internet facing virtual machines + and provides Network Security Group rule recommendations that reduce the potential + attack surface","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachines"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"adaptiveNetworkHardenings","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/08e6af2d-db70-460a-bfe9-d5bd474ba9d6","type":"Microsoft.Authorization/policyDefinitions","name":"08e6af2d-db70-460a-bfe9-d5bd474ba9d6"},{"properties":{"displayName":"Audit + minimum number of owners for subscription","policyType":"BuiltIn","mode":"All","description":"It + is recommended to designate more than one subscription owner in order to have + administrator access redundancy.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"DesignateMoreThanOneOwner","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/09024ccc-0c5f-475e-9457-b7c0d9ed487b","type":"Microsoft.Authorization/policyDefinitions","name":"09024ccc-0c5f-475e-9457-b7c0d9ed487b"},{"properties":{"displayName":"Monitor + unencrypted VM Disks in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"VMs without an enabled disk encryption will be monitored by Azure Security Center - as recommendations.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachines"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"encryption","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d","type":"Microsoft.Authorization/policyDefinitions","name":"0961003e-5a0a-4549-abde-af6a37f2724d"},{"properties":{"displayName":"Audit + as recommendations","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachines"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"encryption","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0961003e-5a0a-4549-abde-af6a37f2724d","type":"Microsoft.Authorization/policyDefinitions","name":"0961003e-5a0a-4549-abde-af6a37f2724d"},{"properties":{"displayName":"Audit + resource location matches resource group location","policyType":"BuiltIn","mode":"Indexed","description":"Audit + that the resource location matches its resource group location","metadata":{"category":"General"},"policyRule":{"if":{"field":"location","notIn":["[resourcegroup().location]","global"]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0a914e76-4921-4c19-b460-a2d36003525a","type":"Microsoft.Authorization/policyDefinitions","name":"0a914e76-4921-4c19-b460-a2d36003525a"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs on which Windows Defender Exploit Guard is not enabled","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines on which Windows Defender Exploit Guard + is not enabled. This policy should only be used along with its corresponding + deploy policy in an initiative/policy set. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"auditIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","existenceCondition":{"allOf":[{"field":"name","equals":"WindowsDefenderExploitGuard"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","equals":"Compliant"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0d9b45ff-9ddd-43fc-bf59-fbd1c8423053","type":"Microsoft.Authorization/policyDefinitions","name":"0d9b45ff-9ddd-43fc-bf59-fbd1c8423053"},{"properties":{"displayName":"[Preview]: + Authorized IP ranges should be defined on Kubernetes Services","policyType":"BuiltIn","mode":"All","description":"Restrict + access to the Kubernetes Service Management API by granting API access only + to IP addresses in specific ranges. It is recommended to limit access to authorized + IP ranges to ensure that only applications from allowed networks can access + the cluster.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.ContainerService/managedClusters"},{"field":"Microsoft.ContainerService/managedClusters/apiServerAuthorizedIPRanges","exists":"false"}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0e246bcf-5f6f-4f87-bc6f-775d4712c7ea","type":"Microsoft.Authorization/policyDefinitions","name":"0e246bcf-5f6f-4f87-bc6f-775d4712c7ea"},{"properties":{"displayName":"Audit + remote debugging state for a Function App","policyType":"BuiltIn","mode":"All","description":"Remote + debugging requires inbound ports to be opened on an function app. Remote + debugging should be turned off.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"functionapp"},{"field":"kind","equals":"functionapp,linux"},{"field":"kind","equals":"functionapp,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoteDebuggingForFunctionApp","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/0e60b895-3786-45da-8377-9c6b4b6ac5f9","type":"Microsoft.Authorization/policyDefinitions","name":"0e60b895-3786-45da-8377-9c6b4b6ac5f9"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that do not contain the specified + certificates in Trusted Root","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows VMs that + do not contain the specified certificates in the Trusted Root Certification + Authorities certificate store (Cert:\\LocalMachine\\Root). It also creates + a system-assigned managed identity and deploys the VM extension for Guest + Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"CertificateThumbprints":{"type":"String","metadata":{"displayName":"Certificate + thumbprints","description":"A semicolon-separated list of certificate thumbprints + that should exist under the Trusted Root certificate store (Cert:\\LocalMachine\\Root). + e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsCertificateInTrustedRoot","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude'', + ''='', parameters(''CertificateThumbprints'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsCertificateInTrustedRoot"},"CertificateThumbprints":{"value":"[parameters(''CertificateThumbprints'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"CertificateThumbprints":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude","value":"[parameters(''CertificateThumbprints'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/106ccbe4-a791-4f33-a44a-06796944b8d5","type":"Microsoft.Authorization/policyDefinitions","name":"106ccbe4-a791-4f33-a44a-06796944b8d5"},{"properties":{"displayName":"[Preview]: + Audit Dependency Agent Deployment - VM Image (OS) unlisted","policyType":"BuiltIn","mode":"Indexed","description":"Reports + VMs as non-compliant if the VM Image (OS) is not in the list defined and the + agent is not installed. The list of OS images will be updated over time as + support is updated.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude_windows":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]},"listOfImageIdToInclude_linux":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"not":{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_windows'')]"},{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_linux'')]"},{"anyOf":[{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["12-SP2","12-SP3"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["14.04.0-LTS","14.04.1-LTS","14.04.5-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["16.04-LTS","16.04.0-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["18.04-LTS"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["Centos","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}}]},"then":{"effect":"auditIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","existenceCondition":{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.Azure.Monitoring.DependencyAgent"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/11ac78e3-31bc-4f0c-8434-37ab963cea07","type":"Microsoft.Authorization/policyDefinitions","name":"11ac78e3-31bc-4f0c-8434-37ab963cea07"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs that do not have the specified applications + installed","policyType":"BuiltIn","mode":"Indexed","description":"This policy + creates a Guest Configuration assignment to audit Windows virtual machines + that do not have the specified applications installed. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"installedApplication":{"type":"String","metadata":{"displayName":"Application + names (supports wildcards)","description":"A semicolon-separated list of the + names of the applications that should be installed. e.g. ''Microsoft SQL Server + 2014 (64-bit); Microsoft Visual Studio Code'' or ''Microsoft SQL Server 2014*'' + (to match any application starting with ''Microsoft SQL Server 2014'')"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WhitelistedApplication","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[InstalledApplication]bwhitelistedapp;Name'', + ''='', parameters(''installedApplication'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WhitelistedApplication"},"installedApplication":{"value":"[parameters(''installedApplication'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"installedApplication":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[InstalledApplication]bwhitelistedapp;Name","value":"[parameters(''installedApplication'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/12f7e5d0-42a7-4630-80d8-54fb7cff9bd6","type":"Microsoft.Authorization/policyDefinitions","name":"12f7e5d0-42a7-4630-80d8-54fb7cff9bd6"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs in which the Administrators group contains + any of the specified members","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + in which the Administrators group contains any of the specified members. It + also creates a system-assigned managed identity and deploys the VM extension + for Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"MembersToExclude":{"type":"String","metadata":{"displayName":"Members + to exclude","description":"A semicolon-separated list of members that should + be excluded in the Administrators local group. Ex: Administrator; myUser1; + myUser2"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"AdministratorsGroupMembersToExclude","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[LocalGroup]AdministratorsGroup;MembersToExclude'', + ''='', parameters(''MembersToExclude'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"AdministratorsGroupMembersToExclude"},"MembersToExclude":{"value":"[parameters(''MembersToExclude'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"MembersToExclude":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[LocalGroup]AdministratorsGroup;MembersToExclude","value":"[parameters(''MembersToExclude'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/144f1397-32f9-4598-8c88-118decc3ccba","type":"Microsoft.Authorization/policyDefinitions","name":"144f1397-32f9-4598-8c88-118decc3ccba"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that do not have a minimum password + age of 1 day","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that do not have a minimum password age of 1 day. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"MinimumPasswordAge","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"MinimumPasswordAge"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/16390df4-2f73-4b42-af13-c801066763df","type":"Microsoft.Authorization/policyDefinitions","name":"16390df4-2f73-4b42-af13-c801066763df"},{"properties":{"displayName":"Audit + Windows VMs that do not have the specified Windows PowerShell modules installed","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that do not have the specified Windows + PowerShell modules installed. This policy should only be used along with its + corresponding deploy policy in an initiative. For more information on Guest + Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsPowerShellModules"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/16f9b37c-4408-4c30-bc17-254958f2e2d6","type":"Microsoft.Authorization/policyDefinitions","name":"16f9b37c-4408-4c30-bc17-254958f2e2d6"},{"properties":{"displayName":"Audit transparent data encryption status","policyType":"BuiltIn","mode":"Indexed","description":"Audit - transparent data encryption status for SQL databases","metadata":{"category":"SQL"},"parameters":{},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers/databases"},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Sql/servers/databases/transparentDataEncryption","name":"current","existenceCondition":{"allOf":[{"field":"Microsoft.Sql/transparentDataEncryption.status","equals":"enabled"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/17k78e20-9358-41c9-923c-fb736d382a12","type":"Microsoft.Authorization/policyDefinitions","name":"17k78e20-9358-41c9-923c-fb736d382a12"},{"properties":{"displayName":"Enforce - tag and its value","policyType":"BuiltIn","description":"Enforces a required - tag and its value. Does not apply to resource groups.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag + transparent data encryption status for SQL databases","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Sql/servers/databases"},{"field":"name","notEquals":"master"}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/servers/databases/transparentDataEncryption","name":"current","existenceCondition":{"allOf":[{"field":"Microsoft.Sql/transparentDataEncryption.status","equals":"enabled"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/17k78e20-9358-41c9-923c-fb736d382a12","type":"Microsoft.Authorization/policyDefinitions","name":"17k78e20-9358-41c9-923c-fb736d382a12"},{"properties":{"displayName":"[Preview]: + Monitor permissive network access to app-services","policyType":"BuiltIn","mode":"All","description":"Azure + security center has discovered that the networking configuration of some of + your app services are overly permissive and allow inbound traffic from ranges + that are too broad","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Web/sites"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"restrictAccessToAppServices","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1a833ff1-d297-4a0f-9944-888428f8e0ff","type":"Microsoft.Authorization/policyDefinitions","name":"1a833ff1-d297-4a0f-9944-888428f8e0ff"},{"properties":{"displayName":"Audit + SQL managed instances without Vulnerability Assessment","policyType":"BuiltIn","mode":"Indexed","description":"Audit + SQL managed instances which do not have recurring vulnerability assessment + scans enabled. Vulnerability assessment can discover, track, and help you + remediate potential database vulnerabilities.","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/managedInstances"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/managedInstances/vulnerabilityAssessments","name":"default","existenceCondition":{"field":"Microsoft.Sql/managedInstances/vulnerabilityAssessments/recurringScans.isEnabled","equals":"True"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1b7aa243-30e4-4c9e-bca8-d0d3022b634a","type":"Microsoft.Authorization/policyDefinitions","name":"1b7aa243-30e4-4c9e-bca8-d0d3022b634a"},{"properties":{"displayName":"[Preview]: + Deploy Dependency Agent for Windows VMs","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Dependency Agent for Windows VMs if the VM Image (OS) is in the list defined + and the agent is not installed. The list of OS images will be updated over + time as support is updated.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"DependencyAgentWindows"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.Azure.Monitoring.DependencyAgent"},{"field":"Microsoft.Compute/virtualMachines/extensions/provisioningState","equals":"Succeeded"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"}},"variables":{"vmExtensionName":"DependencyAgent","vmExtensionPublisher":"Microsoft.Azure.Monitoring.DependencyAgent","vmExtensionType":"DependencyAgentWindows","vmExtensionTypeHandlerVersion":"9.6"},"resources":[{"type":"Microsoft.Compute/virtualMachines/extensions","name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","apiVersion":"2018-06-01","location":"[parameters(''location'')]","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + extension for VM'', '': '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1c210e94-a481-4beb-95fa-1571b434fb04","type":"Microsoft.Authorization/policyDefinitions","name":"1c210e94-a481-4beb-95fa-1571b434fb04"},{"properties":{"displayName":"Audit + use of classic virtual machines","policyType":"BuiltIn","mode":"All","description":"Use + new Azure Resource Manager v2 for your virtual machines to provide security + enhancements such as: stronger access control (RBAC), better auditing, ARM-based + deployment and governance, access to managed identities, access to key vault + for secrets, Azure AD-based authentication and support for tags and resource + groups for easier security management","metadata":{"category":"Compute"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.classicCompute/virtualMachines"},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1d84d5fb-01f6-4d12-ba4f-4a26081d403d","type":"Microsoft.Authorization/policyDefinitions","name":"1d84d5fb-01f6-4d12-ba4f-4a26081d403d"},{"properties":{"displayName":"[Deprecated]: + Audit API Applications that are not using latest supported .NET Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported .NET Framework version for the latest security classes. + Using older classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestDotNet","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1de7b11d-1870-41a5-8181-507e7c663cfb","type":"Microsoft.Authorization/policyDefinitions","name":"1de7b11d-1870-41a5-8181-507e7c663cfb"},{"properties":{"displayName":"Require + tag and its value","policyType":"BuiltIn","mode":"Indexed","description":"Enforces + a required tag and its value. Does not apply to resource groups.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag Name","description":"Name of the tag, such as ''environment''"}},"tagValue":{"type":"String","metadata":{"displayName":"Tag Value","description":"Value of the tag, such as ''production''"}}},"policyRule":{"if":{"not":{"field":"[concat(''tags['', - parameters(''tagName''), '']'')]","equals":"[parameters(''tagValue'')]"}},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62","type":"Microsoft.Authorization/policyDefinitions","name":"1e30110a-5ceb-460c-a204-c1c3969c6d62"},{"properties":{"displayName":"[Preview]: - Monitor unprotected web application in Security Center","policyType":"BuiltIn","mode":"All","description":"Web - applications without a Web Application Firewall protection will be monitored - by Azure Security Center as recommendations.","metadata":{"category":"Security - Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Network/publicIPAddresses","Microsoft.ClassicCompute/domainNames","Microsoft.Web/hostingEnvironments"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"unprotectedWebApplication","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6","type":"Microsoft.Authorization/policyDefinitions","name":"201ea587-7c90-41c3-910f-c280ae01cfd6"},{"properties":{"displayName":"[Preview]: - Deploy default Microsoft IaaSAntimalware extension for Windows Server","policyType":"BuiltIn","mode":"Indexed","description":"This - policy deploys a Microsoft IaaSAntimalware extension with a default configuraion - when a VM is not configured with the antimalware extension.","metadata":{"category":"Compute"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH"]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"IaaSAntimalware"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.Azure.Security"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"ExclusionsPaths":{"type":"string","defaultValue":"","metadata":{"description":"Semicolon + parameters(''tagName''), '']'')]","equals":"[parameters(''tagValue'')]"}},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1e30110a-5ceb-460c-a204-c1c3969c6d62","type":"Microsoft.Authorization/policyDefinitions","name":"1e30110a-5ceb-460c-a204-c1c3969c6d62"},{"properties":{"displayName":"Audit + provisioning of an Azure Active Directory administrator for SQL server","policyType":"BuiltIn","mode":"Indexed","description":"Audit + provisioning of an Azure Active Directory administrator for your SQL server + to enable Azure AD authentication. Azure AD authentication enables simplified + permission management and centralized identity management of database users + and other Microsoft services","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/servers/administrators"}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/1f314764-cb73-4fc9-b863-8eca98ac36e9","type":"Microsoft.Authorization/policyDefinitions","name":"1f314764-cb73-4fc9-b863-8eca98ac36e9"},{"properties":{"displayName":"Monitor + permissive network access of VMs running web-apps in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Azure + security center has discovered that some of your virtual machines are running + web applications, and the NSGs associated to these virtual machines are overly + permissive with regards to the web application ports","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"unprotectedWebApplication","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/201ea587-7c90-41c3-910f-c280ae01cfd6","type":"Microsoft.Authorization/policyDefinitions","name":"201ea587-7c90-41c3-910f-c280ae01cfd6"},{"properties":{"displayName":"[Deprecated]: + Audit API Apps that are not using custom domains","policyType":"BuiltIn","mode":"All","description":"Use + of custom domains protects a API app from common attacks such as phishing + and other DNS-related attacks.","metadata":{"category":"Security Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UsedCustomDomains","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/224da9fe-0d38-4e79-adb3-0a6e2af942ac","type":"Microsoft.Authorization/policyDefinitions","name":"224da9fe-0d38-4e79-adb3-0a6e2af942ac"},{"properties":{"displayName":"[Preview]: + Monitor open management ports on Virtual Machines","policyType":"BuiltIn","mode":"All","description":"Open + remote management ports are exposing your VM to a high level of risk from + Internet-based attacks. These attacks attempt to brute force credentials to + gain admin access to the machine.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"restrictAccessToManagementPorts","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/22730e10-96f6-4aac-ad84-9383d35b5917","type":"Microsoft.Authorization/policyDefinitions","name":"22730e10-96f6-4aac-ad84-9383d35b5917"},{"properties":{"displayName":"Audit + enabling of only secure connections to your Redis Cache","policyType":"BuiltIn","mode":"All","description":"Audit + enabling of only connections via SSL to Redis Cache. Use of secure connections + ensures authentication between the server and the service and protects data + in transit from network layer attacks such as man-in-the-middle, eavesdropping, + and session-hijacking","metadata":{"category":"Cache"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Cache/redis"},{"field":"Microsoft.Cache/Redis/enableNonSslPort","equals":"true"}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/22bee202-a82f-4305-9a2a-6d7f44d4dedb","type":"Microsoft.Authorization/policyDefinitions","name":"22bee202-a82f-4305-9a2a-6d7f44d4dedb"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that do not restrict the minimum + password length to 14 characters","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that do not restrict the minimum password length to 14 characters. It also + creates a system-assigned managed identity and deploys the VM extension for + Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"MinimumPasswordLength","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"MinimumPasswordLength"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/23020aa6-1135-4be2-bae2-149982b06eca","type":"Microsoft.Authorization/policyDefinitions","name":"23020aa6-1135-4be2-bae2-149982b06eca"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that do not have a maximum password age of 70 days","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that do not have a maximum password + age of 70 days. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"MaximumPasswordAge"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/24dde96d-f0b1-425e-884f-4a1421e2dcdc","type":"Microsoft.Authorization/policyDefinitions","name":"24dde96d-f0b1-425e-884f-4a1421e2dcdc"},{"properties":{"displayName":"Audit + the endpoint protection solution on virtual machine scale sets in Azure Security + Center","policyType":"BuiltIn","mode":"Indexed","description":"Audit the existence + and health of an endpoint protection solution on your virtual machines scale + sets, to protect them from threats and vulnerabilities.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"EndpointProtection","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de","type":"Microsoft.Authorization/policyDefinitions","name":"26a828e1-e88f-464e-bbb3-c134a282b9de"},{"properties":{"displayName":"Audit + configuration of metric alert rules on Batch accounts","policyType":"BuiltIn","mode":"Indexed","description":"Audit + configuration of metric alert rules on Batch account to enable the required + metric","metadata":{"category":"Batch"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"metricName":{"type":"String","metadata":{"displayName":"Metric + name","description":"The metric name that an alert rule must be enabled on"}}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Batch/batchAccounts"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/alertRules","existenceScope":"Subscription","existenceCondition":{"allOf":[{"field":"Microsoft.Insights/alertRules/isEnabled","equals":"true"},{"field":"Microsoft.Insights/alertRules/condition.dataSource.metricName","equals":"[parameters(''metricName'')]"},{"field":"Microsoft.Insights/alertRules/condition.dataSource.resourceUri","equals":"[concat(''/subscriptions/'', + subscription().subscriptionId, ''/resourcegroups/'', resourceGroup().name, + ''/providers/Microsoft.Batch/batchAccounts/'', field(''name''))]"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7","type":"Microsoft.Authorization/policyDefinitions","name":"26ee67a2-f81a-4ba8-b9ce-8550bd5ee1a7"},{"properties":{"displayName":"Deploy + default Microsoft IaaSAntimalware extension for Windows Server","policyType":"BuiltIn","mode":"Indexed","description":"This + policy deploys a Microsoft IaaSAntimalware extension with a default configuration + when a VM is not configured with the antimalware extension.","metadata":{"category":"Compute"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk"]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"IaaSAntimalware"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.Azure.Security"}]},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"ExclusionsPaths":{"type":"string","defaultValue":"","metadata":{"description":"Semicolon delimited list of file paths or locations to exclude from scanning"}},"ExclusionsExtensions":{"type":"string","defaultValue":"","metadata":{"description":"Semicolon delimited list of file extensions to exclude from scanning"}},"ExclusionsProcesses":{"type":"string","defaultValue":"","metadata":{"description":"Semicolon delimited list of process names to exclude from scanning"}},"RealtimeProtectionEnabled":{"type":"string","defaultValue":"true","metadata":{"description":"Indicates @@ -110,196 +333,1275 @@ interactions: whether scheduled scan setting type is set to Quick or Full (default is Quick)"}},"ScheduledScanSettingsDay":{"type":"string","defaultValue":"7","metadata":{"description":"Day of the week for scheduled scan (1-Sunday, 2-Monday, ..., 7-Saturday)"}},"ScheduledScanSettingsTime":{"type":"string","defaultValue":"120","metadata":{"description":"When to perform the scheduled scan, measured in minutes from midnight (0-1440). - For example: 0 = 12AM, 60 = 1AM, 120 = 2AM."}}},"resources":[{"name":"[concat(parameters(''vmName''),''/IaaSAntimalware'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","apiVersion":"2017-12-01","properties":{"publisher":"Microsoft.Azure.Security","type":"IaaSAntimalware","typeHandlerVersion":"1.3","autoUpgradeMinorVersion":true,"settings":{"AntimalwareEnabled":true,"RealtimeProtectionEnabled":"[parameters(''RealtimeProtectionEnabled'')]","ScheduledScanSettings":{"isEnabled":"[parameters(''ScheduledScanSettingsIsEnabled'')]","day":"[parameters(''ScheduledScanSettingsDay'')]","time":"[parameters(''ScheduledScanSettingsTime'')]","scanType":"[parameters(''ScheduledScanSettingsScanType'')]"},"Exclusions":{"Extensions":"[parameters(''ExclusionsExtensions'')]","Paths":"[parameters(''ExclusionsPaths'')]","Processes":"[parameters(''ExclusionsProcesses'')]"}}}}]},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"RealtimeProtectionEnabled":{"value":"true"},"ScheduledScanSettingsIsEnabled":{"value":"true"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/2835b622-407b-4114-9198-6f7064cbe0dc","type":"Microsoft.Authorization/policyDefinitions","name":"2835b622-407b-4114-9198-6f7064cbe0dc"},{"properties":{"displayName":"Apply - tag and its default value","policyType":"BuiltIn","description":"Applies a - required tag and its default value if it is not specified by the user. Does - not apply to resource groups.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag + For example: 0 = 12AM, 60 = 1AM, 120 = 2AM."}}},"resources":[{"name":"[concat(parameters(''vmName''),''/IaaSAntimalware'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","apiVersion":"2017-12-01","properties":{"publisher":"Microsoft.Azure.Security","type":"IaaSAntimalware","typeHandlerVersion":"1.3","autoUpgradeMinorVersion":true,"settings":{"AntimalwareEnabled":true,"RealtimeProtectionEnabled":"[parameters(''RealtimeProtectionEnabled'')]","ScheduledScanSettings":{"isEnabled":"[parameters(''ScheduledScanSettingsIsEnabled'')]","day":"[parameters(''ScheduledScanSettingsDay'')]","time":"[parameters(''ScheduledScanSettingsTime'')]","scanType":"[parameters(''ScheduledScanSettingsScanType'')]"},"Exclusions":{"Extensions":"[parameters(''ExclusionsExtensions'')]","Paths":"[parameters(''ExclusionsPaths'')]","Processes":"[parameters(''ExclusionsProcesses'')]"}}}}]},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"RealtimeProtectionEnabled":{"value":"true"},"ScheduledScanSettingsIsEnabled":{"value":"true"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/2835b622-407b-4114-9198-6f7064cbe0dc","type":"Microsoft.Authorization/policyDefinitions","name":"2835b622-407b-4114-9198-6f7064cbe0dc"},{"properties":{"displayName":"Append + tag and its default value","policyType":"BuiltIn","mode":"Indexed","description":"Appends + the specified tag and value when any resource which is missing this tag is + created or updated. Does not modify the tags of resources created before this + policy was applied until those resources are changed. Does not apply to resource + groups.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag Name","description":"Name of the tag, such as ''environment''"}},"tagValue":{"type":"String","metadata":{"displayName":"Tag Value","description":"Value of the tag, such as ''production''"}}},"policyRule":{"if":{"field":"[concat(''tags['', parameters(''tagName''), '']'')]","exists":"false"},"then":{"effect":"append","details":[{"field":"[concat(''tags['', parameters(''tagName''), '']'')]","value":"[parameters(''tagValue'')]"}]}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/2a0e14a6-b0a6-4fab-991a-187a4f81c498","type":"Microsoft.Authorization/policyDefinitions","name":"2a0e14a6-b0a6-4fab-991a-187a4f81c498"},{"properties":{"displayName":"[Preview]: - Deploy default OMS VM Extension for Ubuntu VMs.","policyType":"BuiltIn","mode":"NotSpecified","description":"This - policy deploys OMS VM Extensions on Ubuntu VMs, and connects to the selected - Log Analytics workspace","metadata":{"category":"Compute"},"parameters":{"logAnalytics":{"type":"String","metadata":{"displayName":"Log + Audit Windows VMs that do not store passwords using reversible encryption","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that do not store passwords using reversible + encryption. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"StorePasswordsUsingReversibleEncryption"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/2d60d3b7-aa10-454c-88a8-de39d99d17c6","type":"Microsoft.Authorization/policyDefinitions","name":"2d60d3b7-aa10-454c-88a8-de39d99d17c6"},{"properties":{"displayName":"[Preview]: + Audit Linux VMs that allow remote connections from accounts without passwords","policyType":"BuiltIn","mode":"All","description":"This + policy audits Linux virtual machines that allow remote connections from accounts + without passwords. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"PasswordPolicy_msid110"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/2d67222d-05fd-4526-a171-2ee132ad9e83","type":"Microsoft.Authorization/policyDefinitions","name":"2d67222d-05fd-4526-a171-2ee132ad9e83"},{"properties":{"displayName":"Audit + HTTPS only access for a Web Application","policyType":"BuiltIn","mode":"All","description":"Use + of HTTPS ensures server/service authentication and protects data in transit + from network layer eavesdropping attacks.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"OnlyHttpsForWebApplication","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/2fde8a98-6892-426a-83ba-050e640c0ce0","type":"Microsoft.Authorization/policyDefinitions","name":"2fde8a98-6892-426a-83ba-050e640c0ce0"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs that are not joined to the specified domain","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that are not joined to the specified domain. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"DomainName":{"type":"String","metadata":{"displayName":"Domain + Name (FQDN)","description":"The fully qualified domain name (FQDN) that the + Windows VMs should be joined to"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsDomainMembership","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[DomainMembership]WindowsDomainMembership;DomainName'', + ''='', parameters(''DomainName'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsDomainMembership"},"DomainName":{"value":"[parameters(''DomainName'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"DomainName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[DomainMembership]WindowsDomainMembership;DomainName","value":"[parameters(''DomainName'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/315c850a-272d-4502-8935-b79010405970","type":"Microsoft.Authorization/policyDefinitions","name":"315c850a-272d-4502-8935-b79010405970"},{"properties":{"displayName":"[Preview]: + Audit Log Analytics Agent Deployment - VM Image (OS) unlisted","policyType":"BuiltIn","mode":"Indexed","description":"Reports + VMs as non-compliant if the VM Image (OS) is not in the list defined and the + agent is not installed. The list of OS images will be updated over time as + support is updated.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude_windows":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]},"listOfImageIdToInclude_linux":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"not":{"anyOf":[{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_windows'')]"},{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_linux'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"12*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"14.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"16.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"18.04*LTS"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Oracle"},{"field":"Microsoft.Compute/imageOffer","equals":"Oracle-Linux"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7.*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["CentOS","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}}]},"then":{"effect":"auditIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","existenceCondition":{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/32133ab0-ee4b-4b44-98d6-042180979d50","type":"Microsoft.Authorization/policyDefinitions","name":"32133ab0-ee4b-4b44-98d6-042180979d50"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs on which the specified services are not + installed and ''Running''","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + on which the specified services are not installed and ''Running''. It also + creates a system-assigned managed identity and deploys the VM extension for + Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"ServiceName":{"type":"String","metadata":{"displayName":"Service + names (supports wildcards)","description":"A semicolon-separated list of the + names of the services that should be installed and ''Running''. e.g. ''WinRm;Wi*''"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsServiceStatus","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[WindowsServiceStatus]WindowsServiceStatus1;ServiceName'', + ''='', parameters(''ServiceName'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsServiceStatus"},"ServiceName":{"value":"[parameters(''ServiceName'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"ServiceName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[WindowsServiceStatus]WindowsServiceStatus1;ServiceName","value":"[parameters(''ServiceName'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/32b1e4d4-6cd5-47b4-a935-169da8a5c262","type":"Microsoft.Authorization/policyDefinitions","name":"32b1e4d4-6cd5-47b4-a935-169da8a5c262"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Linux VMs that have accounts without passwords","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Linux virtual machines + that have accounts without passwords. It also creates a system-assigned managed + identity and deploys the VM extension for Guest Configuration. This policy + should only be used along with its corresponding audit policy in an initiative. + For more information on Guest Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["microsoft-aks","AzureDatabricks","qubole-inc","datastax","couchbase","scalegrid","checkpoint","paloaltonetworks"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","like":"CentOS*"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"RHEL"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"osa"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"credativ"},{"field":"Microsoft.Compute/imageOffer","equals":"Debian"},{"field":"Microsoft.Compute/imageSKU","notLike":"7*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Suse"},{"field":"Microsoft.Compute/imageOffer","like":"SLES*"},{"field":"Microsoft.Compute/imageSKU","notLike":"11*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"12*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","in":["linux-data-science-vm-ubuntu","azureml"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-altus-centos-os"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","like":"linux*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"PasswordPolicy_msid232","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"PasswordPolicy_msid232"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforLinux'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforLinux","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3470477a-b35a-49db-aca5-1073d04524fe","type":"Microsoft.Authorization/policyDefinitions","name":"3470477a-b35a-49db-aca5-1073d04524fe"},{"properties":{"displayName":"Audit + unrestricted network access to storage accounts","policyType":"BuiltIn","mode":"Indexed","description":"Audit + unrestricted network access in your storage account firewall settings. Instead, + configure network rules so only applications from allowed networks can access + the storage account. To allow connections from specific internet or on-premise + clients, access can be granted to traffic from specific Azure virtual networks + or to public internet IP address ranges","metadata":{"category":"Storage"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"field":"Microsoft.Storage/storageAccounts/networkAcls.defaultAction","equals":"Allow"}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/34c877ad-507e-4c82-993e-3452a6e0ad3c","type":"Microsoft.Authorization/policyDefinitions","name":"34c877ad-507e-4c82-993e-3452a6e0ad3c"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Logic Apps","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Logic Apps"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Logic/workflows"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/34f95f76-5386-4de7-b824-0d8478470c9d","type":"Microsoft.Authorization/policyDefinitions","name":"34f95f76-5386-4de7-b824-0d8478470c9d"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that do not have a maximum password + age of 70 days","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that do not have a maximum password age of 70 days. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"MaximumPasswordAge","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"MaximumPasswordAge"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/356a906e-05e5-4625-8729-90771e0ee934","type":"Microsoft.Authorization/policyDefinitions","name":"356a906e-05e5-4625-8729-90771e0ee934"},{"properties":{"displayName":"Audit + CORS resource access restrictions for an API App","policyType":"BuiltIn","mode":"All","description":"Cross + origin Resource Sharing (CORS) should not allow all domains to access your + API app. Allow only required domains to interact with your API app.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"CorsRestrictionsForApiApp","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/358c20a6-3f9e-4f0e-97ff-c6ce485e2aac","type":"Microsoft.Authorization/policyDefinitions","name":"358c20a6-3f9e-4f0e-97ff-c6ce485e2aac"},{"properties":{"displayName":"Deploy + Advanced Threat Protection on Storage Accounts","policyType":"BuiltIn","mode":"Indexed","description":"This + policy enables Advanced Threat Protection on Storage Accounts.","metadata":{"category":"Storage"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["DeployIfNotExists","Disabled"],"defaultValue":"DeployIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Storage/storageAccounts"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/advancedThreatProtectionSettings","name":"current","existenceCondition":{"field":"Microsoft.Security/advancedThreatProtectionSettings/isEnabled","equals":"true"},"roleDefinitionIds":["/providers/Microsoft.Authorization/roleDefinitions/fb1c8493-542b-48eb-b624-b4c8fea62acd"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"storageAccountName":{"type":"string"}},"resources":[{"apiVersion":"2017-08-01-preview","type":"Microsoft.Storage/storageAccounts/providers/advancedThreatProtectionSettings","name":"[concat(parameters(''storageAccountName''), + ''/Microsoft.Security/current'')]","properties":{"isEnabled":true}}]},"parameters":{"storageAccountName":{"value":"[field(''name'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/361c2074-3595-4e5d-8cab-4f21dffc835c","type":"Microsoft.Authorization/policyDefinitions","name":"361c2074-3595-4e5d-8cab-4f21dffc835c"},{"properties":{"displayName":"Audit + enablement of encryption of Automation account variables","policyType":"BuiltIn","mode":"All","description":"It + is important to enable encryption of Automation account variable assets when + storing sensitive data","metadata":{"category":"Automation"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Automation/automationAccounts/variables"},{"field":"Microsoft.Automation/automationAccounts/variables/isEncrypted","notEquals":"true"}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3657f5a0-770e-44a3-b44e-9431ba1e9735","type":"Microsoft.Authorization/policyDefinitions","name":"3657f5a0-770e-44a3-b44e-9431ba1e9735"},{"properties":{"displayName":"Deploy + Threat Detection on SQL servers","policyType":"BuiltIn","mode":"Indexed","description":"This + policy ensures that Threat Detection is enabled on SQL Servers.","metadata":{"category":"SQL"},"parameters":{},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Sql/servers/securityAlertPolicies","name":"Default","existenceCondition":{"field":"Microsoft.Sql/securityAlertPolicies.state","equals":"Enabled"},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"serverName":{"type":"string"}},"variables":{},"resources":[{"name":"[concat(parameters(''serverName''), + ''/Default'')]","type":"Microsoft.Sql/servers/securityAlertPolicies","apiVersion":"2017-03-01-preview","properties":{"state":"Enabled","emailAccountAdmins":true}}]},"parameters":{"serverName":{"value":"[field(''name'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/36d49e87-48c4-4f2e-beed-ba4ed02b71f5","type":"Microsoft.Authorization/policyDefinitions","name":"36d49e87-48c4-4f2e-beed-ba4ed02b71f5"},{"properties":{"displayName":"Audit + use of classic storage accounts","policyType":"BuiltIn","mode":"All","description":"Use + new Azure Resource Manager v2 for your storage accounts to provide security + enhancements such as: stronger access control (RBAC), better auditing, Azure + Resource Manager based deployment and governance, access to managed identities, + access to key vault for secrets, Azure AD-based authentication and support + for tags and resource groups for easier security management","metadata":{"category":"Storage"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.classicStorage/storageAccounts"},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/37e0d2fe-28a5-43d6-a273-67d37d1f5606","type":"Microsoft.Authorization/policyDefinitions","name":"37e0d2fe-28a5-43d6-a273-67d37d1f5606"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in IoT Hubs","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Internet of Things"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Devices/IotHubs"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/383856f8-de7f-44a2-81fc-e5135b5c2aa4","type":"Microsoft.Authorization/policyDefinitions","name":"383856f8-de7f-44a2-81fc-e5135b5c2aa4"},{"properties":{"displayName":"[Preview]: + Pod Security Policies should be defined on Kubernetes Services","policyType":"BuiltIn","mode":"All","description":"Define + Pod Security Policies to reduce the attack vector by removing unnecessary + application privileges. It is recommended to configure Pod Security Policies + to only allow pods to access the resources which they have permissions to + access.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.ContainerService/managedClusters"},{"anyOf":[{"field":"Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy","exists":"false"},{"field":"Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy","equals":"false"}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3abeb944-26af-43ee-b83d-32aaf060fb94","type":"Microsoft.Authorization/policyDefinitions","name":"3abeb944-26af-43ee-b83d-32aaf060fb94"},{"properties":{"displayName":"[Preview]: + Deploy Dependency Agent for Windows VM Scale Sets (VMSS)","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Dependency Agent for Windows VM Scale Sets if the VM Image (OS) is in the + list defined and the agent is not installed. The list of OS images will be + updated over time as support is updated. Note: if your scale set upgradePolicy + is set to Manual, you need to apply the extension to the all VMs in the set + by calling upgrade on them. In CLI this would be az vmss update-instances.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/type","equals":"DependencyAgentWindows"},{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.Azure.Monitoring.DependencyAgent"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"}},"variables":{"vmExtensionName":"DependencyAgent","vmExtensionPublisher":"Microsoft.Azure.Monitoring.DependencyAgent","vmExtensionType":"DependencyAgentWindows","vmExtensionTypeHandlerVersion":"9.7"},"resources":[{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","apiVersion":"2018-06-01","location":"[parameters(''location'')]","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + extension for: '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3be22e3b-d919-47aa-805e-8985dbeb0ad9","type":"Microsoft.Authorization/policyDefinitions","name":"3be22e3b-d919-47aa-805e-8985dbeb0ad9"},{"properties":{"displayName":"[Preview]: + Deploy Log Analytics Agent for Windows VM Scale Sets (VMSS)","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Log Analytics Agent for Windows VM Scale Sets if the VM Image (OS) is in the + list defined and the agent is not installed. The list of OS images will be + updated over time as support is updated. Note: if your scale set upgradePolicy + is set to Manual, you need to apply the extension to the all VMs in the set + by calling upgrade on them. In CLI this would be az vmss update-instances.","metadata":{"category":"Monitoring"},"parameters":{"logAnalytics":{"type":"String","metadata":{"displayName":"Log + Analytics workspace","description":"Select Log Analytics workspace from dropdown + list. If this workspace is outside of the scope of the assignment you must + manually grant ''Log Analytics Contributor'' permissions (or similar) to the + policy assignment''s principal ID.","strongType":"omsWorkspace","assignPermissions":true}},"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293","/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/type","equals":"MicrosoftMonitoringAgent"},{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"logAnalytics":{"type":"string"}},"variables":{"vmExtensionName":"MMAExtension","vmExtensionPublisher":"Microsoft.EnterpriseCloud.Monitoring","vmExtensionType":"MicrosoftMonitoringAgent","vmExtensionTypeHandlerVersion":"1.0"},"resources":[{"name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","type":"Microsoft.Compute/virtualMachineScaleSets/extensions","location":"[parameters(''location'')]","apiVersion":"2018-06-01","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true,"settings":{"workspaceId":"[reference(parameters(''logAnalytics''), + ''2015-03-20'').customerId]","stopOnMultipleConnections":"true"},"protectedSettings":{"workspaceKey":"[listKeys(parameters(''logAnalytics''), + ''2015-03-20'').primarySharedKey]"}}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + extension for: '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"logAnalytics":{"value":"[parameters(''logAnalytics'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3c1b3629-c8f8-4bf6-862c-037cb9094038","type":"Microsoft.Authorization/policyDefinitions","name":"3c1b3629-c8f8-4bf6-862c-037cb9094038"},{"properties":{"displayName":"Audit + OS vulnerabilities on your virtual machine scale sets in Azure Security Center","policyType":"BuiltIn","mode":"Indexed","description":"Audit + the OS vulnerabilities on your virtual machine scale sets to protect them + from attacks.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"OsVulnerabilities","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4","type":"Microsoft.Authorization/policyDefinitions","name":"3c735d8a-a4ba-4a3a-b7cf-db7754cf57f4"},{"properties":{"displayName":"Deploy + default Log Analytics Agent for Ubuntu VMs","policyType":"BuiltIn","mode":"Indexed","description":"This + policy deploys the Log Analytics Agent on Ubuntu VMs, and connects to the + selected Log Analytics workspace","metadata":{"category":"Compute","deprecated":true},"parameters":{"logAnalytics":{"type":"String","metadata":{"displayName":"Log Analytics workspace","description":"Select Log Analytics workspace from dropdown - list","strongType":"omsWorkspace"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"field":"Microsoft.Compute/imageSKU","in":["14.04.2-LTS","12.04.5-LTS"]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"OmsAgentForLinux"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"logAnalytics":{"type":"string"}},"resources":[{"name":"[concat(parameters(''vmName''),''/omsPolicy'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","apiVersion":"2017-12-01","properties":{"publisher":"Microsoft.EnterpriseCloud.Monitoring","type":"OmsAgentForLinux","typeHandlerVersion":"1.4","autoUpgradeMinorVersion":true,"settings":{"workspaceId":"[reference(parameters(''logAnalytics''), + list. If this workspace is outside of the scope of the assignment you must + manually grant ''Log Analytics Contributor'' permissions (or similar) to the + policy assignment''s principal ID.","strongType":"omsWorkspace"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"field":"Microsoft.Compute/imageSKU","in":["18.04-LTS","16.04-LTS","16.04.0-LTS","14.04.2-LTS","12.04.5-LTS"]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"OmsAgentForLinux"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"}]},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"logAnalytics":{"type":"string"}},"resources":[{"name":"[concat(parameters(''vmName''),''/omsPolicy'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","apiVersion":"2017-12-01","properties":{"publisher":"Microsoft.EnterpriseCloud.Monitoring","type":"OmsAgentForLinux","typeHandlerVersion":"1.4","autoUpgradeMinorVersion":true,"settings":{"workspaceId":"[reference(parameters(''logAnalytics''), ''2015-03-20'').customerId]"},"protectedSettings":{"workspaceKey":"[listKeys(parameters(''logAnalytics''), ''2015-03-20'').primarySharedKey]"}}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled - monitoring for Linux VM'', '': '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"logAnalytics":{"value":"[parameters(''logAnalytics'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3d8640fc-63f6-4734-8dcb-cfd3d8c78f38","type":"Microsoft.Authorization/policyDefinitions","name":"3d8640fc-63f6-4734-8dcb-cfd3d8c78f38"},{"properties":{"displayName":"[Preview]: - Monitor permissive network access in Security Center","policyType":"BuiltIn","mode":"All","description":"Network + monitoring for Linux VM'', '': '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"logAnalytics":{"value":"[parameters(''logAnalytics'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3d8640fc-63f6-4734-8dcb-cfd3d8c78f38","type":"Microsoft.Authorization/policyDefinitions","name":"3d8640fc-63f6-4734-8dcb-cfd3d8c78f38"},{"properties":{"displayName":"[Deprecated]: + Audit API Applications that are not using latest supported PHP Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported PHP version for the latest security classes. Using older + classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestPHP","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/3fe37002-5d00-4b37-a301-da09e3a0ca66","type":"Microsoft.Authorization/policyDefinitions","name":"3fe37002-5d00-4b37-a301-da09e3a0ca66"},{"properties":{"displayName":"Audit + secure transfer to storage accounts","policyType":"BuiltIn","mode":"Indexed","description":"Audit + requirment of Secure transfer in your storage account. Secure transfer is + an option that forces your storage account to accept requests only from secure + connections (HTTPS). Use of HTTPS ensures authentication between the server + and the service and protects data in transit from network layer attacks such + as man-in-the-middle, eavesdropping, and session-hijacking","metadata":{"category":"Storage"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"not":{"field":"Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly","equals":"True"}}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/404c3081-a854-4457-ae30-26a93ef643f9","type":"Microsoft.Authorization/policyDefinitions","name":"404c3081-a854-4457-ae30-26a93ef643f9"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Batch accounts","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Batch"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Batch/batchAccounts"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/428256e6-1fac-4f48-a757-df34c2b3336d","type":"Microsoft.Authorization/policyDefinitions","name":"428256e6-1fac-4f48-a757-df34c2b3336d"},{"properties":{"displayName":"[Deprecated]: + Monitor permissive network access in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Network Security Groups with too permissive rules will be monitored by Azure Security - Center as recommendations.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines","Microsoft.Network/virtualNetworks","Microsoft.ClassicNetwork/virtualNetworks"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"permissiveNetworkAccess","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed","type":"Microsoft.Authorization/policyDefinitions","name":"44452482-524f-4bf4-b852-0bff7cc4a3ed"},{"properties":{"displayName":"Require - SQL Server version 12.0","policyType":"BuiltIn","description":"This policy - ensures all SQL servers use version 12.0.","metadata":{"category":"SQL"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Sql/servers"},{"not":{"field":"Microsoft.Sql/servers/version","equals":"12.0"}}]},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf","type":"Microsoft.Authorization/policyDefinitions","name":"464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf"},{"properties":{"displayName":"Enforce - automatic OS upgrade with app health checks on VMSS","policyType":"BuiltIn","mode":"All","description":"This - policy enforces usage of automatic OS upgrade with application health checks - through health probes, which enables safer rollout by evaluating application - health after each OS upgrade batch.","metadata":{"category":"Compute"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"anyOf":[{"not":{"field":"Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgrade","equals":"True"}},{"field":"Microsoft.Compute/VirtualMachineScaleSets/networkProfile.healthProbe.id","exists":"False"}]}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/465f0161-0087-490a-9ad9-ad6217f4f43a","type":"Microsoft.Authorization/policyDefinitions","name":"465f0161-0087-490a-9ad9-ad6217f4f43a"},{"properties":{"displayName":"[Preview]: - Monitor possible app Whitelisting in Security Center","policyType":"BuiltIn","mode":"All","description":"Possible - Application Whitelist configuration will be monitored by Azure Security Center.","metadata":{"category":"Security - Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"applicationWhitelisting","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc","type":"Microsoft.Authorization/policyDefinitions","name":"47a6b606-51aa-4496-8bb7-64b11cf66adc"},{"properties":{"displayName":"Apply - tag and its default value to resource groups","policyType":"BuiltIn","mode":"All","description":"Applies - a required tag and its default value to resource groups if it is not specified - by the user.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag + Center as recommendations","metadata":{"category":"Security Center","deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"permissiveNetworkAccess","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/44452482-524f-4bf4-b852-0bff7cc4a3ed","type":"Microsoft.Authorization/policyDefinitions","name":"44452482-524f-4bf4-b852-0bff7cc4a3ed"},{"properties":{"displayName":"Require + SQL Server version 12.0","policyType":"BuiltIn","mode":"Indexed","description":"This + policy ensures all SQL servers use version 12.0","metadata":{"category":"SQL"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Sql/servers"},{"not":{"field":"Microsoft.Sql/servers/version","equals":"12.0"}}]},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf","type":"Microsoft.Authorization/policyDefinitions","name":"464dbb85-3d5f-4a1d-bb09-95a9b5dd19cf"},{"properties":{"displayName":"[Deprecated]: + Audit Web Applications that are not using latest supported Python Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported Python version for the latest security classes. Using + older classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestPython","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/46544d7b-1f0d-46f5-81da-5c1351de1b06","type":"Microsoft.Authorization/policyDefinitions","name":"46544d7b-1f0d-46f5-81da-5c1351de1b06"},{"properties":{"displayName":"Require + automatic OS image patching on Virtual Machine Scale Sets","policyType":"BuiltIn","mode":"All","description":"This + policy enforces enabling automatic OS image patching on Virtual Machine Scale + Sets to always keep Virtual Machines secure by safely applying latest security + patches every month.","metadata":{"category":"Compute"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"field":"Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgradePolicy.enableAutomaticOSUpgrade","notEquals":"True"},{"field":"Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgrade","notEquals":"True"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/465f0161-0087-490a-9ad9-ad6217f4f43a","type":"Microsoft.Authorization/policyDefinitions","name":"465f0161-0087-490a-9ad9-ad6217f4f43a"},{"properties":{"displayName":"Monitor + possible app Whitelisting in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Possible + Application Whitelist configuration will be monitored by Azure Security Center","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"applicationWhitelisting","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/47a6b606-51aa-4496-8bb7-64b11cf66adc","type":"Microsoft.Authorization/policyDefinitions","name":"47a6b606-51aa-4496-8bb7-64b11cf66adc"},{"properties":{"displayName":"[Deprecated]: + Audit IP restrictions configuration for an API App","policyType":"BuiltIn","mode":"All","description":"IP + Restrictions allow you to define a list of IP addresses that are allowed to + access your app. Use of IP Restrictions protects an API app from common attacks.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"ConfigureIPRestrictions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/48893b84-a2c8-4d9a-badf-835d5d1b7d53","type":"Microsoft.Authorization/policyDefinitions","name":"48893b84-a2c8-4d9a-badf-835d5d1b7d53"},{"properties":{"displayName":"Append + tag and its default value to resource groups","policyType":"BuiltIn","mode":"All","description":"Appends + the specified tag and value when any resource group which is missing this + tag is created or updated. Does not modify the tags of resource groups created + before this policy was applied until those resource groups are changed.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag Name","description":"Name of the tag, such as ''environment''"}},"tagValue":{"type":"String","metadata":{"displayName":"Tag Value","description":"Value of the tag, such as ''production''"}}},"policyRule":{"if":{"allOf":[{"field":"[concat(''tags['', parameters(''tagName''), '']'')]","exists":"false"},{"field":"type","equals":"Microsoft.Resources/subscriptions/resourceGroups"}]},"then":{"effect":"append","details":[{"field":"[concat(''tags['', - parameters(''tagName''), '']'')]","value":"[parameters(''tagValue'')]"}]}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/49c88fc8-6fd1-46fd-a676-f12d1d3a4c71","type":"Microsoft.Authorization/policyDefinitions","name":"49c88fc8-6fd1-46fd-a676-f12d1d3a4c71"},{"properties":{"displayName":"Allow - resource creation only in India data centers","policyType":"BuiltIn","description":"Allows + parameters(''tagName''), '']'')]","value":"[parameters(''tagValue'')]"}]}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/49c88fc8-6fd1-46fd-a676-f12d1d3a4c71","type":"Microsoft.Authorization/policyDefinitions","name":"49c88fc8-6fd1-46fd-a676-f12d1d3a4c71"},{"properties":{"displayName":"Deploy + requirements to audit Linux VMs that do not have the specified applications + installed","policyType":"BuiltIn","mode":"Indexed","description":"This policy + creates a Guest Configuration assignment to audit Linux virtual machines that + do not have the specified applications installed. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"ApplicationName":{"type":"String","metadata":{"displayName":"Application + names","description":"A semicolon-separated list of the names of the applications + that should be installed. e.g. ''python; powershell''"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["microsoft-aks","AzureDatabricks","qubole-inc","datastax","couchbase","scalegrid","checkpoint","paloaltonetworks"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","like":"CentOS*"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"RHEL"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"osa"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"credativ"},{"field":"Microsoft.Compute/imageOffer","equals":"Debian"},{"field":"Microsoft.Compute/imageSKU","notLike":"7*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Suse"},{"field":"Microsoft.Compute/imageOffer","like":"SLES*"},{"field":"Microsoft.Compute/imageSKU","notLike":"11*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"12*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","in":["linux-data-science-vm-ubuntu","azureml"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-altus-centos-os"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","like":"linux*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"installed_application_linux","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[ChefInSpec]InstalledApplicationLinuxResource1;AttributesYmlContent'', + ''='', concat(''packages: ['', replace(parameters(''ApplicationName''), '';'', + '',''), '']'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"installed_application_linux"},"ApplicationName":{"value":"[parameters(''ApplicationName'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"ApplicationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[ChefInSpec]InstalledApplicationLinuxResource1;AttributesYmlContent","value":"[concat(''packages: + ['', replace(parameters(''ApplicationName''), '';'', '',''), '']'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforLinux'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforLinux","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/4d1c04de-2172-403f-901b-90608c35c721","type":"Microsoft.Authorization/policyDefinitions","name":"4d1c04de-2172-403f-901b-90608c35c721"},{"properties":{"displayName":"[Preview]: + Deploy Dependency Agent for Linux VMs","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Dependency Agent for Linux VMs if the VM Image (OS) is in the list defined + and the agent is not installed.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["14.04.0-LTS","14.04.1-LTS","14.04.5-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["16.04-LTS","16.04.0-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["18.04-LTS"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["12-SP2","12-SP3"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["CentOS","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachines/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachines/extensions/type","equals":"DependencyAgentLinux"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.Azure.Monitoring.DependencyAgent"},{"field":"Microsoft.Compute/virtualMachines/extensions/provisioningState","equals":"Succeeded"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"}},"variables":{"vmExtensionName":"DependencyAgent","vmExtensionPublisher":"Microsoft.Azure.Monitoring.DependencyAgent","vmExtensionType":"DependencyAgentLinux","vmExtensionTypeHandlerVersion":"9.6"},"resources":[{"type":"Microsoft.Compute/virtualMachines/extensions","name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","apiVersion":"2018-06-01","location":"[parameters(''location'')]","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + extension for VM'', '': '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/4da21710-ce6f-4e06-8cdb-5cc4c93ffbee","type":"Microsoft.Authorization/policyDefinitions","name":"4da21710-ce6f-4e06-8cdb-5cc4c93ffbee"},{"properties":{"displayName":"Audit + maximum number of owners for a subscription","policyType":"BuiltIn","mode":"All","description":"It + is recommended to designate up to 3 subscription owners in order to reduce + the potential for breach by a compromised owner.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"DesignateLessThanXOwners","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/4f11b553-d42e-4e3a-89be-32ca364cad4c","type":"Microsoft.Authorization/policyDefinitions","name":"4f11b553-d42e-4e3a-89be-32ca364cad4c"},{"properties":{"displayName":"Audit + CORS resource access restrictions for a Web Application","policyType":"BuiltIn","mode":"All","description":"Cross + origin Resource Sharing (CORS) should not allow all domains to access your + web application. Allow only required domains to interact with your web app.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"CorsRestrictionsForWebApplication","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5744710e-cc2f-4ee8-8809-3b11e89f4bc9","type":"Microsoft.Authorization/policyDefinitions","name":"5744710e-cc2f-4ee8-8809-3b11e89f4bc9"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that do not have a minimum password age of 1 day","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that do not have a minimum password + age of 1 day. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"MinimumPasswordAge"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5aa11bbc-5c76-4302-80e5-aba46a4282e7","type":"Microsoft.Authorization/policyDefinitions","name":"5aa11bbc-5c76-4302-80e5-aba46a4282e7"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that do not restrict the minimum password length to 14 characters","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that do not restrict the minimum password + length to 14 characters. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"MinimumPasswordLength"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5aebc8d1-020d-4037-89a0-02043a7524ec","type":"Microsoft.Authorization/policyDefinitions","name":"5aebc8d1-020d-4037-89a0-02043a7524ec"},{"properties":{"displayName":"Audit + Linux VMs that have the specified applications installed","policyType":"BuiltIn","mode":"All","description":"This + policy audits Linux virtual machines that have the specified applications + installed. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"not_installed_application_linux"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5b842acb-0fe7-41b0-9f40-880ec4ad84d8","type":"Microsoft.Authorization/policyDefinitions","name":"5b842acb-0fe7-41b0-9f40-880ec4ad84d8"},{"properties":{"displayName":"[Preview]: + Audit Log Analytics Agent Deployment in VMSS - VM Image (OS) unlisted","policyType":"BuiltIn","mode":"Indexed","description":"Reports + VMSS as non-compliant if the VM Image (OS) is not in the list defined and + the agent is not installed. The list of OS images will be updated over time + as support is updated.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude_windows":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]},"listOfImageIdToInclude_linux":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"not":{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_windows'')]"},{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_linux'')]"},{"anyOf":[{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"12*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"14.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"16.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"18.04*LTS"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Oracle"},{"field":"Microsoft.Compute/imageOffer","equals":"Oracle-Linux"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7.*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["CentOS","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}}]},"then":{"effect":"auditIfNotExists","details":{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","existenceCondition":{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138","type":"Microsoft.Authorization/policyDefinitions","name":"5c3bc7b8-a64c-4e08-a9cd-7ff0f31e1138"},{"properties":{"displayName":"Audit + external accounts with write permissions on a subscription","policyType":"BuiltIn","mode":"All","description":"External + accounts with write privileges should be removed from your subscription in + order to prevent unmonitored access.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoveExternalAccountsWithWritePermissions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5c607a2e-c700-4744-8254-d77e7c9eb5e4","type":"Microsoft.Authorization/policyDefinitions","name":"5c607a2e-c700-4744-8254-d77e7c9eb5e4"},{"properties":{"displayName":"Audit + HTTPS only access for a Function App","policyType":"BuiltIn","mode":"All","description":"Use + of HTTPS ensures server/service authentication and protects data in transit + from network layer eavesdropping attacks.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"functionapp"},{"field":"kind","equals":"functionapp,linux"},{"field":"kind","equals":"functionapp,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"OnlyHttpsForFunctionApp","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5df82f4f-773a-4a2d-97a2-422a806f1a55","type":"Microsoft.Authorization/policyDefinitions","name":"5df82f4f-773a-4a2d-97a2-422a806f1a55"},{"properties":{"displayName":"[Deprecated]: + Audit Web Applications that are not using latest supported .NET Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported .NET Framework version for the latest security classes. + Using older classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestDotNet","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5e3315e0-a414-4efb-a4d2-c7bd2b0443d2","type":"Microsoft.Authorization/policyDefinitions","name":"5e3315e0-a414-4efb-a4d2-c7bd2b0443d2"},{"properties":{"displayName":"Audit + Windows VMs that do not have the specified applications installed","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that do not have the specified applications + installed. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WhitelistedApplication"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5e393799-e3ca-4e43-a9a5-0ec4648a57d9","type":"Microsoft.Authorization/policyDefinitions","name":"5e393799-e3ca-4e43-a9a5-0ec4648a57d9"},{"properties":{"displayName":"Allow + resource creation only in India data centers","policyType":"BuiltIn","mode":"Indexed","description":"Allows resource creation in the following locations only: West India, South India, Central India","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["westindia","southindia","centralindia"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54","type":"Microsoft.Authorization/policyDefinitions","name":"5ee85ce5-e7eb-44d6-b4a2-32a24be1ca54"},{"properties":{"displayName":"[Preview]: - Audit missing blob encryption for storage accounts","policyType":"BuiltIn","mode":"All","description":"This + Deploy Log Analytics Agent for Linux VM Scale Sets (VMSS)","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Log Analytics Agent for Linux VM Scale Sets if the VM Image (OS) is in the + list defined and the agent is not installed. Note: if your scale set upgradePolicy + is set to Manual, you need to apply the extension to the all VMs in the set + by calling upgrade on them. In CLI this would be az vmss update-instances.","metadata":{"category":"Monitoring"},"parameters":{"logAnalytics":{"type":"String","metadata":{"displayName":"Log + Analytics workspace","description":"Select Log Analytics workspace from dropdown + list. If this workspace is outside of the scope of the assignment you must + manually grant ''Log Analytics Contributor'' permissions (or similar) to the + policy assignment''s principal ID.","strongType":"omsWorkspace","assignPermissions":true}},"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"12*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"14.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"16.04*LTS"},{"field":"Microsoft.Compute/imageSKU","like":"18.04*LTS"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Oracle"},{"field":"Microsoft.Compute/imageOffer","equals":"Oracle-Linux"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7.*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["CentOS","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/92aaf0da-9dab-42b6-94a3-d43ce8d16293","/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/type","equals":"OmsAgentForLinux"},{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"logAnalytics":{"type":"string"}},"variables":{"vmExtensionName":"MMAExtension","vmExtensionPublisher":"Microsoft.EnterpriseCloud.Monitoring","vmExtensionType":"OmsAgentForLinux","vmExtensionTypeHandlerVersion":"1.7"},"resources":[{"name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","type":"Microsoft.Compute/virtualMachineScaleSets/extensions","location":"[parameters(''location'')]","apiVersion":"2018-06-01","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true,"settings":{"workspaceId":"[reference(parameters(''logAnalytics''), + ''2015-03-20'').customerId]","stopOnMultipleConnections":"true"},"protectedSettings":{"workspaceKey":"[listKeys(parameters(''logAnalytics''), + ''2015-03-20'').primarySharedKey]"}}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + extension for: '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"logAnalytics":{"value":"[parameters(''logAnalytics'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069","type":"Microsoft.Authorization/policyDefinitions","name":"5ee9e9ed-0b42-41b7-8c9c-3cfb2fbe2069"},{"properties":{"displayName":"Audit + external accounts with read permissions on a subscription","policyType":"BuiltIn","mode":"All","description":"External + accounts with read privileges should be removed from your subscription in + order to prevent unmonitored access.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoveExternalAccountsWithReadPermissions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/5f76cf89-fbf2-47fd-a3f4-b891fa780b60","type":"Microsoft.Authorization/policyDefinitions","name":"5f76cf89-fbf2-47fd-a3f4-b891fa780b60"},{"properties":{"displayName":"Audit + Windows web servers that are not using secure communication protocols","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows web servers that are not using secure communication + protocols (TLS 1.1 or TLS 1.2). This policy should only be used along with + its corresponding deploy policy in an initiative. For more information on + Guest Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"AuditSecureProtocol"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/60ffe3e2-4604-4460-8f22-0f1da058266c","type":"Microsoft.Authorization/policyDefinitions","name":"60ffe3e2-4604-4460-8f22-0f1da058266c"},{"properties":{"displayName":"Deploy + Advanced Data Security on SQL servers","policyType":"BuiltIn","mode":"Indexed","description":"This + policy enables Advanced Data Security on SQL Servers. This includes turning + on Threat Detection and Vulnerability Assessment. It will automatically create + a storage account in the same region and resource group as the SQL server + to store scan results, with a ''sqlva'' prefix.","metadata":{"category":"SQL"},"parameters":{},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Sql/servers/securityAlertPolicies","name":"Default","existenceCondition":{"field":"Microsoft.Sql/securityAlertPolicies.state","equals":"Enabled"},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3","/providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"serverName":{"type":"string"},"location":{"type":"string"}},"variables":{"serverResourceGroupName":"[resourceGroup().name]","subscriptionId":"[subscription().subscriptionId]","uniqueStorage":"[uniqueString(variables(''subscriptionId''), + variables(''serverResourceGroupName''), parameters(''location''))]","storageName":"[tolower(concat(''sqlva'', + variables(''uniqueStorage'')))]"},"resources":[{"type":"Microsoft.Storage/storageAccounts","name":"[variables(''storageName'')]","apiVersion":"2016-01-01","location":"[parameters(''location'')]","sku":{"name":"Standard_LRS"},"kind":"Storage","properties":{}},{"name":"[concat(parameters(''serverName''), + ''/Default'')]","type":"Microsoft.Sql/servers/securityAlertPolicies","apiVersion":"2017-03-01-preview","properties":{"state":"Enabled","emailAccountAdmins":true}},{"name":"[concat(parameters(''serverName''), + ''/Default'')]","type":"Microsoft.Sql/servers/vulnerabilityAssessments","apiVersion":"2018-06-01-preview","properties":{"storageContainerPath":"[concat(reference(resourceId(''Microsoft.Storage/storageAccounts'', + variables(''storageName''))).primaryEndpoints.blob, ''vulnerability-assessment'')]","storageAccountAccessKey":"[listKeys(resourceId(''Microsoft.Storage/storageAccounts'', + variables(''storageName'')), ''2018-02-01'').keys[0].value]","recurringScans":{"isEnabled":true,"emailSubscriptionAdmins":true,"emails":[]}},"dependsOn":["[concat(''Microsoft.Storage/storageAccounts/'', + variables(''storageName''))]","[concat(''Microsoft.Sql/servers/'', parameters(''serverName''), + ''/securityAlertPolicies/Default'')]"]}]},"parameters":{"serverName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/6134c3db-786f-471e-87bc-8f479dc890f6","type":"Microsoft.Authorization/policyDefinitions","name":"6134c3db-786f-471e-87bc-8f479dc890f6"},{"properties":{"displayName":"Audit + the setting of ClusterProtectionLevel property to EncryptAndSign in Service + Fabric","policyType":"BuiltIn","mode":"Indexed","description":"Service Fabric + provides three levels of protection (None, Sign and EncryptAndSign) for node-to-node + communication using a primary cluster certificate. Set the protection level + to ensure that all node-to-node messages are encrypted and digitally signed","metadata":{"category":"Service + Fabric"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.ServiceFabric/clusters"},{"anyOf":[{"field":"Microsoft.ServiceFabric/clusters/fabricSettings[*].name","notEquals":"Security"},{"field":"Microsoft.ServiceFabric/clusters/fabricSettings[*].parameters[*].name","notEquals":"ClusterProtectionLevel"},{"field":"Microsoft.ServiceFabric/clusters/fabricSettings[*].parameters[*].value","notEquals":"EncryptAndSign"}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/617c02be-7f02-4efd-8836-3180d47b6c68","type":"Microsoft.Authorization/policyDefinitions","name":"617c02be-7f02-4efd-8836-3180d47b6c68"},{"properties":{"displayName":"Audit + missing blob encryption for storage accounts","policyType":"BuiltIn","mode":"All","description":"This policy audits storage accounts without blob encryption. It only applies to - Microsoft.Storage resource types, not other storage providers.Possible network + Microsoft.Storage resource types, not other storage providers. Possible network Just In Time access will be monitored by Azure Security Center as recommendations.","metadata":{"category":"Security - Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"not":{"field":"Microsoft.Storage/storageAccounts/enableBlobEncryption","equals":"True"}}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759","type":"Microsoft.Authorization/policyDefinitions","name":"655cb504-bcee-4362-bd4c-402e6aa38759"},{"properties":{"displayName":"Not - allowed resource types","policyType":"BuiltIn","description":"This policy - enables you to specify the resource types that your organization cannot deploy.","metadata":{"category":"General"},"parameters":{"listOfResourceTypesNotAllowed":{"type":"Array","metadata":{"description":"The + Center","deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"not":{"field":"Microsoft.Storage/storageAccounts/enableBlobEncryption","equals":"True"}}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/655cb504-bcee-4362-bd4c-402e6aa38759","type":"Microsoft.Authorization/policyDefinitions","name":"655cb504-bcee-4362-bd4c-402e6aa38759"},{"properties":{"displayName":"[Deprecated]: + Audit IP restrictions configuration for a Function App","policyType":"BuiltIn","mode":"All","description":"IP + Restrictions allow you to define a list of IP addresses that are allowed to + access your app. Use of IP Restrictions protects a Function app from common + attacks.","metadata":{"category":"Security Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"functionapp"},{"field":"kind","equals":"functionapp,linux"},{"field":"kind","equals":"functionapp,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"ConfigureIPRestrictions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/664346d9-be92-43fb-a219-d595eeb76a90","type":"Microsoft.Authorization/policyDefinitions","name":"664346d9-be92-43fb-a219-d595eeb76a90"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs on which the Log Analytics agent + is not connected as expected","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + on which the Log Analytics agent is not connected to the specified workspaces. + It also creates a system-assigned managed identity and deploys the VM extension + for Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative/policy set. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"WorkspaceId":{"type":"String","metadata":{"displayName":"Connected + workspace IDs","description":"A semicolon-separated list of the workspace + IDs that the Log Analytics agent should be connected to"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsLogAnalyticsAgentConnection","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"allOf":[{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[LogAnalyticsAgent]LogAnalyticsAgent1;WorkspaceId'', + ''='', parameters(''WorkspaceId'')))]"}]},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsLogAnalyticsAgentConnection"},"WorkspaceId":{"value":"[parameters(''WorkspaceId'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"WorkspaceId":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[LogAnalyticsAgent]LogAnalyticsAgent1;WorkspaceId","value":"[parameters(''WorkspaceId'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/68511db2-bd02-41c4-ae6b-1900a012968a","type":"Microsoft.Authorization/policyDefinitions","name":"68511db2-bd02-41c4-ae6b-1900a012968a"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs on which Windows Defender Exploit + Guard is not enabled","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + on which Windows Defender Exploit Guard is not enabled. It also creates a + system-assigned managed identity and deploys the VM extension for Guest Configuration. + This policy should only be used along with its corresponding audit policy + in an initiative/policy set. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"NotAvailableMachineState":{"type":"String","metadata":{"displayName":"State + in which to show VMs on which Windows Defender Exploit Guard is not available","description":"Windows + Defender Exploit Guard is only available starting with Windows 10/Windows + Server with update 1709. Setting this value to ''Non-Compliant'' will make + machines with older versions on which Windows Defender Exploit Guard is not + available (such as Windows Server 2012 R2) non-compliant. Setting this value + to ''Compliant'' will make these machines compliant."},"allowedValues":["Compliant","Non-Compliant"],"defaultValue":"Non-Compliant"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsDefenderExploitGuard","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[WindowsDefenderExploitGuard]WindowsDefenderExploitGuard1;NotAvailableMachineState'', + ''='', parameters(''NotAvailableMachineState'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsDefenderExploitGuard"},"NotAvailableMachineState":{"value":"[parameters(''NotAvailableMachineState'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"NotAvailableMachineState":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[WindowsDefenderExploitGuard]WindowsDefenderExploitGuard1;NotAvailableMachineState","value":"[parameters(''NotAvailableMachineState'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/6a7a2bcf-f9be-4e35-9734-4f9657a70f1d","type":"Microsoft.Authorization/policyDefinitions","name":"6a7a2bcf-f9be-4e35-9734-4f9657a70f1d"},{"properties":{"displayName":"[Deprecated]: + Audit IP restrictions configuration for a Web Application","policyType":"BuiltIn","mode":"All","description":"IP + Restrictions allow you to define a list of IP addresses that are allowed to + access your app. Use of IP Restrictions protects a web application from common + attacks.","metadata":{"category":"Security Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"ConfigureIPRestrictions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/6a8450e2-6c61-43b4-be65-62e3a197bffe","type":"Microsoft.Authorization/policyDefinitions","name":"6a8450e2-6c61-43b4-be65-62e3a197bffe"},{"properties":{"displayName":"Audit + deprecated accounts on a subscription","policyType":"BuiltIn","mode":"All","description":"Deprecated + accounts should be removed from your subscriptions. Deprecated accounts are + accounts that have been blocked from signing in.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoveDeprecatedAccounts","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/6b1cbf55-e8b6-442f-ba4c-7246b6381474","type":"Microsoft.Authorization/policyDefinitions","name":"6b1cbf55-e8b6-442f-ba4c-7246b6381474"},{"properties":{"displayName":"Not + allowed resource types","policyType":"BuiltIn","mode":"All","description":"This + policy enables you to specify the resource types that your organization cannot + deploy.","metadata":{"category":"General"},"parameters":{"listOfResourceTypesNotAllowed":{"type":"Array","metadata":{"description":"The list of resource types that cannot be deployed.","displayName":"Not allowed resource types","strongType":"resourceTypes"}}},"policyRule":{"if":{"field":"type","in":"[parameters(''listOfResourceTypesNotAllowed'')]"},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/6c112d4e-5bc7-47ae-a041-ea2d9dccd749","type":"Microsoft.Authorization/policyDefinitions","name":"6c112d4e-5bc7-47ae-a041-ea2d9dccd749"},{"properties":{"displayName":"Allow - resource creation only in Japan data centers","policyType":"BuiltIn","description":"Allows - resource creation in the following locations only: Japan East, Japan West","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["japaneast","japanwest"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/6fdb9205-3462-4cfc-87d8-16c7860b53f4","type":"Microsoft.Authorization/policyDefinitions","name":"6fdb9205-3462-4cfc-87d8-16c7860b53f4"},{"properties":{"displayName":"Allowed - storage account SKUs","policyType":"BuiltIn","description":"This policy enables - you to specify a set of storage account SKUs that your organization can deploy.","metadata":{"category":"Storage"},"parameters":{"listOfAllowedSKUs":{"type":"Array","metadata":{"description":"The + resource creation only in Japan data centers","policyType":"BuiltIn","mode":"Indexed","description":"Allows + resource creation in the following locations only: Japan East, Japan West","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["japaneast","japanwest"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/6fdb9205-3462-4cfc-87d8-16c7860b53f4","type":"Microsoft.Authorization/policyDefinitions","name":"6fdb9205-3462-4cfc-87d8-16c7860b53f4"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs on which the DSC configuration is not compliant","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows VMs on which the Desired State Configuration (DSC) configuration + is not compliant. This policy is only applicable to machines with WMF 4 and + above. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsDscConfiguration"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7227ebe5-9ff7-47ab-b823-171cd02fb90f","type":"Microsoft.Authorization/policyDefinitions","name":"7227ebe5-9ff7-47ab-b823-171cd02fb90f"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that allow re-use of the previous + 24 passwords","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that allow re-use of the previous 24 passwords. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"EnforcePasswordHistory","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"EnforcePasswordHistory"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/726671ac-c4de-4908-8c7d-6043ae62e3b6","type":"Microsoft.Authorization/policyDefinitions","name":"726671ac-c4de-4908-8c7d-6043ae62e3b6"},{"properties":{"displayName":"Allowed + storage account SKUs","policyType":"BuiltIn","mode":"Indexed","description":"This + policy enables you to specify a set of storage account SKUs that your organization + can deploy.","metadata":{"category":"Storage"},"parameters":{"listOfAllowedSKUs":{"type":"Array","metadata":{"description":"The list of SKUs that can be specified for storage accounts.","displayName":"Allowed - SKUs","strongType":"StorageSKUs"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"not":{"field":"Microsoft.Storage/storageAccounts/sku.name","in":"[parameters(''listOfAllowedSKUs'')]"}}]},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1","type":"Microsoft.Authorization/policyDefinitions","name":"7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"properties":{"displayName":"[Preview]: - Monitor VM Vulnerabilities in Security Center","policyType":"BuiltIn","mode":"All","description":"Monitors + SKUs","strongType":"StorageSKUs"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"not":{"field":"Microsoft.Storage/storageAccounts/sku.name","in":"[parameters(''listOfAllowedSKUs'')]"}}]},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7433c107-6db4-4ad1-b57a-a76dce0154a1","type":"Microsoft.Authorization/policyDefinitions","name":"7433c107-6db4-4ad1-b57a-a76dce0154a1"},{"properties":{"displayName":"[Deprecated]: + Audit enabling of diagnostic logs in App Services","policyType":"BuiltIn","mode":"All","description":"Audit + enabling of diagnostic logs on the app. This enables you to recreate activity + trails for investigation purposes if a security incident occurs or your network + is compromised","metadata":{"category":"App Service","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Web/sites/config"},{"field":"name","equals":"web"},{"anyOf":[{"field":"Microsoft.Web/sites/config/detailedErrorLoggingEnabled","notEquals":"true"},{"field":"Microsoft.Web/sites/config/httpLoggingEnabled","notEquals":"true"},{"field":"Microsoft.Web/sites/config/requestTracingEnabled","notEquals":"true"}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/752c6934-9bcc-4749-b004-655e676ae2ac","type":"Microsoft.Authorization/policyDefinitions","name":"752c6934-9bcc-4749-b004-655e676ae2ac"},{"properties":{"displayName":"Monitor + VM Vulnerabilities in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Monitors vulnerabilities detected by Vulnerability Assessment solution and VMs without a Vulnerability Assessment solution in Azure Security Center as recommendations.","metadata":{"category":"Security - Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"vulnerabilityAssessment","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c","type":"Microsoft.Authorization/policyDefinitions","name":"760a85ff-6162-42b3-8d70-698e268f648c"},{"properties":{"displayName":"Require - blob encryption for storage accounts","policyType":"BuiltIn","description":"This + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"vulnerabilityAssessment","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/760a85ff-6162-42b3-8d70-698e268f648c","type":"Microsoft.Authorization/policyDefinitions","name":"760a85ff-6162-42b3-8d70-698e268f648c"},{"properties":{"displayName":"[Preview]: + Deploy Dependency Agent for Linux VM Scale Sets (VMSS)","policyType":"BuiltIn","mode":"Indexed","description":"Deploy + Dependency Agent for Linux VM Scale Sets if the VM Image (OS) is in the list + defined and the agent is not installed. Note: if your scale set upgradePolicy + is set to Manual, you need to apply the extension to the all VMs in the set + by calling upgrade on them. In CLI this would be az vmss update-instances.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude'')]"},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["14.04.0-LTS","14.04.1-LTS","14.04.5-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["16.04-LTS","16.04.0-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["18.04-LTS"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["12-SP2","12-SP3"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["CentOS","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/9980e02c-c2be-4d73-94e8-173b1dc7cf3c"],"existenceCondition":{"allOf":[{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/type","equals":"DependencyAgentLinux"},{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.Azure.Monitoring.DependencyAgent"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"}},"variables":{"vmExtensionName":"DependencyAgent","vmExtensionPublisher":"Microsoft.Azure.Monitoring.DependencyAgent","vmExtensionType":"DependencyAgentLinux","vmExtensionTypeHandlerVersion":"9.7"},"resources":[{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","name":"[concat(parameters(''vmName''), + ''/'', variables(''vmExtensionName''))]","apiVersion":"2018-06-01","location":"[parameters(''location'')]","properties":{"publisher":"[variables(''vmExtensionPublisher'')]","type":"[variables(''vmExtensionType'')]","typeHandlerVersion":"[variables(''vmExtensionTypeHandlerVersion'')]","autoUpgradeMinorVersion":true}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + extension for: '', parameters(''vmName''))]"}}},"parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/765266ab-e40e-4c61-bcb2-5a5275d0b7c0","type":"Microsoft.Authorization/policyDefinitions","name":"765266ab-e40e-4c61-bcb2-5a5275d0b7c0"},{"properties":{"displayName":"Deploy + requirements to audit Windows Server VMs on which Windows Serial Console is + not enabled","policyType":"BuiltIn","mode":"Indexed","description":"This policy + creates a Guest Configuration assignment to audit Windows Server virtual machines + on which Windows Serial Console is not enabled. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"EMSPortNumber":{"type":"String","metadata":{"displayName":"EMS + Port Number","description":"An integer indicating the COM port to be used + for the Emergency Management Services (EMS) console redirection. For more + information on EMS settings, please visit https://aka.ms/gcpolwsc"},"allowedValues":["1","2","3","4"],"defaultValue":"1"},"EMSBaudRate":{"type":"String","metadata":{"displayName":"EMS + Baud Rate","description":"An integer indicating the baud rate to be used for + the Emergency Management Services (EMS) console redirection. For more information + on EMS settings, please visit https://aka.ms/gcpolwsc"},"allowedValues":["9600","19200","38400","57600","115200"],"defaultValue":"115200"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsSerialConsole","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[WindowsSerialConsole]WindowsSerialConsole;EMSPortNumber'', + ''='', parameters(''EMSPortNumber''), '','', ''[WindowsSerialConsole]WindowsSerialConsole;EMSBaudRate'', + ''='', parameters(''EMSBaudRate'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsSerialConsole"},"EMSPortNumber":{"value":"[parameters(''EMSPortNumber'')]"},"EMSBaudRate":{"value":"[parameters(''EMSBaudRate'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"EMSPortNumber":{"type":"string"},"EMSBaudRate":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[WindowsSerialConsole]WindowsSerialConsole;EMSPortNumber","value":"[parameters(''EMSPortNumber'')]"},{"name":"[WindowsSerialConsole]WindowsSerialConsole;EMSBaudRate","value":"[parameters(''EMSBaudRate'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7a031c68-d6ab-406e-a506-697a19c634b0","type":"Microsoft.Authorization/policyDefinitions","name":"7a031c68-d6ab-406e-a506-697a19c634b0"},{"properties":{"displayName":"Audit + enabling of diagnostics logs in Service Fabric and Virtual Machine Scale Sets","policyType":"BuiltIn","mode":"Indexed","description":"It + is recommended to enable Logs so that activity trail can be recreated when + investigations are required in the event of an incident or a compromise.","metadata":{"category":"Compute"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/type","equals":"IaaSDiagnostics"},{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.Azure.Diagnostics"}]},{"allOf":[{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/type","equals":"LinuxDiagnostic"},{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.OSTCExtensions"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7c1b1214-f927-48bf-8882-84f0af6588b1","type":"Microsoft.Authorization/policyDefinitions","name":"7c1b1214-f927-48bf-8882-84f0af6588b1"},{"properties":{"displayName":"[Deprecated]: + Require blob encryption for storage accounts","policyType":"BuiltIn","mode":"Indexed","description":"This policy ensures blob encryption for storage accounts is turned on. It only - applies to Microsoft.Storage resource types, not other storage providers.","metadata":{"category":"Storage"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"field":"Microsoft.Storage/storageAccounts/enableBlobEncryption","equals":"false"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f","type":"Microsoft.Authorization/policyDefinitions","name":"7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f"},{"properties":{"displayName":"Audit + applies to Microsoft.Storage resource types, not other storage providers. + This policy is deprecated because storage blob encryption is now enabled by + default, and can no longer be disabled.","metadata":{"category":"Storage","deprecated":true},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Storage/storageAccounts"},{"field":"Microsoft.Storage/storageAccounts/enableBlobEncryption","equals":"false"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f","type":"Microsoft.Authorization/policyDefinitions","name":"7c5a74bf-ae94-4a74-8fcf-644d1e0e6e6f"},{"properties":{"displayName":"Audit + Windows VMs that have the specified applications installed","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that have the specified applications + installed. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"NotInstalledApplication"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7e56b49b-5990-4159-a734-511ea19b731c","type":"Microsoft.Authorization/policyDefinitions","name":"7e56b49b-5990-4159-a734-511ea19b731c"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that have not restarted within the specified number of days","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that have not restarted within the + specified number of days. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"MachineLastBootUpTime"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7e84ba44-6d03-46fd-950e-5efa5a1112fa","type":"Microsoft.Authorization/policyDefinitions","name":"7e84ba44-6d03-46fd-950e-5efa5a1112fa"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that do not have the password complexity + setting enabled","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that do not have the password complexity setting enabled. It also creates + a system-assigned managed identity and deploys the VM extension for Guest + Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"PasswordMustMeetComplexityRequirements","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"PasswordMustMeetComplexityRequirements"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8","type":"Microsoft.Authorization/policyDefinitions","name":"7ed40801-8a0f-4ceb-85c0-9fd25c1d61a8"},{"properties":{"displayName":"Audit diagnostic setting","policyType":"BuiltIn","mode":"All","description":"Audit diagnostic setting for selected resource types","metadata":{"category":"Monitoring"},"parameters":{"listOfResourceTypes":{"type":"Array","metadata":{"displayName":"Resource - Types","strongType":"resourceTypes"}}},"policyRule":{"if":{"field":"type","in":"[parameters(''listOfResourceTypes'')]"},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/metrics.enabled","equals":"true"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7f89b1eb-583c-429a-8828-af049802c1d9","type":"Microsoft.Authorization/policyDefinitions","name":"7f89b1eb-583c-429a-8828-af049802c1d9"},{"properties":{"displayName":"Deploy + Types","strongType":"resourceTypes"}}},"policyRule":{"if":{"field":"type","in":"[parameters(''listOfResourceTypes'')]"},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/metrics.enabled","equals":"true"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7f89b1eb-583c-429a-8828-af049802c1d9","type":"Microsoft.Authorization/policyDefinitions","name":"7f89b1eb-583c-429a-8828-af049802c1d9"},{"properties":{"displayName":"Audit + SQL auditing settings at the server level for the Action-Groups and Actions","policyType":"BuiltIn","mode":"Indexed","description":"SQL + auditing should be configured to capture certain Action-Groups and Actions. + The AuditActionsAndGroups property should contain at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + FAILED_DATABASE_AUTHENTICATION_GROUP, BATCH_COMPLETED_GROUP to ensure a thorough + audit logging","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/servers/auditingSettings","name":"default","existenceCondition":{"allOf":[{"not":{"field":"Microsoft.Sql/servers/auditingSettings/auditActionsAndGroups[*]","notEquals":"SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"}},{"not":{"field":"Microsoft.Sql/servers/auditingSettings/auditActionsAndGroups[*]","notEquals":"FAILED_DATABASE_AUTHENTICATION_GROUP"}},{"not":{"field":"Microsoft.Sql/servers/auditingSettings/auditActionsAndGroups[*]","notEquals":"BATCH_COMPLETED_GROUP"}}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/7ff426e2-515f-405a-91c8-4f2333442eb5","type":"Microsoft.Authorization/policyDefinitions","name":"7ff426e2-515f-405a-91c8-4f2333442eb5"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Event Hub","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Event Hub"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.EventHub/namespaces"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/83a214f7-d01a-484b-91a9-ed54470c9a6a","type":"Microsoft.Authorization/policyDefinitions","name":"83a214f7-d01a-484b-91a9-ed54470c9a6a"},{"properties":{"displayName":"Deploy SQL DB transparent data encryption","policyType":"BuiltIn","mode":"Indexed","description":"Enables - transparent data encryption on SQL databases","metadata":{"category":"SQL"},"parameters":{},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers/databases"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Sql/servers/databases/transparentDataEncryption","name":"current","existenceCondition":{"allOf":[{"field":"Microsoft.Sql/transparentDataEncryption.status","equals":"Enabled"}]},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"fullDbName":{"type":"string"}},"resources":[{"name":"[concat(parameters(''fullDbName''), - ''/current'')]","type":"Microsoft.Sql/servers/databases/transparentDataEncryption","apiVersion":"2014-04-01","properties":{"status":"Enabled"}}]},"parameters":{"fullDbName":{"value":"[field(''fullName'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/86a912f6-9a06-4e26-b447-11b16ba8659f","type":"Microsoft.Authorization/policyDefinitions","name":"86a912f6-9a06-4e26-b447-11b16ba8659f"},{"properties":{"displayName":"[Preview]: - Monitor missing system updates in Security Center","policyType":"BuiltIn","mode":"All","description":"Missing + transparent data encryption on SQL databases","metadata":{"category":"SQL"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Sql/servers/databases"},{"field":"name","notEquals":"master"}]},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Sql/servers/databases/transparentDataEncryption","name":"current","existenceCondition":{"field":"Microsoft.Sql/transparentDataEncryption.status","equals":"Enabled"},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/9b7fa17d-e63e-47b0-bb0a-15c516ac86ec"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"fullDbName":{"type":"string"}},"resources":[{"name":"[concat(parameters(''fullDbName''), + ''/current'')]","type":"Microsoft.Sql/servers/databases/transparentDataEncryption","apiVersion":"2014-04-01","properties":{"status":"Enabled"}}]},"parameters":{"fullDbName":{"value":"[field(''fullName'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/86a912f6-9a06-4e26-b447-11b16ba8659f","type":"Microsoft.Authorization/policyDefinitions","name":"86a912f6-9a06-4e26-b447-11b16ba8659f"},{"properties":{"displayName":"Monitor + missing system updates in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Missing security system updates on your servers will be monitored by Azure Security - Center as recommendations.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines","Microsoft.OperationalInsights/workspaces"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"systemUpdates","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60","type":"Microsoft.Authorization/policyDefinitions","name":"86b3d65f-7626-441e-b690-81a8b71cff60"},{"properties":{"displayName":"Enforce + Center as recommendations","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"systemUpdates","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/86b3d65f-7626-441e-b690-81a8b71cff60","type":"Microsoft.Authorization/policyDefinitions","name":"86b3d65f-7626-441e-b690-81a8b71cff60"},{"properties":{"displayName":"Require + specified tag","policyType":"BuiltIn","mode":"Indexed","description":"Enforces + existence of a tag. Does not apply to resource groups.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag + Name","description":"Name of the tag, such as ''environment''"}}},"policyRule":{"if":{"field":"[concat(''tags['', + parameters(''tagName''), '']'')]","exists":"false"},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/871b6d14-10aa-478d-b590-94f262ecfa99","type":"Microsoft.Authorization/policyDefinitions","name":"871b6d14-10aa-478d-b590-94f262ecfa99"},{"properties":{"displayName":"Deploy + requirements to audit Linux VMs that have the specified applications installed","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Linux virtual machines + that have the specified applications installed. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"ApplicationName":{"type":"String","metadata":{"displayName":"Application + names","description":"A semicolon-separated list of the names of the applications + that should not be installed. e.g. ''python; powershell''"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["microsoft-aks","AzureDatabricks","qubole-inc","datastax","couchbase","scalegrid","checkpoint","paloaltonetworks"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","like":"CentOS*"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"RHEL"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"osa"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"credativ"},{"field":"Microsoft.Compute/imageOffer","equals":"Debian"},{"field":"Microsoft.Compute/imageSKU","notLike":"7*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Suse"},{"field":"Microsoft.Compute/imageOffer","like":"SLES*"},{"field":"Microsoft.Compute/imageSKU","notLike":"11*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"12*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","in":["linux-data-science-vm-ubuntu","azureml"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-altus-centos-os"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","like":"linux*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"not_installed_application_linux","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent'', + ''='', concat(''packages: ['', replace(parameters(''ApplicationName''), '';'', + '',''), '']'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"not_installed_application_linux"},"ApplicationName":{"value":"[parameters(''ApplicationName'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"ApplicationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent","value":"[concat(''packages: + ['', replace(parameters(''ApplicationName''), '';'', '',''), '']'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforLinux'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforLinux","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/884b209a-963b-4520-8006-d20cb3c213e0","type":"Microsoft.Authorization/policyDefinitions","name":"884b209a-963b-4520-8006-d20cb3c213e0"},{"properties":{"displayName":"Audit + Windows VMs with a pending reboot","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines with a pending reboot. This policy + should only be used along with its corresponding deploy policy in an initiative. + For more information on Guest Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsPendingReboot"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/8b0de57a-f511-4d45-a277-17cb79cb163b","type":"Microsoft.Authorization/policyDefinitions","name":"8b0de57a-f511-4d45-a277-17cb79cb163b"},{"properties":{"displayName":"Require tag and its value on resource groups","policyType":"BuiltIn","mode":"All","description":"Enforces a required tag and its value on resource groups.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag Name","description":"Name of the tag, such as ''environment''"}},"tagValue":{"type":"String","metadata":{"displayName":"Tag Value","description":"Value of the tag, such as ''production''"}}},"policyRule":{"if":{"allOf":[{"field":"[concat(''tags['', - parameters(''tagName''), '']'')]","notEquals":"[parameters(''tagValue'')]"},{"field":"type","equals":"Microsoft.Resources/subscriptions/resourceGroups"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/8ce3da23-7156-49e4-b145-24f95f9dcb46","type":"Microsoft.Authorization/policyDefinitions","name":"8ce3da23-7156-49e4-b145-24f95f9dcb46"},{"properties":{"displayName":"Allow - resource creation only in European data centers","policyType":"BuiltIn","description":"Allows - resource creation in the following locations only: North Europe, West Europe","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["northeurope","westeurope"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/94c19f19-8192-48cd-a11b-e37099d3e36b","type":"Microsoft.Authorization/policyDefinitions","name":"94c19f19-8192-48cd-a11b-e37099d3e36b"},{"properties":{"displayName":"Allow - resource creation only in United States data centers","policyType":"BuiltIn","description":"Allows + parameters(''tagName''), '']'')]","notEquals":"[parameters(''tagValue'')]"},{"field":"type","equals":"Microsoft.Resources/subscriptions/resourceGroups"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/8ce3da23-7156-49e4-b145-24f95f9dcb46","type":"Microsoft.Authorization/policyDefinitions","name":"8ce3da23-7156-49e4-b145-24f95f9dcb46"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that do not store passwords using + reversible encryption","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that do not store passwords using reversible encryption. It also creates a + system-assigned managed identity and deploys the VM extension for Guest Configuration. + This policy should only be used along with its corresponding audit policy + in an initiative. For more information on Guest Configuration policies, please + visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"StorePasswordsUsingReversibleEncryption","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"StorePasswordsUsingReversibleEncryption"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/8ff0b18b-262e-4512-857a-48ad0aeb9a78","type":"Microsoft.Authorization/policyDefinitions","name":"8ff0b18b-262e-4512-857a-48ad0aeb9a78"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs that do not have the specified Windows PowerShell + modules installed","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that do not have the specified Windows PowerShell modules installed. It also + creates a system-assigned managed identity and deploys the VM extension for + Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"Modules":{"type":"String","metadata":{"displayName":"PowerShell + Modules","description":"A semicolon-separated list of the names of the PowerShell + modules that should be installed. You may also specify a specific version + of a module that should be installed by including a comma after the module + name, followed by the desired version. e.g. PSDscResources; SqlServerDsc, + 12.0.0.0; ComputerManagementDsc, 6.1.0.0"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsPowerShellModules","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[PowerShellModules]PowerShellModules1;Modules'', + ''='', parameters(''Modules'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsPowerShellModules"},"Modules":{"value":"[parameters(''Modules'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"Modules":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[PowerShellModules]PowerShellModules1;Modules","value":"[parameters(''Modules'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/90ba2ee7-4ca8-4673-84d1-c851c50d3baf","type":"Microsoft.Authorization/policyDefinitions","name":"90ba2ee7-4ca8-4673-84d1-c851c50d3baf"},{"properties":{"displayName":"Audit + accounts with write permissions who are not MFA enabled on a subscription","policyType":"BuiltIn","mode":"All","description":"Multi-Factor + Authentication (MFA) should be enabled for all subscription accounts with + write privileges to prevent a breach of accounts or resources.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"EnableMFAForWritePermissions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9297c21d-2ed6-4474-b48f-163f75654ce3","type":"Microsoft.Authorization/policyDefinitions","name":"9297c21d-2ed6-4474-b48f-163f75654ce3"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that contain certificates expiring within the specified + number of days","policyType":"BuiltIn","mode":"All","description":"This policy + audits Windows virtual machines that contain certificates expiring within + the specified number of days. This policy should only be used along with its + corresponding deploy policy in an initiative. For more information on Guest + Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"CertificateExpiration"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9328f27e-611e-44a7-a244-39109d7d35ab","type":"Microsoft.Authorization/policyDefinitions","name":"9328f27e-611e-44a7-a244-39109d7d35ab"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs in which the Administrators group does not + contain all of the specified members","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + in which the Administrators group does not contain all of the specified members. + It also creates a system-assigned managed identity and deploys the VM extension + for Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"MembersToInclude":{"type":"String","metadata":{"displayName":"Members + to include","description":"A semicolon-separated list of members that should + be included in the Administrators local group. Ex: Administrator; myUser1; + myUser2"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"AdministratorsGroupMembersToInclude","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[LocalGroup]AdministratorsGroup;MembersToInclude'', + ''='', parameters(''MembersToInclude'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"AdministratorsGroupMembersToInclude"},"MembersToInclude":{"value":"[parameters(''MembersToInclude'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"MembersToInclude":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[LocalGroup]AdministratorsGroup;MembersToInclude","value":"[parameters(''MembersToInclude'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/93507a81-10a4-4af0-9ee2-34cf25a96e98","type":"Microsoft.Authorization/policyDefinitions","name":"93507a81-10a4-4af0-9ee2-34cf25a96e98"},{"properties":{"displayName":"Allow + resource creation only in European data centers","policyType":"BuiltIn","mode":"Indexed","description":"Allows + resource creation in the following locations only: North Europe, West Europe","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["northeurope","westeurope"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/94c19f19-8192-48cd-a11b-e37099d3e36b","type":"Microsoft.Authorization/policyDefinitions","name":"94c19f19-8192-48cd-a11b-e37099d3e36b"},{"properties":{"displayName":"Require + specified tag on resource groups","policyType":"BuiltIn","mode":"All","description":"Enforces + existence of a tag on resource groups.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag + Name","description":"Name of the tag, such as ''environment''"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Resources/subscriptions/resourceGroups"},{"field":"[concat(''tags['', + parameters(''tagName''), '']'')]","exists":"false"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/96670d01-0a4d-4649-9c89-2d3abc0a5025","type":"Microsoft.Authorization/policyDefinitions","name":"96670d01-0a4d-4649-9c89-2d3abc0a5025"},{"properties":{"displayName":"Ensure + that ''Send alerts to'' is set in SQL server Advanced Data Security settings","policyType":"BuiltIn","mode":"Indexed","description":"Ensure + that an email address is provided for the ''Send alerts to'' field in the + Advanced Data Security server settings. This email address receives alert + notifications when anomalous activities are detected on SQL servers.","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/servers/securityAlertPolicies","name":"default","existenceCondition":{"field":"Microsoft.Sql/servers/securityAlertPolicies/emailAddresses[*]","notEquals":""}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9677b740-f641-4f3c-b9c5-466005c85278","type":"Microsoft.Authorization/policyDefinitions","name":"9677b740-f641-4f3c-b9c5-466005c85278"},{"properties":{"displayName":"Allow + resource creation only in United States data centers","policyType":"BuiltIn","mode":"Indexed","description":"Allows resource creation in the following locations only: Central US, East US, East - US2, North Central US, South Central US, West US","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["centralus","eastus","eastus2","northcentralus","southcentralus","westus"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/983211ba-f348-4758-983b-21fa29294869","type":"Microsoft.Authorization/policyDefinitions","name":"983211ba-f348-4758-983b-21fa29294869"},{"properties":{"displayName":"[Preview]: - Monitor unprotected network endpoints in Security Center","policyType":"BuiltIn","mode":"All","description":"Network - endpoints without a Next Generation Firewall''s protection will be monitored - by Azure Security Center as recommendations.","metadata":{"category":"Security - Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Network/publicIPAddresses","Microsoft.ClassicCompute/domainNames"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"unprotectedNetworkEndpoint","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6","type":"Microsoft.Authorization/policyDefinitions","name":"9daedab3-fb2d-461e-b861-71790eead4f6"},{"properties":{"displayName":"Allowed - resource types","policyType":"BuiltIn","description":"This policy enables - you to specify the resource types that your organization can deploy.","metadata":{"category":"General"},"parameters":{"listOfResourceTypesAllowed":{"type":"Array","metadata":{"description":"The + US2, North Central US, South Central US, West US","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["centralus","eastus","eastus2","northcentralus","southcentralus","westus"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/983211ba-f348-4758-983b-21fa29294869","type":"Microsoft.Authorization/policyDefinitions","name":"983211ba-f348-4758-983b-21fa29294869"},{"properties":{"displayName":"Deploy + Diagnostic Settings for Azure SQL Database to Event Hub","policyType":"BuiltIn","mode":"Indexed","description":"Deploys + the diagnostic settings for Azure SQL Database to stream to a regional Event + Hub on any Azure SQL Database which is missing this diagnostic settings is + created or updated.","metadata":{"category":"SQL"},"parameters":{"profileName":{"type":"String","metadata":{"displayName":"Profile + name","description":"The diagnostic settings profile name"},"defaultValue":"setbypolicy"},"eventHubRuleId":{"type":"String","metadata":{"displayName":"Event + Hub Authorization Rule Id","description":"The Event Hub authorization rule + Id for Azure Diagnostics. The authorization rule needs to be at Event Hub + namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource + group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization + rule}","strongType":"Microsoft.EventHub/Namespaces/AuthorizationRules","assignPermissions":true}},"metricsEnabled":{"type":"String","metadata":{"displayName":"Enable + metrics","description":"Whether to enable metrics stream to the Event Hub + - True or False"},"allowedValues":["True","False"],"defaultValue":"False"},"logsEnabled":{"type":"String","metadata":{"displayName":"Enable + logs","description":"Whether to enable logs stream to the Event Hub - True + or False"},"allowedValues":["True","False"],"defaultValue":"True"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers/databases"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Insights/diagnosticSettings","name":"[parameters(''profileName'')]","existenceCondition":{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"[parameters(''logsEnabled'')]"},{"field":"Microsoft.Insights/diagnosticSettings/metrics.enabled","equals":"[parameters(''metricsEnabled'')]"}]},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"fullName":{"type":"string"},"location":{"type":"string"},"eventHubRuleId":{"type":"string"},"metricsEnabled":{"type":"string"},"logsEnabled":{"type":"string"},"profileName":{"type":"string"}},"resources":[{"type":"Microsoft.Sql/servers/databases/providers/diagnosticSettings","apiVersion":"2017-05-01-preview","name":"[concat(parameters(''fullName''), + ''/'', ''Microsoft.Insights/'', parameters(''profileName''))]","location":"[parameters(''location'')]","dependsOn":[],"properties":{"eventHubAuthorizationRuleId":"[parameters(''eventHubRuleId'')]","metrics":[{"category":"AllMetrics","enabled":"[parameters(''metricsEnabled'')]","retentionPolicy":{"enabled":false,"days":0}}],"logs":[{"category":"QueryStoreRuntimeStatistics","enabled":"[parameters(''logsEnabled'')]"},{"category":"QueryStoreWaitStatistics","enabled":"[parameters(''logsEnabled'')]"},{"category":"Errors","enabled":"[parameters(''logsEnabled'')]"},{"category":"DatabaseWaitStatistics","enabled":"[parameters(''logsEnabled'')]"},{"category":"Blocks","enabled":"[parameters(''logsEnabled'')]"},{"category":"SQLInsights","enabled":"[parameters(''logsEnabled'')]"},{"category":"Audit","enabled":"[parameters(''logsEnabled'')]"},{"category":"SQLSecurityAuditEvents","enabled":"[parameters(''logsEnabled'')]"},{"category":"Timeouts","enabled":"[parameters(''logsEnabled'')]"},{"category":"AutomaticTuning","enabled":"[parameters(''logsEnabled'')]"},{"category":"Deadlocks","enabled":"[parameters(''logsEnabled'')]"}]}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + diagnostic settings for '', parameters(''fullName''))]"}}},"parameters":{"location":{"value":"[field(''location'')]"},"fullName":{"value":"[field(''fullName'')]"},"eventHubRuleId":{"value":"[parameters(''eventHubRuleId'')]"},"metricsEnabled":{"value":"[parameters(''metricsEnabled'')]"},"logsEnabled":{"value":"[parameters(''logsEnabled'')]"},"profileName":{"value":"[parameters(''profileName'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9a7c7a7d-49e5-4213-bea8-6a502b6272e0","type":"Microsoft.Authorization/policyDefinitions","name":"9a7c7a7d-49e5-4213-bea8-6a502b6272e0"},{"properties":{"displayName":"[Deprecated]: + Audit API Applications that are not using latest supported Java Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported Java version for the latest security classes. Using older + classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestJava","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9bfe3727-0a17-471f-a2fe-eddd6b668745","type":"Microsoft.Authorization/policyDefinitions","name":"9bfe3727-0a17-471f-a2fe-eddd6b668745"},{"properties":{"displayName":"Monitor + permissive network access of Internet facing VMs in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Azure + Security center has identified some of your Network Security Groups'' inbound + rules to be too permissive. Inbound rules should not allow access from ''Any'' + or ''Internet'' ranges. This can potentially enable attackers to easily target + your resources.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"unprotectedNetworkEndpoint","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9daedab3-fb2d-461e-b861-71790eead4f6","type":"Microsoft.Authorization/policyDefinitions","name":"9daedab3-fb2d-461e-b861-71790eead4f6"},{"properties":{"displayName":"Append + tag and its value from the resource group","policyType":"BuiltIn","mode":"Indexed","description":"Appends + the specified tag with its value from the resource group when any resource + which is missing this tag is created or updated. Does not modify the tags + of resources created before this policy was applied until those resources + are changed.","metadata":{"category":"General"},"parameters":{"tagName":{"type":"String","metadata":{"displayName":"Tag + Name","description":"Name of the tag, such as ''environment''"}}},"policyRule":{"if":{"field":"[concat(''tags['', + parameters(''tagName''), '']'')]","exists":"false"},"then":{"effect":"append","details":[{"field":"[concat(''tags['', + parameters(''tagName''), '']'')]","value":"[resourceGroup().tags[parameters(''tagName'')]]"}]}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9ea02ca2-71db-412d-8b00-7c7ca9fcd32d","type":"Microsoft.Authorization/policyDefinitions","name":"9ea02ca2-71db-412d-8b00-7c7ca9fcd32d"},{"properties":{"displayName":"Audit + Windows VMs that are not set to the specified time zone","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that are not set to the specified time + zone. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsTimeZone"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/9f658460-46b7-43af-8565-94fc0662be38","type":"Microsoft.Authorization/policyDefinitions","name":"9f658460-46b7-43af-8565-94fc0662be38"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs on which the Log Analytics agent is not connected as expected","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines on which the Log Analytics agent is + not connected to the specified workspaces. This policy should only be used + along with its corresponding deploy policy in an initiative/policy set. For + more information on Guest Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsLogAnalyticsAgentConnection"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a030a57e-4639-4e8f-ade9-a92f33afe7ee","type":"Microsoft.Authorization/policyDefinitions","name":"a030a57e-4639-4e8f-ade9-a92f33afe7ee"},{"properties":{"displayName":"Allowed + resource types","policyType":"BuiltIn","mode":"Indexed","description":"This + policy enables you to specify the resource types that your organization can + deploy. Only resource types that support ''tags'' and ''location'' will be + affected by this policy. To restrict all resources please duplicate this policy + and change the ''mode'' to ''All''.","metadata":{"category":"General"},"parameters":{"listOfResourceTypesAllowed":{"type":"Array","metadata":{"description":"The list of resource types that can be deployed.","displayName":"Allowed resource types","strongType":"resourceTypes"}}},"policyRule":{"if":{"not":{"field":"type","in":"[parameters(''listOfResourceTypesAllowed'')]"}},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a08ec900-254a-4555-9bf5-e42af04b5c5c","type":"Microsoft.Authorization/policyDefinitions","name":"a08ec900-254a-4555-9bf5-e42af04b5c5c"},{"properties":{"displayName":"Audit - SQL server level Auditing settings","policyType":"BuiltIn","mode":"NotSpecified","description":"Audits - the existence of SQL Auditing at the server level","metadata":{"category":"SQL"},"parameters":{"setting":{"type":"String","metadata":{"displayName":"Desired - Auditing setting"},"allowedValues":["enabled","disabled"],"defaultValue":"enabled"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Sql/servers/auditingSettings","name":"default","existenceCondition":{"field":"Microsoft.Sql/auditingSettings.state","equals":"[parameters(''setting'')]"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9","type":"Microsoft.Authorization/policyDefinitions","name":"a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9"},{"properties":{"displayName":"Enforce - encryption on DataLakeStore accounts","policyType":"BuiltIn","mode":"Indexed","description":"This - policy ensures encryption is enabled on all DataLakeStore accounts","metadata":{"category":"Data - Lake"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.DataLakeStore/accounts"},{"field":"Microsoft.DataLakeStore/accounts/encryptionState","equals":"Disabled"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a7ff3161-0087-490a-9ad9-ad6217f4f43a","type":"Microsoft.Authorization/policyDefinitions","name":"a7ff3161-0087-490a-9ad9-ad6217f4f43a"},{"properties":{"displayName":"[Preview]: - Monitor unencrypted SQL database in Security Center","policyType":"BuiltIn","mode":"All","description":"Unencrypted - SQL servers or databases will be monitored by Azure Security Center as recommendations.","metadata":{"category":"Security - Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.SQL/servers","Microsoft.SQL/servers/databases"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"encryption","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16","type":"Microsoft.Authorization/policyDefinitions","name":"a8bef009-a5c9-4d0f-90d7-6018734e8a16"},{"properties":{"displayName":"[Preview]: - Deploy network watcher when virtual networks are created","policyType":"BuiltIn","mode":"Indexed","description":"This + authorization rules on Service Bus namespaces","policyType":"BuiltIn","mode":"All","description":"Service + Bus clients should not use a namespace level access policy that provides access + to all queues and topics in a namespace. To align with the least privilege + security model, you shoud create access policies at the entity level for queues + and topics to provide access to only the specific entity","metadata":{"category":"Service + Bus"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.ServiceBus/namespaces/authorizationRules"},{"field":"name","notEquals":"RootManageSharedAccessKey"}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a1817ec0-a368-432a-8057-8371e17ac6ee","type":"Microsoft.Authorization/policyDefinitions","name":"a1817ec0-a368-432a-8057-8371e17ac6ee"},{"properties":{"displayName":"Audit + Windows VMs that are not joined to the specified domain","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that are not joined to the specified + domain. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsDomainMembership"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a29ee95c-0395-4515-9851-cc04ffe82a91","type":"Microsoft.Authorization/policyDefinitions","name":"a29ee95c-0395-4515-9851-cc04ffe82a91"},{"properties":{"displayName":"Audit + usage of custom RBAC rules","policyType":"BuiltIn","mode":"All","description":"Audit + built-in roles such as ''Owner, Contributer, Reader'' instead of custom RBAC + roles, which are error prone. Using custom roles is treated as an exception + and requires a rigorous review and threat modeling","metadata":{"category":"General"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Authorization/roleDefinitions"},{"field":"Microsoft.Authorization/roleDefinitions/type","equals":"CustomRole"}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a451c1ef-c6ca-483d-87ed-f49761e3ffb5","type":"Microsoft.Authorization/policyDefinitions","name":"a451c1ef-c6ca-483d-87ed-f49761e3ffb5"},{"properties":{"displayName":"Audit + SQL server level Auditing settings","policyType":"BuiltIn","mode":"Indexed","description":"Audits + the existence of SQL Auditing at the server level","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"setting":{"type":"String","metadata":{"displayName":"Desired + Auditing setting"},"allowedValues":["enabled","disabled"],"defaultValue":"enabled"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/servers/auditingSettings","name":"default","existenceCondition":{"field":"Microsoft.Sql/auditingSettings.state","equals":"[parameters(''setting'')]"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9","type":"Microsoft.Authorization/policyDefinitions","name":"a6fb4358-5bf4-4ad7-ba82-2cd2f41ce5e9"},{"properties":{"displayName":"Audit + standard tier of DDoS protection is enabled for a virtual network","policyType":"BuiltIn","mode":"All","description":"DDoS + protection standard should be enabled for all virtual networks with a subnet + that is part of an application gateway with a public IP.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"microsoft.network/virtualNetworks"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"EnableDDoSProtection","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a7aca53f-2ed4-4466-a25e-0b45ade68efd","type":"Microsoft.Authorization/policyDefinitions","name":"a7aca53f-2ed4-4466-a25e-0b45ade68efd"},{"properties":{"displayName":"Require + encryption on Data Lake Store accounts","policyType":"BuiltIn","mode":"Indexed","description":"This + policy ensures encryption is enabled on all Data Lake Store accounts","metadata":{"category":"Data + Lake"},"parameters":{},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.DataLakeStore/accounts"},{"field":"Microsoft.DataLakeStore/accounts/encryptionState","equals":"Disabled"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a7ff3161-0087-490a-9ad9-ad6217f4f43a","type":"Microsoft.Authorization/policyDefinitions","name":"a7ff3161-0087-490a-9ad9-ad6217f4f43a"},{"properties":{"displayName":"Monitor + unencrypted SQL databases in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Unencrypted + SQL databases will be monitored by Azure Security Center as recommendations","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.SQL/servers/databases"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"encryption","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a8bef009-a5c9-4d0f-90d7-6018734e8a16","type":"Microsoft.Authorization/policyDefinitions","name":"a8bef009-a5c9-4d0f-90d7-6018734e8a16"},{"properties":{"displayName":"Deploy + network watcher when virtual networks are created","policyType":"BuiltIn","mode":"Indexed","description":"This policy creates a network watcher resource in regions with virtual networks. You need to ensure existence of a resource group named networkWatcherRG, which - will be used to deploy network watcher instances.","metadata":{"category":"Network"},"parameters":{},"policyRule":{"if":{"field":"type","equals":"Microsoft.Network/virtualNetworks"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Network/networkWatchers","resourceGroupName":"networkWatcherRG","existenceCondition":{"field":"location","equals":"[field(''location'')]"},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json","contentVersion":"1.0.0.0","parameters":{"location":{"type":"string"}},"resources":[{"apiVersion":"2016-09-01","type":"Microsoft.Network/networkWatchers","name":"[concat(''networkWacher_'', - parameters(''location''))]","location":"[parameters(''location'')]"}]},"parameters":{"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a9b99dd8-06c5-4317-8629-9d86a3c6e7d9","type":"Microsoft.Authorization/policyDefinitions","name":"a9b99dd8-06c5-4317-8629-9d86a3c6e7d9"},{"properties":{"displayName":"[Preview]: - Automatic provisioning of security monitoring agent","policyType":"BuiltIn","mode":"All","description":"Installs + will be used to deploy network watcher instances.","metadata":{"category":"Network"},"parameters":{},"policyRule":{"if":{"field":"type","equals":"Microsoft.Network/virtualNetworks"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Network/networkWatchers","resourceGroupName":"networkWatcherRG","existenceCondition":{"field":"location","equals":"[field(''location'')]"},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/4d97b98b-1d4f-4787-a291-c67834d212e7"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json","contentVersion":"1.0.0.0","parameters":{"location":{"type":"string"}},"resources":[{"apiVersion":"2016-09-01","type":"Microsoft.Network/networkWatchers","name":"[concat(''networkWatcher_'', + parameters(''location''))]","location":"[parameters(''location'')]"}]},"parameters":{"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/a9b99dd8-06c5-4317-8629-9d86a3c6e7d9","type":"Microsoft.Authorization/policyDefinitions","name":"a9b99dd8-06c5-4317-8629-9d86a3c6e7d9"},{"properties":{"displayName":"Audit + accounts with owner permissions who are not MFA enabled on a subscription","policyType":"BuiltIn","mode":"All","description":"Multi-Factor + Authentication (MFA) should be enabled for all subscription accounts with + owner permissions to prevent a breach of accounts or resources.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"EnableMFAForOwnerPermissions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/aa633080-8b72-40c4-a2d7-d00c03e80bed","type":"Microsoft.Authorization/policyDefinitions","name":"aa633080-8b72-40c4-a2d7-d00c03e80bed"},{"properties":{"displayName":"Automatic + provisioning of security monitoring agent","policyType":"BuiltIn","mode":"All","description":"Installs security agent on VMs for advanced security alerts and preventions in Azure Security Center. Applies only for subscriptions that use Azure Security Center.","metadata":{"category":"Security - Center","preview":true},"parameters":{},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Security/complianceResults","name":"securityAgent","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/abcc6037-1fc4-47f6-aac5-89706589be24","type":"Microsoft.Authorization/policyDefinitions","name":"abcc6037-1fc4-47f6-aac5-89706589be24"},{"properties":{"displayName":"Allow - resource creation if ''environment'' tag value in allowed values","policyType":"BuiltIn","description":"Allows + Center","deprecated":true},"parameters":{},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"AuditIfNotExists","details":{"type":"Microsoft.Security/complianceResults","name":"securityAgent","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/abcc6037-1fc4-47f6-aac5-89706589be24","type":"Microsoft.Authorization/policyDefinitions","name":"abcc6037-1fc4-47f6-aac5-89706589be24"},{"properties":{"displayName":"Audit + SQL servers without Advanced Data Security","policyType":"BuiltIn","mode":"Indexed","description":"Audit + SQL servers without Advanced Data Security","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/servers/securityAlertPolicies","name":"Default","existenceCondition":{"field":"Microsoft.Sql/servers/securityAlertPolicies/state","equals":"Enabled"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9","type":"Microsoft.Authorization/policyDefinitions","name":"abfb4388-5bf4-4ad7-ba82-2cd2f41ceae9"},{"properties":{"displayName":"Audit + SQL managed instances without Advanced Data Security","policyType":"BuiltIn","mode":"Indexed","description":"Audit + SQL managed instances without Advanced Data Security","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/managedInstances"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/managedInstances/securityAlertPolicies","name":"Default","existenceCondition":{"field":"Microsoft.Sql/managedInstances/securityAlertPolicies/state","equals":"Enabled"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9","type":"Microsoft.Authorization/policyDefinitions","name":"abfb7388-5bf4-4ad7-ba99-2cd2f41cebb9"},{"properties":{"displayName":"[Preview]: + Use Role-Based Access Control (RBAC) to restrict access to a Kubernetes Service + Cluster","policyType":"BuiltIn","mode":"All","description":"To provide granular + filtering of the actions that users can perform, use Role-Based Access Control + (RBAC) to manage permissions in Kubernetes Service Clusters and configure + relevant authorization policies.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.ContainerService/managedClusters"},{"anyOf":[{"field":"Microsoft.ContainerService/managedClusters/enableRBAC","exists":"false"},{"field":"Microsoft.ContainerService/managedClusters/enableRBAC","equals":"false"}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/ac4a19c2-fa67-49b4-8ae5-0b2e78c49457","type":"Microsoft.Authorization/policyDefinitions","name":"ac4a19c2-fa67-49b4-8ae5-0b2e78c49457"},{"properties":{"displayName":"Allow + resource creation if ''environment'' tag value in allowed values","policyType":"BuiltIn","mode":"Indexed","description":"Allows resource creation if the ''environment'' tag is set to one of the following - values: production, dev, test, staging","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"tags.environment","in":["production","dev","test","staging"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/ac7e5fc0-c029-4b12-91d4-a8500ce697f9","type":"Microsoft.Authorization/policyDefinitions","name":"ac7e5fc0-c029-4b12-91d4-a8500ce697f9"},{"properties":{"displayName":"[Preview]: - Monitor missing Endpoint Protection in Security Center","policyType":"BuiltIn","mode":"All","description":"Servers + values: production, dev, test, staging","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"tags.environment","in":["production","dev","test","staging"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/ac7e5fc0-c029-4b12-91d4-a8500ce697f9","type":"Microsoft.Authorization/policyDefinitions","name":"ac7e5fc0-c029-4b12-91d4-a8500ce697f9"},{"properties":{"displayName":"Monitor + missing Endpoint Protection in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Servers without an installed Endpoint Protection agent will be monitored by Azure - Security Center as recommendations.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines","Microsoft.OperationalInsights/workspaces"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"endpointProtection","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9","type":"Microsoft.Authorization/policyDefinitions","name":"af6cd1bd-1635-48cb-bde7-5b15693900b9"},{"properties":{"displayName":"[Preview]: - Monitor unaudited SQL database in Security Center","policyType":"BuiltIn","mode":"All","description":"SQL - servers and databases which doesn''t have SQL auditing turned on will be monitored - by Azure Security Center as recommendations.","metadata":{"category":"Security - Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.SQL/servers","Microsoft.SQL/servers/databases"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"auditing","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d","type":"Microsoft.Authorization/policyDefinitions","name":"af8051bf-258b-44e2-a2bf-165330459f9d"},{"properties":{"displayName":"[Preview]: - Monitor possible network JIT access in Security Center","policyType":"BuiltIn","mode":"All","description":"Possible - network Just In Time access will be monitored by Azure Security Center as - recommendations.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachines"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"jitNetworkAccess","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c","type":"Microsoft.Authorization/policyDefinitions","name":"b0f33259-77d7-4c9e-aac6-3aabcfae693c"},{"properties":{"displayName":"Allow - resource creation only in Asia data centers","policyType":"BuiltIn","description":"Allows + Security Center as recommendations","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"endpointProtection","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9","type":"Microsoft.Authorization/policyDefinitions","name":"af6cd1bd-1635-48cb-bde7-5b15693900b9"},{"properties":{"displayName":"Monitor + unaudited SQL servers in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"SQL + servers which don''t have SQL auditing turned on will be monitored by Azure + Security Center as recommendations","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.SQL/servers"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"auditing","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/af8051bf-258b-44e2-a2bf-165330459f9d","type":"Microsoft.Authorization/policyDefinitions","name":"af8051bf-258b-44e2-a2bf-165330459f9d"},{"properties":{"displayName":"Monitor + possible network Just In Time (JIT) access in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Possible + network Just In Time (JIT) access will be monitored by Azure Security Center + as recommendations","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachines"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"jitNetworkAccess","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b0f33259-77d7-4c9e-aac6-3aabcfae693c","type":"Microsoft.Authorization/policyDefinitions","name":"b0f33259-77d7-4c9e-aac6-3aabcfae693c"},{"properties":{"displayName":"[Preview]: + Audit Linux VMs that do not have the passwd file permissions set to 0644","policyType":"BuiltIn","mode":"All","description":"This + policy audits Linux virtual machines that do not have the passwd file permissions + set to 0644. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"PasswordPolicy_msid121"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b18175dd-c599-4c64-83ba-bb018a06d35b","type":"Microsoft.Authorization/policyDefinitions","name":"b18175dd-c599-4c64-83ba-bb018a06d35b"},{"properties":{"displayName":"Audit + authorization rules on Event Hub namespaces","policyType":"BuiltIn","mode":"All","description":"Event + Hub clients should not use a namespace level access policy that provides access + to all queues and topics in a namespace. To align with the least privilege + security model, you shoud create access policies at the entity level for queues + and topics to provide access to only the specific entity","metadata":{"category":"Event + Hub"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.EventHub/namespaces/authorizationRules"},{"field":"name","notEquals":"RootManageSharedAccessKey"}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b278e460-7cfc-4451-8294-cccc40a940d7","type":"Microsoft.Authorization/policyDefinitions","name":"b278e460-7cfc-4451-8294-cccc40a940d7"},{"properties":{"displayName":"Deploy + requirements to audit Windows web servers that are not using secure communication + protocols","policyType":"BuiltIn","mode":"Indexed","description":"This policy + creates a Guest Configuration assignment to audit Windows web servers that + are not using secure communication protocols (TLS 1.1 or TLS 1.2). It also + creates a system-assigned managed identity and deploys the VM extension for + Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"AuditSecureProtocol","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"AuditSecureProtocol"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b2fc8f91-866d-4434-9089-5ebfe38d6fd8","type":"Microsoft.Authorization/policyDefinitions","name":"b2fc8f91-866d-4434-9089-5ebfe38d6fd8"},{"properties":{"displayName":"Audit + enabling of diagnostic logs for Search service","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Search"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Search/searchServices"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b4330a05-a843-4bc8-bf9a-cacce50c67f4","type":"Microsoft.Authorization/policyDefinitions","name":"b4330a05-a843-4bc8-bf9a-cacce50c67f4"},{"properties":{"displayName":"[Deprecated]: + Audit Web Sockets state for an API App","policyType":"BuiltIn","mode":"All","description":"The + Web Sockets protocol is vulnerable to different types of security threats. + Use of Web Sockets within an API app must be carefully reviewed.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"DisableWebSockets","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b48334a4-911b-4084-b1ab-3e6a4e50b951","type":"Microsoft.Authorization/policyDefinitions","name":"b48334a4-911b-4084-b1ab-3e6a4e50b951"},{"properties":{"displayName":"Audit + usage of Azure Active Directory for client authentication in Service Fabric","policyType":"BuiltIn","mode":"Indexed","description":"Audit + usage of client authentication only via Azure Active Directory in Service + Fabric","metadata":{"category":"Service Fabric"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Disabled"],"defaultValue":"Audit"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.ServiceFabric/clusters"},{"anyOf":[{"field":"Microsoft.ServiceFabric/clusters/azureActiveDirectory.tenantId","exists":"false"},{"field":"Microsoft.ServiceFabric/clusters/azureActiveDirectory.tenantId","equals":""}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b54ed75b-3e1a-44ac-a333-05ba39b99ff0","type":"Microsoft.Authorization/policyDefinitions","name":"b54ed75b-3e1a-44ac-a333-05ba39b99ff0"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in App Services","policyType":"BuiltIn","mode":"All","description":"Audit + enabling of diagnostic logs on the app. This enables you to recreate activity + trails for investigation purposes if a security incident occurs or your network + is compromised","metadata":{"category":"App Service"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Web/sites"},{"field":"kind","notContains":"functionapp"}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Web/sites/config","existenceCondition":{"allOf":[{"field":"Microsoft.Web/sites/config/detailedErrorLoggingEnabled","equals":"true"},{"field":"Microsoft.Web/sites/config/httpLoggingEnabled","equals":"true"},{"field":"Microsoft.Web/sites/config/requestTracingEnabled","equals":"true"}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0","type":"Microsoft.Authorization/policyDefinitions","name":"b607c5de-e7d9-4eee-9e5c-83f1bcee4fa0"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs in which the Administrators group does not + contain only the specified members","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + in which the Administrators group does not contain only the specified members. + It also creates a system-assigned managed identity and deploys the VM extension + for Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"Members":{"type":"String","metadata":{"displayName":"Members","description":"A + semicolon-separated list of all the expected members of the Administrators + local group. Ex: Administrator; myUser1; myUser2"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"AdministratorsGroupMembers","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[LocalGroup]AdministratorsGroup;Members'', + ''='', parameters(''Members'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"AdministratorsGroupMembers"},"Members":{"value":"[parameters(''Members'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"Members":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[LocalGroup]AdministratorsGroup;Members","value":"[parameters(''Members'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/b821191b-3a12-44bc-9c38-212138a29ff3","type":"Microsoft.Authorization/policyDefinitions","name":"b821191b-3a12-44bc-9c38-212138a29ff3"},{"properties":{"displayName":"[Deprecated]: + Audit API Applications that are not using latest supported Python Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported Python version for the latest security classes. Using + older classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestPython","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/bc0378bb-d7ab-4614-a0f6-5a6e3f02d644","type":"Microsoft.Authorization/policyDefinitions","name":"bc0378bb-d7ab-4614-a0f6-5a6e3f02d644"},{"properties":{"displayName":"[Preview]: + Monitor IP forwarding on virtual machines","policyType":"BuiltIn","mode":"All","description":"Enabling + IP forwarding on a virtual machine''s NIC allows the machine to receive traffic + addressed to other destinations. IP forwarding is rarely required (e.g., when + using the VM as a network virtual appliance), and therefore, this should be + reviewed by the network security team.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"disableIPForwarding","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/bd352bd5-2853-4985-bf0d-73806b4a5744","type":"Microsoft.Authorization/policyDefinitions","name":"bd352bd5-2853-4985-bf0d-73806b4a5744"},{"properties":{"displayName":"Audit + Windows VMs in which the Administrators group contains any of the specified + members","policyType":"BuiltIn","mode":"All","description":"This policy audits + Windows virtual machines in which the Administrators group contains any of + the specified members. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"AdministratorsGroupMembersToExclude"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/bde62c94-ccca-4821-a815-92c1d31a76de","type":"Microsoft.Authorization/policyDefinitions","name":"bde62c94-ccca-4821-a815-92c1d31a76de"},{"properties":{"displayName":"[Deprecated]: + Audit Web Applications that are not using latest supported Java Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported Java version for the latest security classes. Using older + classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestJava","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/be0a7681-bed4-48dc-9ff3-f0171ee170b6","type":"Microsoft.Authorization/policyDefinitions","name":"be0a7681-bed4-48dc-9ff3-f0171ee170b6"},{"properties":{"displayName":"Allow + resource creation only in Asia data centers","policyType":"BuiltIn","mode":"Indexed","description":"Allows resource creation in the following locations only: East Asia, Southeast Asia, - West India, South India, Central India, Japan East, Japan West","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["eastasia","southeastasia","westindia","southindia","centralindia","japaneast","japanwest"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c1b9cbed-08e3-427d-b9ce-7c535b1e9b94","type":"Microsoft.Authorization/policyDefinitions","name":"c1b9cbed-08e3-427d-b9ce-7c535b1e9b94"},{"properties":{"displayName":"[Preview]: - Apply Diagnostic Settings for Network Security Groups","policyType":"BuiltIn","mode":"Indexed","description":"This - policy automatically deploys diagnostic settings to network security groups.","metadata":{"category":"Monitoring"},"parameters":{"storagePrefix":{"type":"String","metadata":{"displayName":"Storage - Account Prefix for Regional Storage Account"}},"rgName":{"type":"String","metadata":{"displayName":"Resource - Group Name for Storage Account (must exist)","description":"This resource - group must already exist.","strongType":"ExistingResourceGroups"}}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Network/networkSecurityGroups"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Insights/diagnosticSettings","name":"setbypolicy","existenceCondition":{"field":"name","notlike":"*"},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"location":{"type":"string"},"storagePrefix":{"type":"string"},"nsgName":{"type":"string"},"rgName":{"type":"string"}},"resources":[{"type":"Microsoft.Network/networkSecurityGroups/providers/diagnosticSettings","name":"[concat(parameters(''nsgName''),''/Microsoft.Insights/setbypolicy'')]","apiVersion":"2017-05-01-preview","location":"[parameters(''location'')]","dependsOn":["deployStorageAccount"],"properties":{"storageAccountId":"[reference(''deployStorageAccount'').outputs.storageAccountId.value]","logs":[{"category":"NetworkSecurityGroupEvent","enabled":true,"retentionPolicy":{"enabled":false,"days":0}},{"category":"NetworkSecurityGroupRuleCounter","enabled":true,"retentionPolicy":{"enabled":false,"days":0}}]}},{"apiVersion":"2017-05-10","name":"deployStorageAccount","type":"Microsoft.Resources/deployments","resourceGroup":"[parameters(''rgName'')]","properties":{"mode":"incremental","parameters":{"location":{"value":"[parameters(''location'')]"},"storagePrefix":{"value":"[parameters(''storagePrefix'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json","contentVersion":"1.0.0.0","parameters":{"location":{"type":"string"},"storagePrefix":{"type":"string"}},"resources":[{"apiVersion":"2017-06-01","type":"Microsoft.Storage/storageAccounts","name":"[concat(parameters(''storageprefix''), - parameters(''location''))]","sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","location":"[parameters(''location'')]","tags":{"created-by":"policy"},"scale":null,"properties":{"networkAcls":{"bypass":"AzureServices","defaultAction":"Allow","ipRules":[],"virtualNetworkRules":[]},"supportsHttpsTrafficOnly":false}}],"outputs":{"storageAccountId":{"type":"string","value":"[resourceId(''Microsoft.Storage/storageAccounts'',concat(parameters(''storagePrefix''), - parameters(''location'')))]"}}}}}]},"parameters":{"location":{"value":"[field(''location'')]"},"storagePrefix":{"value":"[parameters(''storagePrefix'')]"},"rgName":{"value":"[parameters(''rgName'')]"},"nsgName":{"value":"[field(''name'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c9c29499-c1d1-4195-99bd-2ec9e3a9dc89","type":"Microsoft.Authorization/policyDefinitions","name":"c9c29499-c1d1-4195-99bd-2ec9e3a9dc89"},{"properties":{"displayName":"Allowed - virtual machine SKUs","policyType":"BuiltIn","description":"This policy enables - you to specify a set of virtual machine SKUs that your organization can deploy.","metadata":{"category":"Compute"},"parameters":{"listOfAllowedSKUs":{"type":"Array","metadata":{"description":"The + West India, South India, Central India, Japan East, Japan West","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["eastasia","southeastasia","westindia","southindia","centralindia","japaneast","japanwest"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c1b9cbed-08e3-427d-b9ce-7c535b1e9b94","type":"Microsoft.Authorization/policyDefinitions","name":"c1b9cbed-08e3-427d-b9ce-7c535b1e9b94"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs that are not set to the specified time zone","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that are not set to the specified time zone. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"TimeZone":{"type":"String","metadata":{"displayName":"Time + zone","description":"The expected time zone"},"allowedValues":["(UTC-12:00) + International Date Line West","(UTC-11:00) Coordinated Universal Time-11","(UTC-10:00) + Aleutian Islands","(UTC-10:00) Hawaii","(UTC-09:30) Marquesas Islands","(UTC-09:00) + Alaska","(UTC-09:00) Coordinated Universal Time-09","(UTC-08:00) Baja California","(UTC-08:00) + Coordinated Universal Time-08","(UTC-08:00) Pacific Time (US & Canada)","(UTC-07:00) + Arizona","(UTC-07:00) Chihuahua, La Paz, Mazatlan","(UTC-07:00) Mountain Time + (US & Canada)","(UTC-06:00) Central America","(UTC-06:00) Central Time (US + & Canada)","(UTC-06:00) Easter Island","(UTC-06:00) Guadalajara, Mexico City, + Monterrey","(UTC-06:00) Saskatchewan","(UTC-05:00) Bogota, Lima, Quito, Rio + Branco","(UTC-05:00) Chetumal","(UTC-05:00) Eastern Time (US & Canada)","(UTC-05:00) + Haiti","(UTC-05:00) Havana","(UTC-05:00) Indiana (East)","(UTC-05:00) Turks + and Caicos","(UTC-04:00) Asuncion","(UTC-04:00) Atlantic Time (Canada)","(UTC-04:00) + Caracas","(UTC-04:00) Cuiaba","(UTC-04:00) Georgetown, La Paz, Manaus, San + Juan","(UTC-04:00) Santiago","(UTC-03:30) Newfoundland","(UTC-03:00) Araguaina","(UTC-03:00) + Brasilia","(UTC-03:00) Cayenne, Fortaleza","(UTC-03:00) City of Buenos Aires","(UTC-03:00) + Greenland","(UTC-03:00) Montevideo","(UTC-03:00) Punta Arenas","(UTC-03:00) + Saint Pierre and Miquelon","(UTC-03:00) Salvador","(UTC-02:00) Coordinated + Universal Time-02","(UTC-02:00) Mid-Atlantic - Old","(UTC-01:00) Azores","(UTC-01:00) + Cabo Verde Is.","(UTC) Coordinated Universal Time","(UTC+00:00) Dublin, Edinburgh, + Lisbon, London","(UTC+00:00) Monrovia, Reykjavik","(UTC+00:00) Sao Tome","(UTC+01:00) + Casablanca","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","(UTC+01:00) + Belgrade, Bratislava, Budapest, Ljubljana, Prague","(UTC+01:00) Brussels, + Copenhagen, Madrid, Paris","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb","(UTC+01:00) + West Central Africa","(UTC+02:00) Amman","(UTC+02:00) Athens, Bucharest","(UTC+02:00) + Beirut","(UTC+02:00) Cairo","(UTC+02:00) Chisinau","(UTC+02:00) Damascus","(UTC+02:00) + Gaza, Hebron","(UTC+02:00) Harare, Pretoria","(UTC+02:00) Helsinki, Kyiv, + Riga, Sofia, Tallinn, Vilnius","(UTC+02:00) Jerusalem","(UTC+02:00) Kaliningrad","(UTC+02:00) + Khartoum","(UTC+02:00) Tripoli","(UTC+02:00) Windhoek","(UTC+03:00) Baghdad","(UTC+03:00) + Istanbul","(UTC+03:00) Kuwait, Riyadh","(UTC+03:00) Minsk","(UTC+03:00) Moscow, + St. Petersburg","(UTC+03:00) Nairobi","(UTC+03:30) Tehran","(UTC+04:00) Abu + Dhabi, Muscat","(UTC+04:00) Astrakhan, Ulyanovsk","(UTC+04:00) Baku","(UTC+04:00) + Izhevsk, Samara","(UTC+04:00) Port Louis","(UTC+04:00) Saratov","(UTC+04:00) + Tbilisi","(UTC+04:00) Volgograd","(UTC+04:00) Yerevan","(UTC+04:30) Kabul","(UTC+05:00) + Ashgabat, Tashkent","(UTC+05:00) Ekaterinburg","(UTC+05:00) Islamabad, Karachi","(UTC+05:00) + Qyzylorda","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi","(UTC+05:30) + Sri Jayawardenepura","(UTC+05:45) Kathmandu","(UTC+06:00) Astana","(UTC+06:00) + Dhaka","(UTC+06:00) Omsk","(UTC+06:30) Yangon (Rangoon)","(UTC+07:00) Bangkok, + Hanoi, Jakarta","(UTC+07:00) Barnaul, Gorno-Altaysk","(UTC+07:00) Hovd","(UTC+07:00) + Krasnoyarsk","(UTC+07:00) Novosibirsk","(UTC+07:00) Tomsk","(UTC+08:00) Beijing, + Chongqing, Hong Kong, Urumqi","(UTC+08:00) Irkutsk","(UTC+08:00) Kuala Lumpur, + Singapore","(UTC+08:00) Perth","(UTC+08:00) Taipei","(UTC+08:00) Ulaanbaatar","(UTC+08:45) + Eucla","(UTC+09:00) Chita","(UTC+09:00) Osaka, Sapporo, Tokyo","(UTC+09:00) + Pyongyang","(UTC+09:00) Seoul","(UTC+09:00) Yakutsk","(UTC+09:30) Adelaide","(UTC+09:30) + Darwin","(UTC+10:00) Brisbane","(UTC+10:00) Canberra, Melbourne, Sydney","(UTC+10:00) + Guam, Port Moresby","(UTC+10:00) Hobart","(UTC+10:00) Vladivostok","(UTC+10:30) + Lord Howe Island","(UTC+11:00) Bougainville Island","(UTC+11:00) Chokurdakh","(UTC+11:00) + Magadan","(UTC+11:00) Norfolk Island","(UTC+11:00) Sakhalin","(UTC+11:00) + Solomon Is., New Caledonia","(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky","(UTC+12:00) + Auckland, Wellington","(UTC+12:00) Coordinated Universal Time+12","(UTC+12:00) + Fiji","(UTC+12:00) Petropavlovsk-Kamchatsky - Old","(UTC+12:45) Chatham Islands","(UTC+13:00) + Coordinated Universal Time+13","(UTC+13:00) Nuku''alofa","(UTC+13:00) Samoa","(UTC+14:00) + Kiritimati Island"]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsTimeZone","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[WindowsTimeZone]WindowsTimeZone1;TimeZone'', + ''='', parameters(''TimeZone'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsTimeZone"},"TimeZone":{"value":"[parameters(''TimeZone'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"TimeZone":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[WindowsTimeZone]WindowsTimeZone1;TimeZone","value":"[parameters(''TimeZone'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c21f7060-c148-41cf-a68b-0ab3e14c764c","type":"Microsoft.Authorization/policyDefinitions","name":"c21f7060-c148-41cf-a68b-0ab3e14c764c"},{"properties":{"displayName":"Audit + Windows VMs on which the specified services are not installed and ''Running''","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines on which the specified services are + not installed and ''Running''. This policy should only be used along with + its corresponding deploy policy in an initiative. For more information on + Guest Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsServiceStatus"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a","type":"Microsoft.Authorization/policyDefinitions","name":"c2dd2a9a-8a20-4a9c-b8d6-f17ccc26939a"},{"properties":{"displayName":"Audit + any missing system updates on virtual machine scale sets in Azure Security + Center","policyType":"BuiltIn","mode":"Indexed","description":"Audit whether + there are any missing system security updates and critical updates that should + be installed to ensure that your Windows and Linux virtual machine scale sets + are secure.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"SystemUpdates","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c3f317a7-a95c-4547-b7e7-11017ebdf2fe","type":"Microsoft.Authorization/policyDefinitions","name":"c3f317a7-a95c-4547-b7e7-11017ebdf2fe"},{"properties":{"displayName":"[Preview]: + Audit Linux VMs that have accounts without passwords","policyType":"BuiltIn","mode":"All","description":"This + policy audits Linux virtual machines that have accounts without passwords. + This policy should only be used along with its corresponding deploy policy + in an initiative. For more information on Guest Configuration policies, please + visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"PasswordPolicy_msid232"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c40c9087-1981-4e73-9f53-39743eda9d05","type":"Microsoft.Authorization/policyDefinitions","name":"c40c9087-1981-4e73-9f53-39743eda9d05"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that contain certificates expiring + within the specified number of days","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that contain certificates expiring within the specified number of days. It + also creates a system-assigned managed identity and deploys the VM extension + for Guest Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"CertificateStorePath":{"type":"String","metadata":{"displayName":"Certificate + store path","description":"The path to the certificate store containing the + certificates to check the expiration dates of. Default value is ''Cert:'' + which is the root certificate store path, so all certificates on the machine + will be checked. Other example paths: ''Cert:\\LocalMachine'', ''Cert:\\LocalMachine\\TrustedPublisher'', + ''Cert:\\CurrentUser''"},"defaultValue":"Cert:"},"ExpirationLimitInDays":{"type":"String","metadata":{"displayName":"Expiration + limit in days","description":"An integer indicating the number of days within + which to check for certificates that are expiring. For example, if this value + is 30, any certificate expiring within the next 30 days will cause this policy + to be non-compliant."},"defaultValue":"30"},"CertificateThumbprintsToInclude":{"type":"String","metadata":{"displayName":"Certificate + thumbprints to include","description":"A semicolon-separated list of certificate + thumbprints to check under the specified path. If a value is not specified, + all certificates under the certificate store path will be checked. If a value + is specified, no certificates other than those with the thumbprints specified + will be checked. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"},"defaultValue":""},"CertificateThumbprintsToExclude":{"type":"String","metadata":{"displayName":"Certificate + thumbprints to exclude","description":"A semicolon-separated list of certificate + thumbprints to ignore. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3"},"defaultValue":""},"IncludeExpiredCertificates":{"type":"String","metadata":{"displayName":"Include + expired certificates","description":"Must be ''true'' or ''false''. True indicates + that any found certificates that have already expired will also make this + policy non-compliant. False indicates that certificates that have expired + will be be ignored."},"allowedValues":["true","false"],"defaultValue":"false"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"CertificateExpiration","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[CertificateStore]CertificateStore1;CertificateStorePath'', + ''='', parameters(''CertificateStorePath''), '','', ''[CertificateStore]CertificateStore1;ExpirationLimitInDays'', + ''='', parameters(''ExpirationLimitInDays''), '','', ''[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude'', + ''='', parameters(''CertificateThumbprintsToInclude''), '','', ''[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude'', + ''='', parameters(''CertificateThumbprintsToExclude''), '','', ''[CertificateStore]CertificateStore1;IncludeExpiredCertificates'', + ''='', parameters(''IncludeExpiredCertificates'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"CertificateExpiration"},"CertificateStorePath":{"value":"[parameters(''CertificateStorePath'')]"},"ExpirationLimitInDays":{"value":"[parameters(''ExpirationLimitInDays'')]"},"CertificateThumbprintsToInclude":{"value":"[parameters(''CertificateThumbprintsToInclude'')]"},"CertificateThumbprintsToExclude":{"value":"[parameters(''CertificateThumbprintsToExclude'')]"},"IncludeExpiredCertificates":{"value":"[parameters(''IncludeExpiredCertificates'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"CertificateStorePath":{"type":"string"},"ExpirationLimitInDays":{"type":"string"},"CertificateThumbprintsToInclude":{"type":"string"},"CertificateThumbprintsToExclude":{"type":"string"},"IncludeExpiredCertificates":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[CertificateStore]CertificateStore1;CertificateStorePath","value":"[parameters(''CertificateStorePath'')]"},{"name":"[CertificateStore]CertificateStore1;ExpirationLimitInDays","value":"[parameters(''ExpirationLimitInDays'')]"},{"name":"[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude","value":"[parameters(''CertificateThumbprintsToInclude'')]"},{"name":"[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude","value":"[parameters(''CertificateThumbprintsToExclude'')]"},{"name":"[CertificateStore]CertificateStore1;IncludeExpiredCertificates","value":"[parameters(''IncludeExpiredCertificates'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c5fbc59e-fb6f-494f-81e2-d99a671bdaa8","type":"Microsoft.Authorization/policyDefinitions","name":"c5fbc59e-fb6f-494f-81e2-d99a671bdaa8"},{"properties":{"displayName":"Audit + HTTPS only access for an API App","policyType":"BuiltIn","mode":"All","description":"Use + of HTTPS ensures server/service authentication and protects data in transit + from network layer eavesdropping attacks.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"OnlyHttpsForApiApp","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c85538c1-b527-4ce4-bdb4-1dabcb3fd90d","type":"Microsoft.Authorization/policyDefinitions","name":"c85538c1-b527-4ce4-bdb4-1dabcb3fd90d"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Data Lake Analytics","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Data Lake"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.DataLakeAnalytics/accounts"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c95c74d9-38fe-4f0d-af86-0c7d626a315c","type":"Microsoft.Authorization/policyDefinitions","name":"c95c74d9-38fe-4f0d-af86-0c7d626a315c"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs with a pending reboot","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + with a pending reboot. It also creates a system-assigned managed identity + and deploys the VM extension for Guest Configuration. This policy should only + be used along with its corresponding audit policy in an initiative. For more + information on Guest Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsPendingReboot","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsPendingReboot"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c96f3246-4382-4264-bf6b-af0b35e23c3c","type":"Microsoft.Authorization/policyDefinitions","name":"c96f3246-4382-4264-bf6b-af0b35e23c3c"},{"properties":{"displayName":"Deploy + Diagnostic Settings for Network Security Groups","policyType":"BuiltIn","mode":"Indexed","description":"This + policy automatically deploys diagnostic settings to network security groups. + A storage account with name ''{storagePrefixParameter}{NSGLocation}'' will + be automatically created.","metadata":{"category":"Monitoring"},"parameters":{"storagePrefix":{"type":"String","metadata":{"displayName":"Storage + Account Prefix for Regional Storage Account","description":"This prefix will + be combined with the network security group location to form the created storage + account name."}},"rgName":{"type":"String","metadata":{"displayName":"Resource + Group Name for Storage Account (must exist)","description":"The resource group + that the storage account will be created in. This resource group must already + exist.","strongType":"ExistingResourceGroups"}}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Network/networkSecurityGroups"},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Insights/diagnosticSettings","name":"setbypolicy","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/749f88d5-cbae-40b8-bcfc-e573ddc772fa","/providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"location":{"type":"string"},"storagePrefix":{"type":"string"},"nsgName":{"type":"string"},"rgName":{"type":"string"}},"variables":{"storageDeployName":"[concat(''policyStorage_'', + uniqueString(parameters(''location''), parameters(''nsgName'')))]"},"resources":[{"type":"Microsoft.Network/networkSecurityGroups/providers/diagnosticSettings","name":"[concat(parameters(''nsgName''),''/Microsoft.Insights/setbypolicy'')]","apiVersion":"2017-05-01-preview","location":"[parameters(''location'')]","dependsOn":["[variables(''storageDeployName'')]"],"properties":{"storageAccountId":"[reference(variables(''storageDeployName'')).outputs.storageAccountId.value]","logs":[{"category":"NetworkSecurityGroupEvent","enabled":true,"retentionPolicy":{"enabled":false,"days":0}},{"category":"NetworkSecurityGroupRuleCounter","enabled":true,"retentionPolicy":{"enabled":false,"days":0}}]}},{"apiVersion":"2017-05-10","name":"[variables(''storageDeployName'')]","type":"Microsoft.Resources/deployments","resourceGroup":"[parameters(''rgName'')]","properties":{"mode":"incremental","parameters":{"location":{"value":"[parameters(''location'')]"},"storagePrefix":{"value":"[parameters(''storagePrefix'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json","contentVersion":"1.0.0.0","parameters":{"location":{"type":"string"},"storagePrefix":{"type":"string"}},"resources":[{"apiVersion":"2017-06-01","type":"Microsoft.Storage/storageAccounts","name":"[concat(parameters(''storageprefix''), + parameters(''location''))]","sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","location":"[parameters(''location'')]","tags":{"created-by":"policy"},"scale":null,"properties":{"networkAcls":{"bypass":"AzureServices","defaultAction":"Allow","ipRules":[],"virtualNetworkRules":[]},"supportsHttpsTrafficOnly":true}}],"outputs":{"storageAccountId":{"type":"string","value":"[resourceId(parameters(''rgName''), + ''Microsoft.Storage/storageAccounts'',concat(parameters(''storagePrefix''), + parameters(''location'')))]"}}}}}]},"parameters":{"location":{"value":"[field(''location'')]"},"storagePrefix":{"value":"[parameters(''storagePrefix'')]"},"rgName":{"value":"[parameters(''rgName'')]"},"nsgName":{"value":"[field(''name'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/c9c29499-c1d1-4195-99bd-2ec9e3a9dc89","type":"Microsoft.Authorization/policyDefinitions","name":"c9c29499-c1d1-4195-99bd-2ec9e3a9dc89"},{"properties":{"displayName":"Audit + remote debugging state for a Web Application","policyType":"BuiltIn","mode":"All","description":"Remote + debugging requires inbound ports to be opened on a web application. Remote + debugging should be turned off.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoteDebuggingForWebApplication","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cb510bfd-1cba-4d9f-a230-cb0976f4bb71","type":"Microsoft.Authorization/policyDefinitions","name":"cb510bfd-1cba-4d9f-a230-cb0976f4bb71"},{"properties":{"displayName":"Audit + Windows VMs in which the Administrators group does not contain only the specified + members","policyType":"BuiltIn","mode":"All","description":"This policy audits + Windows virtual machines in which the Administrators group does not contain + only the specified members. This policy should only be used along with its + corresponding deploy policy in an initiative. For more information on Guest + Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"AdministratorsGroupMembers"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cc7cda28-f867-4311-8497-a526129a8d19","type":"Microsoft.Authorization/policyDefinitions","name":"cc7cda28-f867-4311-8497-a526129a8d19"},{"properties":{"displayName":"[Preview]: + Monitor SQL data discovery and classification recommendations in Azure Security + Center","policyType":"BuiltIn","mode":"Indexed","description":"Azure Security + Center monitors the data discovery and classification scan results for your + SQL databases and provides recommendations to classify the sensitive data + in your databases for better monitoring and security","metadata":{"category":"Security + Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Sql/servers/databases","Microsoft.Sql/managedInstances/databases"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"sqlDataClassification","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349","type":"Microsoft.Authorization/policyDefinitions","name":"cc9835f2-9f6b-4cc8-ab4a-f8ef615eb349"},{"properties":{"displayName":"Allowed + virtual machine SKUs","policyType":"BuiltIn","mode":"Indexed","description":"This + policy enables you to specify a set of virtual machine SKUs that your organization + can deploy.","metadata":{"category":"Compute"},"parameters":{"listOfAllowedSKUs":{"type":"Array","metadata":{"description":"The list of SKUs that can be specified for virtual machines.","displayName":"Allowed SKUs","strongType":"VMSKUs"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"not":{"field":"Microsoft.Compute/virtualMachines/sku.name","in":"[parameters(''listOfAllowedSKUs'')]"}}]},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cccc23c7-8427-4f53-ad12-b6a63eb452b3","type":"Microsoft.Authorization/policyDefinitions","name":"cccc23c7-8427-4f53-ad12-b6a63eb452b3"},{"properties":{"displayName":"Allow - resource creation if ''department'' tag set","policyType":"BuiltIn","description":"Allows - resource creation only if the ''department'' tag is set","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"tags","containsKey":"department"}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cd8dc879-a2ae-43c3-8211-1877c5755064","type":"Microsoft.Authorization/policyDefinitions","name":"cd8dc879-a2ae-43c3-8211-1877c5755064"},{"properties":{"displayName":"Allow - resource creation only in Japan data centers","policyType":"BuiltIn","description":"Allows - resource creation in the following locations only: Japan East, Japan West","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["japaneast","japanwest"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e01598e8-6538-41ed-95e8-8b29746cd697","type":"Microsoft.Authorization/policyDefinitions","name":"e01598e8-6538-41ed-95e8-8b29746cd697"},{"properties":{"displayName":"[Preview]: - Monitor OS vulnerabilities in Security Center","policyType":"BuiltIn","mode":"All","description":"Servers + resource creation if ''department'' tag set","policyType":"BuiltIn","mode":"Indexed","description":"Allows + resource creation only if the ''department'' tag is set","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"tags","containsKey":"department"}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cd8dc879-a2ae-43c3-8211-1877c5755064","type":"Microsoft.Authorization/policyDefinitions","name":"cd8dc879-a2ae-43c3-8211-1877c5755064"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that allow re-use of the previous 24 passwords","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that allow re-use of the previous 24 + passwords. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"EnforcePasswordHistory"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cdbf72d9-ac9c-4026-8a3a-491a5ac59293","type":"Microsoft.Authorization/policyDefinitions","name":"cdbf72d9-ac9c-4026-8a3a-491a5ac59293"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Key Vault","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Key Vault"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.KeyVault/vaults"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/cf820ca0-f99e-4f3e-84fb-66e913812d21","type":"Microsoft.Authorization/policyDefinitions","name":"cf820ca0-f99e-4f3e-84fb-66e913812d21"},{"properties":{"displayName":"[Deprecated]: + Audit Function Apps that are not using custom domains","policyType":"BuiltIn","mode":"All","description":"Use + of custom domains protects a Function app from common attacks such as phishing + and other DNS-related attacks.","metadata":{"category":"Security Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"functionapp"},{"field":"kind","equals":"functionapp,linux"},{"field":"kind","equals":"functionapp,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UsedCustomDomains","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/d1cb47db-b7a1-4c46-814e-aad1c0e84f3c","type":"Microsoft.Authorization/policyDefinitions","name":"d1cb47db-b7a1-4c46-814e-aad1c0e84f3c"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs on which the DSC configuration is + not compliant","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows VMs on which + the Desired State Configuration (DSC) configuration is not compliant. This + policy is only applicable to machines with WMF 4 and above. It also creates + a system-assigned managed identity and deploys the VM extension for Guest + Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"WindowsDscConfiguration","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"WindowsDscConfiguration"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/d38b4c26-9d2e-47d7-aefe-18d859a8706a","type":"Microsoft.Authorization/policyDefinitions","name":"d38b4c26-9d2e-47d7-aefe-18d859a8706a"},{"properties":{"displayName":"Audit + Windows Server VMs on which Windows Serial Console is not enabled","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows Server virtual machines on which Windows Serial Console + is not enabled. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsSerialConsole"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/d7ccd0ca-8d78-42af-a43d-6b7f928accbc","type":"Microsoft.Authorization/policyDefinitions","name":"d7ccd0ca-8d78-42af-a43d-6b7f928accbc"},{"properties":{"displayName":"[Deprecated]: + Audit Web Applications that are not using custom domains","policyType":"BuiltIn","mode":"All","description":"Use + of custom domains protects a web application from common attacks such as phishing + and other DNS-related attacks.","metadata":{"category":"Security Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UsedCustomDomains","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/dd2ea520-6b06-45c3-806e-ea297c23e06a","type":"Microsoft.Authorization/policyDefinitions","name":"dd2ea520-6b06-45c3-806e-ea297c23e06a"},{"properties":{"displayName":"Allow + resource creation only in Japan data centers","policyType":"BuiltIn","mode":"Indexed","description":"Allows + resource creation in the following locations only: Japan East, Japan West","metadata":{"category":"General","deprecated":true},"parameters":{},"policyRule":{"if":{"not":{"field":"location","in":["japaneast","japanwest"]}},"then":{"effect":"Deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e01598e8-6538-41ed-95e8-8b29746cd697","type":"Microsoft.Authorization/policyDefinitions","name":"e01598e8-6538-41ed-95e8-8b29746cd697"},{"properties":{"displayName":"Monitor + OS vulnerabilities in Azure Security Center","policyType":"BuiltIn","mode":"All","description":"Servers which do not satisfy the configured baseline will be monitored by Azure Security - Center as recommendations.","metadata":{"category":"Security Center","preview":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable - or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines","Microsoft.OperationalInsights/workspaces"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"osVulnerabilities","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","equals":"Monitored"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15","type":"Microsoft.Authorization/policyDefinitions","name":"e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15"},{"properties":{"displayName":"Allowed - locations","policyType":"BuiltIn","description":"This policy enables you to - restrict the locations your organization can specify when deploying resources. - Use to enforce your geo-compliance requirements. Excludes resource groups, - Microsoft.AzureActiveDirectory/b2cDirectories, and resources that use the - ''global'' region.","metadata":{"category":"General"},"parameters":{"listOfAllowedLocations":{"type":"Array","metadata":{"description":"The + Center as recommendations","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"osVulnerabilities","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15","type":"Microsoft.Authorization/policyDefinitions","name":"e1e5fd5d-3e4c-4ce1-8661-7d1873ae6b15"},{"properties":{"displayName":"[Preview]: + Audit Dependency Agent Deployment in VMSS - VM Image (OS) unlisted","policyType":"BuiltIn","mode":"Indexed","description":"Reports + VMSS as non-compliant if the VM Image (OS) is not in the list defined and + the agent is not installed. The list of OS images will be updated over time + as support is updated.","metadata":{"category":"Monitoring"},"parameters":{"listOfImageIdToInclude_windows":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Windows OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]},"listOfImageIdToInclude_linux":{"type":"Array","metadata":{"displayName":"Optional: + List of VM images that have supported Linux OS to add to scope","description":"Example + value: ''/subscriptions//resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage''"},"defaultValue":[]}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachineScaleSets"},{"not":{"anyOf":[{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_windows'')]"},{"field":"Microsoft.Compute/imageId","in":"[parameters(''listOfImageIdToInclude_linux'')]"},{"anyOf":[{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServer"},{"field":"Microsoft.Compute/imageSKU","in":["2008-R2-SP1","2008-R2-SP1-smalldisk","2012-Datacenter","2012-Datacenter-smalldisk","2012-R2-Datacenter","2012-R2-Datacenter-smalldisk","2016-Datacenter","2016-Datacenter-Server-Core","2016-Datacenter-Server-Core-smalldisk","2016-Datacenter-smalldisk","2016-Datacenter-with-Containers","2016-Datacenter-with-RDSH","2019-Datacenter","2019-Datacenter-Core","2019-Datacenter-Core-smalldisk","2019-Datacenter-Core-with-Containers","2019-Datacenter-Core-with-Containers-smalldisk","2019-Datacenter-smalldisk","2019-Datacenter-with-Containers","2019-Datacenter-with-Containers-smalldisk","2019-Datacenter-zhcn"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerSemiAnnual"},{"field":"Microsoft.Compute/imageSKU","in":["Datacenter-Core-1709-smalldisk","Datacenter-Core-1709-with-Containers-smalldisk","Datacenter-Core-1803-with-Containers-smalldisk"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServerHPCPack"},{"field":"Microsoft.Compute/imageOffer","equals":"WindowsServerHPCPack"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"anyOf":[{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2016-BYOL"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2"},{"field":"Microsoft.Compute/imageOffer","like":"*-WS2012R2-BYOL"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftRServer"},{"field":"Microsoft.Compute/imageOffer","equals":"MLServer-WS2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftVisualStudio"},{"field":"Microsoft.Compute/imageOffer","in":["VisualStudio","Windows"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftDynamicsAX"},{"field":"Microsoft.Compute/imageOffer","equals":"Dynamics"},{"field":"Microsoft.Compute/imageSKU","equals":"Pre-Req-AX7-Onebox-U8"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","equals":"windows-data-science-vm"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsDesktop"},{"field":"Microsoft.Compute/imageOffer","equals":"Windows-10"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","in":["RHEL","RHEL-SAP-HANA"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"SUSE"},{"field":"Microsoft.Compute/imageOffer","in":["SLES","SLES-HPC","SLES-HPC-Priority","SLES-SAP","SLES-SAP-BYOS","SLES-Priority","SLES-BYOS","SLES-SAPCAL","SLES-Standard"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["12-SP2","12-SP3"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","in":["14.04.0-LTS","14.04.1-LTS","14.04.5-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["16.04-LTS","16.04.0-LTS"]},{"field":"Microsoft.Compute/imageSKU","in":["18.04-LTS"]}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","in":["Centos","Centos-LVM","CentOS-SRIOV"]},{"anyOf":[{"field":"Microsoft.Compute/imageSKU","like":"6.*"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","like":"7*"}]}]}}]},"then":{"effect":"auditIfNotExists","details":{"type":"Microsoft.Compute/virtualMachineScaleSets/extensions","existenceCondition":{"field":"Microsoft.Compute/virtualMachineScaleSets/extensions/publisher","equals":"Microsoft.Azure.Monitoring.DependencyAgent"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e2dd799a-a932-4e9d-ac17-d473bc3c6c10","type":"Microsoft.Authorization/policyDefinitions","name":"e2dd799a-a932-4e9d-ac17-d473bc3c6c10"},{"properties":{"displayName":"Audit + accounts with read permissions who are not MFA enabled on a subscription","policyType":"BuiltIn","mode":"All","description":"Multi-Factor + Authentication (MFA) should be enabled for all subscription accounts with + read privileges to prevent a breach of accounts or resources.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"EnableMFAForReadPermissions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e3576e28-8b17-4677-84c3-db2990658d64","type":"Microsoft.Authorization/policyDefinitions","name":"e3576e28-8b17-4677-84c3-db2990658d64"},{"properties":{"displayName":"Allowed + locations","policyType":"BuiltIn","mode":"Indexed","description":"This policy + enables you to restrict the locations your organization can specify when deploying + resources. Use to enforce your geo-compliance requirements. Excludes resource + groups, Microsoft.AzureActiveDirectory/b2cDirectories, and resources that + use the ''global'' region.","metadata":{"category":"General"},"parameters":{"listOfAllowedLocations":{"type":"Array","metadata":{"description":"The list of locations that can be specified when deploying resources.","strongType":"location","displayName":"Allowed - locations"}}},"policyRule":{"if":{"allOf":[{"field":"location","notIn":"[parameters(''listOfAllowedLocations'')]"},{"field":"location","notEquals":"global"},{"field":"type","notEquals":"Microsoft.AzureActiveDirectory/b2cDirectories"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c","type":"Microsoft.Authorization/policyDefinitions","name":"e56962a6-4747-49cd-b67b-bf8b01975c4c"},{"properties":{"displayName":"Allowed + locations"}}},"policyRule":{"if":{"allOf":[{"field":"location","notIn":"[parameters(''listOfAllowedLocations'')]"},{"field":"location","notEquals":"global"},{"field":"type","notEquals":"Microsoft.AzureActiveDirectory/b2cDirectories"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c","type":"Microsoft.Authorization/policyDefinitions","name":"e56962a6-4747-49cd-b67b-bf8b01975c4c"},{"properties":{"displayName":"[Deprecated]: + Audit Web Applications that are not using latest supported Node.js Framework","policyType":"BuiltIn","mode":"All","description":"Use + the latest supported Node.js version for the latest security classes. Using + older classes and types can make your application vulnerable.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"UseLatestNodeJS","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e67687e8-08d5-4e7f-8226-5b4753bba008","type":"Microsoft.Authorization/policyDefinitions","name":"e67687e8-08d5-4e7f-8226-5b4753bba008"},{"properties":{"displayName":"Subnets + should be associated with a Network Security Group","policyType":"BuiltIn","mode":"All","description":"Protect + your subnet from potential threats by restricting access to it with a Network + Security Group (NSG). NSGs contain a list of Access Control List (ACL) rules + that allow or deny network traffic to your subnet.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"Disabled"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Network/virtualNetworks/subnets"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"networkSecurityGroupsOnSubnets","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e71308d3-144b-4262-b144-efdc3cc90517","type":"Microsoft.Authorization/policyDefinitions","name":"e71308d3-144b-4262-b144-efdc3cc90517"},{"properties":{"displayName":"Allowed locations for resource groups","policyType":"BuiltIn","mode":"All","description":"This policy enables you to restrict the locations your organization can create resource groups in. Use to enforce your geo-compliance requirements.","metadata":{"category":"General"},"parameters":{"listOfAllowedLocations":{"type":"Array","metadata":{"description":"The list of locations that resource groups can be created in.","strongType":"location","displayName":"Allowed - locations"}}},"policyRule":{"if":{"allOf":[{"field":"location","notIn":"[parameters(''listOfAllowedLocations'')]"},{"field":"type","equals":"Microsoft.Resources/subscriptions/resourceGroups"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988","type":"Microsoft.Authorization/policyDefinitions","name":"e765b5de-1225-4ba3-bd56-1ac6695af988"},{"properties":{"displayName":"[Preview]: - Deploy Auditing on SQL servers","policyType":"BuiltIn","mode":"Indexed","description":"This + locations"}}},"policyRule":{"if":{"allOf":[{"field":"location","notIn":"[parameters(''listOfAllowedLocations'')]"},{"field":"type","equals":"Microsoft.Resources/subscriptions/resourceGroups"}]},"then":{"effect":"deny"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988","type":"Microsoft.Authorization/policyDefinitions","name":"e765b5de-1225-4ba3-bd56-1ac6695af988"},{"properties":{"displayName":"[Deprecated]: + Audit Web Sockets state for a Web Application","policyType":"BuiltIn","mode":"All","description":"The + Web Sockets protocol is vulnerable to different types of security threats. + Use of Web Sockets within a web application must be carefully reviewed.","metadata":{"category":"Security + Center","preview":true,"deprecated":true},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"app"},{"field":"kind","equals":"WebApp"},{"field":"kind","equals":"app,linux"},{"field":"kind","equals":"app,linux,container"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"DisableWebSockets","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e797f851-8be7-4c40-bb56-2e3395215b0e","type":"Microsoft.Authorization/policyDefinitions","name":"e797f851-8be7-4c40-bb56-2e3395215b0e"},{"properties":{"displayName":"Audit + remote debugging state for an API App","policyType":"BuiltIn","mode":"All","description":"Remote + debugging requires inbound ports to be opened on an API app. Remote debugging + should be turned off.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"microsoft.Web/sites"},{"anyOf":[{"field":"kind","equals":"api"},{"field":"kind","equals":"apiApp"}]}]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoteDebuggingForApiApp","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/e9c8d085-d9cc-4b17-9cdc-059f1f01f19e","type":"Microsoft.Authorization/policyDefinitions","name":"e9c8d085-d9cc-4b17-9cdc-059f1f01f19e"},{"properties":{"displayName":"Audit + deprecated accounts with owner permissions on a subscription","policyType":"BuiltIn","mode":"All","description":"Deprecated + accounts with owner permissions should be removed from your subscription. Deprecated + accounts are accounts that have been blocked from signing in.","metadata":{"category":"Security + Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoveDeprecatedAccountsWithOwnerPermissions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/ebb62a0c-3560-49e1-89ed-27e074e9f8ad","type":"Microsoft.Authorization/policyDefinitions","name":"ebb62a0c-3560-49e1-89ed-27e074e9f8ad"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Linux VMs that allow remote connections from + accounts without passwords","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Linux virtual machines + that allow remote connections from accounts without passwords. It also creates + a system-assigned managed identity and deploys the VM extension for Guest + Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["microsoft-aks","AzureDatabricks","qubole-inc","datastax","couchbase","scalegrid","checkpoint","paloaltonetworks"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","like":"CentOS*"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"RHEL"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"osa"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"credativ"},{"field":"Microsoft.Compute/imageOffer","equals":"Debian"},{"field":"Microsoft.Compute/imageSKU","notLike":"7*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Suse"},{"field":"Microsoft.Compute/imageOffer","like":"SLES*"},{"field":"Microsoft.Compute/imageSKU","notLike":"11*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"12*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","in":["linux-data-science-vm-ubuntu","azureml"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-altus-centos-os"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","like":"linux*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"PasswordPolicy_msid110","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"PasswordPolicy_msid110"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforLinux'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforLinux","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/ec49586f-4939-402d-a29e-6ff502b20592","type":"Microsoft.Authorization/policyDefinitions","name":"ec49586f-4939-402d-a29e-6ff502b20592"},{"properties":{"displayName":"Deploy + Diagnostic Settings for Key Vault to Event Hub","policyType":"BuiltIn","mode":"Indexed","description":"Deploys + the diagnostic settings for Key Vault to stream to a regional Event Hub when + any Key Vault which is missing this diagnostic settings is created or updated.","metadata":{"category":"Key + Vault"},"parameters":{"profileName":{"type":"String","metadata":{"displayName":"Profile + name","description":"The diagnostic settings profile name"},"defaultValue":"setbypolicy"},"eventHubRuleId":{"type":"String","metadata":{"displayName":"Event + Hub Authorization Rule Id","description":"The Event Hub authorization rule + Id for Azure Diagnostics. The authorization rule needs to be at Event Hub + namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource + group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization + rule}","strongType":"Microsoft.EventHub/Namespaces/AuthorizationRules","assignPermissions":true}},"metricsEnabled":{"type":"String","metadata":{"displayName":"Enable + metrics","description":"Whether to enable metrics stream to the Event Hub + - True or False"},"allowedValues":["True","False"],"defaultValue":"False"},"logsEnabled":{"type":"String","metadata":{"displayName":"Enable + logs","description":"Whether to enable logs stream to the Event Hub - True + or False"},"allowedValues":["True","False"],"defaultValue":"True"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.KeyVault/vaults"},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.Insights/diagnosticSettings","name":"[parameters(''profileName'')]","existenceCondition":{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"[parameters(''logsEnabled'')]"},{"field":"Microsoft.Insights/diagnosticSettings/metrics.enabled","equals":"[parameters(''metricsEnabled'')]"}]},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vaultName":{"type":"string"},"location":{"type":"string"},"eventHubRuleId":{"type":"string"},"metricsEnabled":{"type":"string"},"logsEnabled":{"type":"string"},"profileName":{"type":"string"}},"resources":[{"type":"Microsoft.KeyVault/vaults/providers/diagnosticSettings","apiVersion":"2017-05-01-preview","name":"[concat(parameters(''vaultName''), + ''/'', ''Microsoft.Insights/'', parameters(''profileName''))]","location":"[parameters(''location'')]","dependsOn":[],"properties":{"eventHubAuthorizationRuleId":"[parameters(''eventHubRuleId'')]","metrics":[{"category":"AllMetrics","enabled":"[parameters(''metricsEnabled'')]","retentionPolicy":{"enabled":false,"days":0}}],"logs":[{"category":"AuditEvent","enabled":"[parameters(''logsEnabled'')]"}]}}],"outputs":{"policy":{"type":"string","value":"[concat(''Enabled + diagnostic settings for '', parameters(''vaultName''))]"}}},"parameters":{"location":{"value":"[field(''location'')]"},"vaultName":{"value":"[field(''name'')]"},"eventHubRuleId":{"value":"[parameters(''eventHubRuleId'')]"},"metricsEnabled":{"value":"[parameters(''metricsEnabled'')]"},"logsEnabled":{"value":"[parameters(''logsEnabled'')]"},"profileName":{"value":"[parameters(''profileName'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/ed7c8c13-51e7-49d1-8a43-8490431a0da2","type":"Microsoft.Authorization/policyDefinitions","name":"ed7c8c13-51e7-49d1-8a43-8490431a0da2"},{"properties":{"displayName":"Audit + SQL servers without Vulnerability Assessment","policyType":"BuiltIn","mode":"Indexed","description":"Audit + Azure SQL servers which do not have recurring vulnerability assessment scans + enabled. Vulnerability assessment can discover, track, and help you remediate + potential database vulnerabilities.","metadata":{"category":"SQL"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Sql/servers/vulnerabilityAssessments","name":"default","existenceCondition":{"field":"Microsoft.Sql/servers/vulnerabilityAssessments/recurringScans.isEnabled","equals":"True"}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9","type":"Microsoft.Authorization/policyDefinitions","name":"ef2a8f2a-b3d9-49cd-a8a8-9a3aaaf647d9"},{"properties":{"displayName":"Deploy + requirements to audit Windows VMs that have the specified applications installed","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that have the specified applications installed. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"ApplicationName":{"type":"String","metadata":{"displayName":"Application + names (supports wildcards)","description":"A semicolon-separated list of the + names of the applications that should not be installed. e.g. ''Microsoft SQL + Server 2014 (64-bit); Microsoft Visual Studio Code'' or ''Microsoft SQL Server + 2014*'' (to match any application starting with ''Microsoft SQL Server 2014'')"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"NotInstalledApplication","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[InstalledApplication]NotInstalledApplicationResource1;Name'', + ''='', parameters(''ApplicationName'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"NotInstalledApplication"},"ApplicationName":{"value":"[parameters(''ApplicationName'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"ApplicationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[InstalledApplication]NotInstalledApplicationResource1;Name","value":"[parameters(''ApplicationName'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f0633351-c7b2-41ff-9981-508fc08553c2","type":"Microsoft.Authorization/policyDefinitions","name":"f0633351-c7b2-41ff-9981-508fc08553c2"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Linux VMs that do not have the passwd file permissions + set to 0644","policyType":"BuiltIn","mode":"Indexed","description":"This policy + creates a Guest Configuration assignment to audit Linux virtual machines that + do not have the passwd file permissions set to 0644. It also creates a system-assigned + managed identity and deploys the VM extension for Guest Configuration. This + policy should only be used along with its corresponding audit policy in an + initiative. For more information on Guest Configuration policies, please visit + https://aka.ms/gcpol","metadata":{"category":"Guest Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["microsoft-aks","AzureDatabricks","qubole-inc","datastax","couchbase","scalegrid","checkpoint","paloaltonetworks"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"OpenLogic"},{"field":"Microsoft.Compute/imageOffer","like":"CentOS*"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"RHEL"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"RedHat"},{"field":"Microsoft.Compute/imageOffer","equals":"osa"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"credativ"},{"field":"Microsoft.Compute/imageOffer","equals":"Debian"},{"field":"Microsoft.Compute/imageSKU","notLike":"7*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Suse"},{"field":"Microsoft.Compute/imageOffer","like":"SLES*"},{"field":"Microsoft.Compute/imageSKU","notLike":"11*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"Canonical"},{"field":"Microsoft.Compute/imageOffer","equals":"UbuntuServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"12*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","in":["linux-data-science-vm-ubuntu","azureml"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-centos-os"},{"field":"Microsoft.Compute/imageSKU","notLike":"6*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloudera"},{"field":"Microsoft.Compute/imageOffer","equals":"cloudera-altus-centos-os"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","like":"linux*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"PasswordPolicy_msid121","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"PasswordPolicy_msid121"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*"}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforLinux'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforLinux","typeHandlerVersion":"1.0","autoUpgradeMinorVersion":true},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f19aa1c1-6b91-4c27-ae6a-970279f03db9","type":"Microsoft.Authorization/policyDefinitions","name":"f19aa1c1-6b91-4c27-ae6a-970279f03db9"},{"properties":{"displayName":"Audit + Windows VMs in which the Administrators group does not contain all of the + specified members","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines in which the Administrators group does + not contain all of the specified members. This policy should only be used + along with its corresponding deploy policy in an initiative. For more information + on Guest Configuration policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"AdministratorsGroupMembersToInclude"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f3b44e5d-1456-475f-9c67-c66c4618e85a","type":"Microsoft.Authorization/policyDefinitions","name":"f3b44e5d-1456-475f-9c67-c66c4618e85a"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that do not contain the specified certificates in Trusted + Root","policyType":"BuiltIn","mode":"All","description":"This policy audits + Windows VMs that do not contain the specified certificates in the Trusted + Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). + This policy should only be used along with its corresponding deploy policy + in an initiative. For more information on Guest Configuration policies, please + visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"WindowsCertificateInTrustedRoot"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f3b9ad83-000d-4dc1-bff0-6d54533dd03f","type":"Microsoft.Authorization/policyDefinitions","name":"f3b9ad83-000d-4dc1-bff0-6d54533dd03f"},{"properties":{"displayName":"[Preview]: + Audit Log Analytics Workspace for VM - Report Mismatch","policyType":"BuiltIn","mode":"Indexed","description":"Reports + VMs as non-compliant if they not logging to the LA workspace specified in + the policy/initiative assignment.","metadata":{"category":"Monitoring"},"parameters":{"logAnalyticsWorkspaceId":{"type":"String","metadata":{"displayName":"Log + Analytics Workspace Id that VMs should be configured for","description":"This + is the Id (GUID) of the Log Analytics Workspace that the VMs should be configured + for."}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines/extensions"},{"field":"Microsoft.Compute/virtualMachines/extensions/publisher","equals":"Microsoft.EnterpriseCloud.Monitoring"},{"field":"Microsoft.Compute/virtualMachines/extensions/settings.workspaceId","notEquals":"[parameters(''logAnalyticsWorkspaceId'')]"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f47b5582-33ec-4c5c-87c0-b010a6b2e917","type":"Microsoft.Authorization/policyDefinitions","name":"f47b5582-33ec-4c5c-87c0-b010a6b2e917"},{"properties":{"displayName":"Audit + existence of authorization rules on Event Hub entities","policyType":"BuiltIn","mode":"All","description":"Audit + existence of authorization rules on Event Hub entities to grant least-privileged + access","metadata":{"category":"Event Hub"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.EventHub/namespaces/eventhubs"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.EventHub/namespaces/eventHubs/authorizationRules"}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f4826e5f-6a27-407c-ae3e-9582eb39891d","type":"Microsoft.Authorization/policyDefinitions","name":"f4826e5f-6a27-407c-ae3e-9582eb39891d"},{"properties":{"displayName":"[Preview]: + Audit Windows VMs that do not have the password complexity setting enabled","policyType":"BuiltIn","mode":"All","description":"This + policy audits Windows virtual machines that do not have the password complexity + setting enabled. This policy should only be used along with its corresponding + deploy policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"PasswordMustMeetComplexityRequirements"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f48b2913-1dc5-4834-8c72-ccc1dfd819bb","type":"Microsoft.Authorization/policyDefinitions","name":"f48b2913-1dc5-4834-8c72-ccc1dfd819bb"},{"properties":{"displayName":"[Preview]: + Deploy requirements to audit Windows VMs that have not restarted within the + specified number of days","policyType":"BuiltIn","mode":"Indexed","description":"This + policy creates a Guest Configuration assignment to audit Windows virtual machines + that have not restarted within the specified number of days. It also creates + a system-assigned managed identity and deploys the VM extension for Guest + Configuration. This policy should only be used along with its corresponding + audit policy in an initiative. For more information on Guest Configuration + policies, please visit https://aka.ms/gcpol","metadata":{"category":"Guest + Configuration","requiredProviders":["Microsoft.GuestConfiguration"]},"parameters":{"NumberOfDays":{"type":"String","metadata":{"displayName":"Number + of days","description":"The number of days without restart until the machine + is considered non-compliant"},"defaultValue":"12"}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Compute/virtualMachines"},{"anyOf":[{"field":"Microsoft.Compute/imagePublisher","in":["esri","incredibuild","MicrosoftDynamicsAX","MicrosoftSharepoint","MicrosoftVisualStudio","MicrosoftWindowsDesktop","MicrosoftWindowsServerHPCPack"]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftWindowsServer"},{"field":"Microsoft.Compute/imageSKU","notLike":"2008*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"MicrosoftSQLServer"},{"field":"Microsoft.Compute/imageSKU","notEquals":"SQL2008R2SP3-WS2008R2SP1"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-dsvm"},{"field":"Microsoft.Compute/imageOffer","equals":"dsvm-windows"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"microsoft-ads"},{"field":"Microsoft.Compute/imageOffer","in":["standard-data-science-vm","windows-data-science-vm"]}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"batch"},{"field":"Microsoft.Compute/imageOffer","equals":"rendering-windows2016"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"center-for-internet-security-inc"},{"field":"Microsoft.Compute/imageOffer","like":"cis-windows-server-201*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"pivotal"},{"field":"Microsoft.Compute/imageOffer","like":"bosh-windows-server*"}]},{"allOf":[{"field":"Microsoft.Compute/imagePublisher","equals":"cloud-infrastructure-services"},{"field":"Microsoft.Compute/imageOffer","like":"ad*"}]}]}]},"then":{"effect":"deployIfNotExists","details":{"type":"Microsoft.GuestConfiguration/guestConfigurationAssignments","name":"MachineLastBootUpTime","roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"],"existenceCondition":{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash","equals":"[base64(concat(''[MachineUpTime]MachineLastBootUpTime;NumberOfDays'', + ''='', parameters(''NumberOfDays'')))]"},"deployment":{"properties":{"mode":"incremental","parameters":{"vmName":{"value":"[field(''name'')]"},"location":{"value":"[field(''location'')]"},"configurationName":{"value":"MachineLastBootUpTime"},"NumberOfDays":{"value":"[parameters(''NumberOfDays'')]"}},"template":{"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"vmName":{"type":"string"},"location":{"type":"string"},"configurationName":{"type":"string"},"NumberOfDays":{"type":"string"}},"resources":[{"apiVersion":"2018-11-20","type":"Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments","name":"[concat(parameters(''vmName''), + ''/Microsoft.GuestConfiguration/'', parameters(''configurationName''))]","location":"[parameters(''location'')]","properties":{"guestConfiguration":{"name":"[parameters(''configurationName'')]","version":"1.*","configurationParameter":[{"name":"[MachineUpTime]MachineLastBootUpTime;NumberOfDays","value":"[parameters(''NumberOfDays'')]"}]}}},{"apiVersion":"2017-03-30","type":"Microsoft.Compute/virtualMachines","identity":{"type":"SystemAssigned"},"name":"[parameters(''vmName'')]","location":"[parameters(''location'')]"},{"apiVersion":"2015-05-01-preview","name":"[concat(parameters(''vmName''), + ''/AzurePolicyforWindows'')]","type":"Microsoft.Compute/virtualMachines/extensions","location":"[parameters(''location'')]","properties":{"publisher":"Microsoft.GuestConfiguration","type":"ConfigurationforWindows","typeHandlerVersion":"1.1","autoUpgradeMinorVersion":true,"settings":{},"protectedSettings":{}},"dependsOn":["[concat(''Microsoft.Compute/virtualMachines/'',parameters(''vmName''),''/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/'',parameters(''configurationName''))]"]}]}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f4b245d4-46c9-42be-9b1a-49e2b5b94194","type":"Microsoft.Authorization/policyDefinitions","name":"f4b245d4-46c9-42be-9b1a-49e2b5b94194"},{"properties":{"displayName":"Deploy + Auditing on SQL servers","policyType":"BuiltIn","mode":"Indexed","description":"This policy ensures that Auditing is enabled on SQL Servers for enhanced security - & compliance. It will automatically create a storage account in the same region - as the SQL server to store audit records.","metadata":{"category":"SQL"},"parameters":{"retentionDays":{"type":"String","metadata":{"description":"The + and compliance. It will automatically create a storage account in the same + region as the SQL server to store audit records.","metadata":{"category":"SQL"},"parameters":{"retentionDays":{"type":"String","metadata":{"description":"The value in days of the retention period (0 indicates unlimited retention)","displayName":"Retention days (optional, 180 days if unspecified)"},"defaultValue":"180"},"storageAccountsResourceGroup":{"type":"String","metadata":{"displayName":"Resource group name for storage accounts","description":"Auditing writes database events to an audit log in your Azure Storage account (a storage account will be created in each region where a SQL Server is created that will be shared by all servers in that region). Important - for proper operation of Auditing do not delete - or rename the resource group or the storage accounts.","strongType":"existingResourceGroups"}}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Sql/servers/auditingSettings","name":"Default","existenceCondition":{"field":"Microsoft.Sql/auditingSettings.state","equals":"Enabled"},"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"serverName":{"type":"string"},"auditRetentionDays":{"type":"string"},"storageAccountsResourceGroup":{"type":"string"},"location":{"type":"string"}},"variables":{"retentionDays":"[int(parameters(''auditRetentionDays''))]","subscriptionId":"[subscription().subscriptionId]","uniqueStorage":"[uniqueString(variables(''subscriptionId''), + or rename the resource group or the storage accounts.","strongType":"existingResourceGroups"}}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Sql/servers"},"then":{"effect":"DeployIfNotExists","details":{"type":"Microsoft.Sql/servers/auditingSettings","name":"Default","existenceCondition":{"field":"Microsoft.Sql/auditingSettings.state","equals":"Enabled"},"roleDefinitionIds":["/providers/microsoft.authorization/roleDefinitions/056cd41c-7e88-42e1-933e-88ba6a50c9c3","/providers/microsoft.authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab"],"deployment":{"properties":{"mode":"incremental","template":{"$schema":"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","parameters":{"serverName":{"type":"string"},"auditRetentionDays":{"type":"string"},"storageAccountsResourceGroup":{"type":"string"},"location":{"type":"string"}},"variables":{"retentionDays":"[int(parameters(''auditRetentionDays''))]","subscriptionId":"[subscription().subscriptionId]","uniqueStorage":"[uniqueString(variables(''subscriptionId''), parameters(''location''), parameters(''storageAccountsResourceGroup''))]","locationCode":"[substring(parameters(''location''), 0, 3)]","storageName":"[tolower(concat(''sqlaudit'', variables(''locationCode''), variables(''uniqueStorage'')))]","createStorageAccountDeploymentName":"[concat(''sqlServerAuditingStorageAccount-'', - variables(''locationCode''))]"},"resources":[{"apiVersion":"2017-05-10","name":"[variables(''createStorageAccountDeploymentName'')]","type":"Microsoft.Resources/deployments","resourceGroup":"[parameters(''storageAccountsResourceGroup'')]","properties":{"mode":"Incremental","parameters":{"location":{"value":"[parameters(''location'')]"},"storageName":{"value":"[variables(''storageName'')]"}},"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-policy/master/samples/SQL/deploy-sql-server-auditing/createStorage.template.json","contentVersion":"1.0.0.0"}}},{"name":"[concat(parameters(''serverName''), - ''/Default'')]","type":"Microsoft.Sql/servers/auditingSettings","apiVersion":"2017-03-01-preview","properties":{"state":"Enabled","storageEndpoint":"[reference(variables(''createStorageAccountDeploymentName'')).outputs.storageAccountEndPoint.value]","storageAccountAccessKey":"[reference(variables(''createStorageAccountDeploymentName'')).outputs.storageAccountKey.value]","retentionDays":"[variables(''retentionDays'')]","auditActionsAndGroups":null,"storageAccountSubscriptionId":"[subscription().subscriptionId]","isStorageSecondaryKeyInUse":false}}]},"parameters":{"serverName":{"value":"[field(''name'')]"},"auditRetentionDays":{"value":"[parameters(''retentionDays'')]"},"storageAccountsResourceGroup":{"value":"[parameters(''storageAccountsResourceGroup'')]"},"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f4c68484-132f-41f9-9b6d-3e4b1cb55036","type":"Microsoft.Authorization/policyDefinitions","name":"f4c68484-132f-41f9-9b6d-3e4b1cb55036"},{"properties":{"displayName":"test_policy7k677hf5p","policyType":"Custom","description":"desc_for_test_policy_123","parameters":{"allowedLocations":{"type":"Array","metadata":{"description":"The + uniqueString(variables(''locationCode''), parameters(''serverName'')))]"},"resources":[{"apiVersion":"2017-05-10","name":"[variables(''createStorageAccountDeploymentName'')]","type":"Microsoft.Resources/deployments","resourceGroup":"[parameters(''storageAccountsResourceGroup'')]","properties":{"mode":"Incremental","parameters":{"location":{"value":"[parameters(''location'')]"},"storageName":{"value":"[variables(''storageName'')]"}},"templateLink":{"uri":"https://raw.githubusercontent.com/Azure/azure-policy/master/samples/SQL/deploy-sql-server-auditing/createStorage.template.json","contentVersion":"1.0.0.0"}}},{"name":"[concat(parameters(''serverName''), + ''/Default'')]","type":"Microsoft.Sql/servers/auditingSettings","apiVersion":"2017-03-01-preview","properties":{"state":"Enabled","storageEndpoint":"[reference(variables(''createStorageAccountDeploymentName'')).outputs.storageAccountEndPoint.value]","storageAccountAccessKey":"[reference(variables(''createStorageAccountDeploymentName'')).outputs.storageAccountKey.value]","retentionDays":"[variables(''retentionDays'')]","auditActionsAndGroups":null,"storageAccountSubscriptionId":"[subscription().subscriptionId]","isStorageSecondaryKeyInUse":false}}]},"parameters":{"serverName":{"value":"[field(''name'')]"},"auditRetentionDays":{"value":"[parameters(''retentionDays'')]"},"storageAccountsResourceGroup":{"value":"[parameters(''storageAccountsResourceGroup'')]"},"location":{"value":"[field(''location'')]"}}}}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f4c68484-132f-41f9-9b6d-3e4b1cb55036","type":"Microsoft.Authorization/policyDefinitions","name":"f4c68484-132f-41f9-9b6d-3e4b1cb55036"},{"properties":{"displayName":"Virtual + machines should be associated with a Network Security Group","policyType":"BuiltIn","mode":"All","description":"Protect + your VM from potential threats by restricting access to it with a Network + Security Group (NSG). NSGs contain a list of Access Control List (ACL) rules + that allow or deny network traffic to your VM from other instances, in or + outside the same subnet.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Compute/virtualMachines","Microsoft.ClassicCompute/virtualMachines"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"networkSecurityGroupsOnVirtualMachines","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["Monitored","NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f6de0be7-9a8a-4b8a-b349-43cf02d22f7c","type":"Microsoft.Authorization/policyDefinitions","name":"f6de0be7-9a8a-4b8a-b349-43cf02d22f7c"},{"properties":{"displayName":"Audit + external accounts with owner permissions on a subscription","policyType":"BuiltIn","mode":"All","description":"External + accounts with owner permissions should be removed from your subscription in + order to prevent unmonitored access.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.Resources/subscriptions"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"RemoveExternalAccountsWithOwnerPermissions","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f8456c1c-aa66-4dfb-861a-25d127b775c9","type":"Microsoft.Authorization/policyDefinitions","name":"f8456c1c-aa66-4dfb-861a-25d127b775c9"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Service Bus","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Service Bus"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.ServiceBus/namespaces"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f8d36e2f-389b-4ee4-898d-21aeb69a0f45","type":"Microsoft.Authorization/policyDefinitions","name":"f8d36e2f-389b-4ee4-898d-21aeb69a0f45"},{"properties":{"displayName":"Audit + enabling of diagnostic logs in Azure Stream Analytics","policyType":"BuiltIn","mode":"Indexed","description":"Audit + enabling of diagnostic logs. This enables you to recreate activity trails + to use for investigation purposes; when a security incident occurs or when + your network is compromised","metadata":{"category":"Stream Analytics"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"},"requiredRetentionDays":{"type":"String","metadata":{"displayName":"Required + retention (days)","description":"The required diagnostic logs retention in + days"},"defaultValue":"365"}},"policyRule":{"if":{"field":"type","equals":"Microsoft.StreamAnalytics/streamingJobs"},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Insights/diagnosticSettings","existenceCondition":{"anyOf":[{"allOf":[{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"},{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days","equals":"[parameters(''requiredRetentionDays'')]"},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]},{"allOf":[{"not":{"field":"Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled","equals":"true"}},{"field":"Microsoft.Insights/diagnosticSettings/logs.enabled","equals":"true"}]}]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/f9be5368-9bf5-4b84-9e0a-7850da98bb46","type":"Microsoft.Authorization/policyDefinitions","name":"f9be5368-9bf5-4b84-9e0a-7850da98bb46"},{"properties":{"displayName":"Audit + Linux VMs that do not have the specified applications installed","policyType":"BuiltIn","mode":"All","description":"This + policy audits Linux virtual machines that do not have the specified applications + installed. This policy should only be used along with its corresponding deploy + policy in an initiative. For more information on Guest Configuration policies, + please visit https://aka.ms/gcpol","metadata":{"category":"Guest Configuration"},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.GuestConfiguration/guestConfigurationAssignments"},{"field":"name","equals":"installed_application_linux"},{"field":"Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus","notEquals":"Compliant"}]},"then":{"effect":"audit"}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/fee5cb2b-9d9b-410e-afe3-2902d90d0004","type":"Microsoft.Authorization/policyDefinitions","name":"fee5cb2b-9d9b-410e-afe3-2902d90d0004"},{"properties":{"displayName":"Monitor + SQL vulnerability assessment results in Azure Security Center","policyType":"BuiltIn","mode":"Indexed","description":"Monitor + Vulnerability Assessment scan results and recommendations for how to remediate + database vulnerabilities.","metadata":{"category":"Security Center"},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["AuditIfNotExists","Disabled"],"defaultValue":"AuditIfNotExists"}},"policyRule":{"if":{"field":"type","in":["Microsoft.Sql/servers/databases","Microsoft.Sql/managedinstances/databases"]},"then":{"effect":"[parameters(''effect'')]","details":{"type":"Microsoft.Security/complianceResults","name":"sqlVulnerabilityAssessment","existenceCondition":{"field":"Microsoft.Security/complianceResults/resourceStatus","in":["NotApplicable","OffByPolicy","Healthy"]}}}}},"id":"/providers/Microsoft.Authorization/policyDefinitions/feedbf84-6b99-488c-acc2-71c829aa5ffc","type":"Microsoft.Authorization/policyDefinitions","name":"feedbf84-6b99-488c-acc2-71c829aa5ffc"},{"properties":{"displayName":"test_policy7k677hf5p","policyType":"Custom","mode":"Indexed","description":"desc_for_test_policy_123","parameters":{"allowedLocations":{"type":"Array","metadata":{"description":"The list of locations that can be specified when deploying resources","strongType":"location","displayName":"Allowed - locations"}}},"policyRule":{"if":{"not":{"field":"location","in":"[parameters(''allowedLocations'')]"}},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/azure-cli-test-policy5hghddzsk","type":"Microsoft.Authorization/policyDefinitions","name":"azure-cli-test-policy5hghddzsk"},{"properties":{"displayName":"test_policyqtoweh4ya","policyType":"Custom","description":"desc_for_test_policy_123","parameters":{"allowedLocations":{"type":"Array","metadata":{"description":"The + locations"}}},"policyRule":{"if":{"not":{"field":"location","in":"[parameters(''allowedLocations'')]"}},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/azure-cli-test-policy5hghddzsk","type":"Microsoft.Authorization/policyDefinitions","name":"azure-cli-test-policy5hghddzsk"},{"properties":{"displayName":"test_policyqtoweh4ya","policyType":"Custom","mode":"Indexed","description":"desc_for_test_policy_123","parameters":{"allowedLocations":{"type":"Array","metadata":{"description":"The list of locations that can be specified when deploying resources","strongType":"location","displayName":"Allowed - locations"}}},"policyRule":{"if":{"not":{"field":"location","in":"[parameters(''allowedLocations'')]"}},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/azure-cli-test-policyrqpcbqjmp","type":"Microsoft.Authorization/policyDefinitions","name":"azure-cli-test-policyrqpcbqjmp"},{"properties":{"displayName":"test_policyctgpc3m7w","policyType":"Custom","description":"desc_for_test_policy_123","parameters":{"allowedLocations":{"type":"Array","metadata":{"description":"The + locations"}}},"policyRule":{"if":{"not":{"field":"location","in":"[parameters(''allowedLocations'')]"}},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/azure-cli-test-policyrqpcbqjmp","type":"Microsoft.Authorization/policyDefinitions","name":"azure-cli-test-policyrqpcbqjmp"},{"properties":{"displayName":"test_policyctgpc3m7w","policyType":"Custom","mode":"Indexed","description":"desc_for_test_policy_123","parameters":{"allowedLocations":{"type":"Array","metadata":{"description":"The list of locations that can be specified when deploying resources","strongType":"location","displayName":"Allowed - locations"}}},"policyRule":{"if":{"not":{"field":"location","in":"[parameters(''allowedLocations'')]"}},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/azure-cli-test-policyzw4hiatv2","type":"Microsoft.Authorization/policyDefinitions","name":"azure-cli-test-policyzw4hiatv2"},{"properties":{"policyType":"Custom","description":"Don''t - create a VM anywhere","policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"},{"properties":{"policyType":"Custom","policyRule":{"if":{"source":"action","equals":"Microsoft.Resources/Subscriptions/ResourceGroups/write"},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/some-unique-rg-name","type":"Microsoft.Authorization/policyDefinitions","name":"some-unique-rg-name"},{"properties":{"policyType":"Custom","policyRule":{"if":{"source":"action","equals":"blah"},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/test2","type":"Microsoft.Authorization/policyDefinitions","name":"test2"}]}'} + locations"}}},"policyRule":{"if":{"not":{"field":"location","in":"[parameters(''allowedLocations'')]"}},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/azure-cli-test-policyzw4hiatv2","type":"Microsoft.Authorization/policyDefinitions","name":"azure-cli-test-policyzw4hiatv2"},{"properties":{"policyType":"Custom","mode":"Indexed","description":"Don''t + create a VM anywhere","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:28:49.7957626Z","updatedBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","updatedOn":"2019-06-13T19:36:26.447317Z"},"policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"},{"properties":{"policyType":"Custom","mode":"Indexed","policyRule":{"if":{"source":"action","equals":"Microsoft.Resources/Subscriptions/ResourceGroups/write"},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/some-unique-rg-name","type":"Microsoft.Authorization/policyDefinitions","name":"some-unique-rg-name"},{"properties":{"policyType":"Custom","mode":"Indexed","policyRule":{"if":{"source":"action","equals":"blah"},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/test2","type":"Microsoft.Authorization/policyDefinitions","name":"test2"},{"properties":{"displayName":"nrms-hdinsight-require-subnet_1.0","policyType":"Custom","mode":"All","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:24:01.1484325Z","updatedBy":null,"updatedOn":null},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Deny","Disabled"],"defaultValue":"Audit"},"allowedLocations":{"type":"Array","metadata":{"displayName":"Allowed + locations","description":"The list of locations that can be specified when + deploying resources.","strongType":"location"}}},"policyRule":{"if":{"anyOf":[{"allOf":[{"field":"type","equals":"Microsoft.HDInsight/clusters"},{"field":"location","in":"[parameters(''allowedLocations'')]"},{"not":{"field":"Microsoft.HDInsight/clusters/computeProfile.roles[*].virtualNetworkProfile.subnet","notIn":["null",""]}}]},{"allOf":[{"field":"type","equals":"Microsoft.HDInsight/clusters"},{"field":"location","in":"[parameters(''allowedLocations'')]"},{"field":"Microsoft.HDInsight/clusters/computeProfile.roles[*].virtualNetworkProfile.subnet","exists":"false"}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/11094169db59074f","type":"Microsoft.Authorization/policyDefinitions","name":"11094169db59074f"},{"properties":{"displayName":"nrms-kubernet-require-azure-networkplugin_1.0","policyType":"Custom","mode":"All","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:57.6004986Z","updatedBy":null,"updatedOn":null},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Deny","Disabled"],"defaultValue":"Audit"},"allowedLocations":{"type":"Array","metadata":{"displayName":"Allowed + locations","description":"The list of locations that can be specified when + deploying resources.","strongType":"location"}}},"policyRule":{"if":{"anyOf":[{"allOf":[{"field":"type","equals":"Microsoft.ContainerService/managedClusters"},{"field":"location","in":"[parameters(''allowedLocations'')]"},{"not":{"field":"Microsoft.ContainerService/managedClusters/networkProfile.networkPlugin","notIn":["null",""]}}]},{"allOf":[{"field":"type","equals":"Microsoft.ContainerService/managedClusters"},{"field":"location","in":"[parameters(''allowedLocations'')]"},{"not":{"field":"Microsoft.ContainerService/managedClusters/networkProfile.networkPlugin","equals":"azure"}}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/26db8d27b6fa91aa","type":"Microsoft.Authorization/policyDefinitions","name":"26db8d27b6fa91aa"},{"properties":{"displayName":"nrms-batch-require-user-subscription-mode_1.0","policyType":"Custom","mode":"All","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:59.788546Z","updatedBy":null,"updatedOn":null},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Deny","Disabled"],"defaultValue":"Audit"},"allowedLocations":{"type":"Array","metadata":{"displayName":"Allowed + locations","description":"The list of locations that can be specified when + deploying resources.","strongType":"location"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Batch/batchAccounts"},{"field":"location","in":"[parameters(''allowedLocations'')]"},{"not":{"field":"Microsoft.Batch/batchAccounts/poolAllocationMode","notIn":["batchservice","null",""]}}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/74c98b59a6341488","type":"Microsoft.Authorization/policyDefinitions","name":"74c98b59a6341488"},{"properties":{"displayName":"nrms-subnet-require-nsg_1.0","policyType":"Custom","mode":"All","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:24:01.4784818Z","updatedBy":null,"updatedOn":null},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Deny","Disabled"],"defaultValue":"Audit"},"allowedLocations":{"type":"Array","metadata":{"displayName":"Allowed + locations","description":"The list of locations that can be specified when + deploying resources.","strongType":"location"}}},"policyRule":{"if":{"allOf":[{"field":"location","in":"[parameters(''allowedLocations'')]"},{"anyOf":[{"allOf":[{"field":"type","equals":"Microsoft.Network/virtualNetworks/subnets"},{"not":{"field":"Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id","notIn":["null",""]}}]},{"allOf":[{"field":"type","equals":"Microsoft.Network/virtualNetworks/subnets"},{"field":"Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id","exists":"false"}]}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/b8f1faa61cb41f92","type":"Microsoft.Authorization/policyDefinitions","name":"b8f1faa61cb41f92"},{"properties":{"displayName":"nrms-warning-non-c+ai-security-rules_1.0","policyType":"Custom","mode":"All","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:58.9310187Z","updatedBy":null,"updatedOn":null},"parameters":{"effect":{"type":"String","metadata":{"displayName":"Effect","description":"Enable + or disable the execution of the policy"},"allowedValues":["Audit","Deny","Disabled"],"defaultValue":"Audit"},"priorities":{"type":"Array","metadata":{"displayName":"Rule + Priority","description":"List of Rule Priority Numbers reserved for Security"}},"allowedLocations":{"type":"Array","metadata":{"displayName":"Allowed + locations","description":"The list of locations that can be specified when + deploying resources.","strongType":"location"}}},"policyRule":{"if":{"allOf":[{"field":"type","equals":"Microsoft.Network/networkSecurityGroups/securityRules"},{"field":"Microsoft.Network/networkSecurityGroups/securityRules/direction","equals":"Inbound"},{"field":"Microsoft.Network/networkSecurityGroups/securityRules/priority","In":"[parameters(''priorities'')]"},{"field":"location","In":"[parameters(''allowedLocations'')]"},{"allOf":[{"not":{"field":"name","contains":"Cleanuptool"}},{"not":{"field":"name","contains":"NRMS-Rule-"}}]}]},"then":{"effect":"[parameters(''effect'')]"}}},"id":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/e695de0794b757d","type":"Microsoft.Authorization/policyDefinitions","name":"e695de0794b757d"}]}'} headers: cache-control: [no-cache] - content-length: ['58361'] + content-length: ['433598'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:51 GMT'] + date: ['Thu, 13 Jun 2019 19:36:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -315,23 +1617,23 @@ interactions: Connection: [keep-alive] Content-Length: ['162'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-05-01 response: - body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} + body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:27.9426991Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['625'] + content-length: ['766'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:52 GMT'] + date: ['Thu, 13 Jun 2019 19:36:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: null @@ -339,19 +1641,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-05-01 response: - body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} + body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:27.9426991Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['625'] + content-length: ['766'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:52 GMT'] + date: ['Thu, 13 Jun 2019 19:36:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -365,19 +1666,71 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments?api-version=2018-05-01 response: - body: {string: '{"value":[{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}]}'} + body: {string: '{"value":[{"sku":{"name":"A1","tier":"Standard"},"properties":{"displayName":"ASC + Default (subscription: 00000000-0000-0000-0000-000000000000)","policyDefinitionId":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","parameters":{"diagnosticsLogsInServiceFabricMonitoringEffect":{"value":"AuditIfNotExists"},"systemUpdatesMonitoringEffect":{"value":"AuditIfNotExists"},"systemConfigurationsMonitoringEffect":{"value":"AuditIfNotExists"},"endpointProtectionMonitoringEffect":{"value":"AuditIfNotExists"},"diskEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"networkSecurityGroupsMonitoringEffect":{"value":"AuditIfNotExists"},"webApplicationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"sqlAuditingMonitoringEffect":{"value":"AuditIfNotExists"},"sqlEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"nextGenerationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"vulnerabilityAssesmentMonitoringEffect":{"value":"AuditIfNotExists"},"storageEncryptionMonitoringEffect":{"value":"Audit"},"jitNetworkAccessMonitoringEffect":{"value":"AuditIfNotExists"},"adaptiveApplicationControlsMonitoringEffect":{"value":"AuditIfNotExists"}},"description":"This + policy assignment was automatically created by Azure Security Center","metadata":{"assignedBy":"Security + Center"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments/SecurityCenterBuiltIn","type":"Microsoft.Authorization/policyAssignments","name":"SecurityCenterBuiltIn"},{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:27.9426991Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-batch-require-user-subscription-mode_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/74c98b59a6341488","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"Batch Accounts + must use a Pool Allocation Mode of User subscription on the Advanced tab to + configure a VNet in the subscriptiong. This enables the use of NSGs to secure + the network traffic for the Batch Account. See https://aka.ms/netiso/vnetinjection + for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:59.9760562Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:32:15.0025385Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/6bff79d27acb9c88","type":"Microsoft.Authorization/policyAssignments","name":"6bff79d27acb9c88"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-subnet-require-nsg_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/b8f1faa61cb41f92","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"All C+AI Subscriptions + must have a NSG on all VNets in the subscription. See https://aka.ms/netiso/nsgs + for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:24:01.682075Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:40:00.2019682Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/aca4d19ab4e30392","type":"Microsoft.Authorization/policyAssignments","name":"aca4d19ab4e30392"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-warning-non-c+ai-security-rules_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/e695de0794b757d","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"},"priorities":{"value":["100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119"]}},"description":"All + C+AI Subscriptions must have a NSG on all VNets in the subscription. See + https://aka.ms/netiso/nsgs for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:59.5549343Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:32:15.3618916Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/b65cf29bbd4b57d","type":"Microsoft.Authorization/policyAssignments","name":"b65cf29bbd4b57d"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-kubernet-require-azure-networkplugin_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/26db8d27b6fa91aa","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"Kubernets must + use the Advanced Networking option to configure the Kubernetes cluster to + use a Virtual Network that is on the subscription of the user. This enables + the use of NSGs to secure the network traffic for the Kubernetes container. See + https://aka.ms/netiso/vnetinjection for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:58.085345Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:32:55.6577715Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/bce5fcf8b40531aa","type":"Microsoft.Authorization/policyAssignments","name":"bce5fcf8b40531aa"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-hdinsight-require-subnet_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/11094169db59074f","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"HDInsight Clusters + must use the Custom configuration option to configure a VNet in the subscriptiong. This + enables the use of NSGs to secure the network traffic for the HDInsight cluster. See + https://aka.ms/netiso/vnetinjection for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:24:01.3537501Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:38:59.5098707Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/fcbba78ebf3e874f","type":"Microsoft.Authorization/policyAssignments","name":"fcbba78ebf3e874f"}]}'} headers: cache-control: [no-cache] - content-length: ['637'] + content-length: ['10720'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:53 GMT'] + date: ['Thu, 13 Jun 2019 19:36:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -391,19 +1744,71 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments?api-version=2018-05-01 response: - body: {string: '{"value":[{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}]}'} + body: {string: '{"value":[{"sku":{"name":"A1","tier":"Standard"},"properties":{"displayName":"ASC + Default (subscription: 00000000-0000-0000-0000-000000000000)","policyDefinitionId":"/providers/Microsoft.Authorization/policySetDefinitions/1f3afdf9-d0c9-4c3d-847f-89da613e70a8","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","parameters":{"diagnosticsLogsInServiceFabricMonitoringEffect":{"value":"AuditIfNotExists"},"systemUpdatesMonitoringEffect":{"value":"AuditIfNotExists"},"systemConfigurationsMonitoringEffect":{"value":"AuditIfNotExists"},"endpointProtectionMonitoringEffect":{"value":"AuditIfNotExists"},"diskEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"networkSecurityGroupsMonitoringEffect":{"value":"AuditIfNotExists"},"webApplicationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"sqlAuditingMonitoringEffect":{"value":"AuditIfNotExists"},"sqlEncryptionMonitoringEffect":{"value":"AuditIfNotExists"},"nextGenerationFirewallMonitoringEffect":{"value":"AuditIfNotExists"},"vulnerabilityAssesmentMonitoringEffect":{"value":"AuditIfNotExists"},"storageEncryptionMonitoringEffect":{"value":"Audit"},"jitNetworkAccessMonitoringEffect":{"value":"AuditIfNotExists"},"adaptiveApplicationControlsMonitoringEffect":{"value":"AuditIfNotExists"}},"description":"This + policy assignment was automatically created by Azure Security Center","metadata":{"assignedBy":"Security + Center"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyAssignments/SecurityCenterBuiltIn","type":"Microsoft.Authorization/policyAssignments","name":"SecurityCenterBuiltIn"},{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:27.9426991Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-batch-require-user-subscription-mode_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/74c98b59a6341488","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"Batch Accounts + must use a Pool Allocation Mode of User subscription on the Advanced tab to + configure a VNet in the subscriptiong. This enables the use of NSGs to secure + the network traffic for the Batch Account. See https://aka.ms/netiso/vnetinjection + for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:59.9760562Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:32:15.0025385Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/6bff79d27acb9c88","type":"Microsoft.Authorization/policyAssignments","name":"6bff79d27acb9c88"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-subnet-require-nsg_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/b8f1faa61cb41f92","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"All C+AI Subscriptions + must have a NSG on all VNets in the subscription. See https://aka.ms/netiso/nsgs + for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:24:01.682075Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:40:00.2019682Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/aca4d19ab4e30392","type":"Microsoft.Authorization/policyAssignments","name":"aca4d19ab4e30392"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-warning-non-c+ai-security-rules_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/e695de0794b757d","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"},"priorities":{"value":["100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119"]}},"description":"All + C+AI Subscriptions must have a NSG on all VNets in the subscription. See + https://aka.ms/netiso/nsgs for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:59.5549343Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:32:15.3618916Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/b65cf29bbd4b57d","type":"Microsoft.Authorization/policyAssignments","name":"b65cf29bbd4b57d"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-kubernet-require-azure-networkplugin_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/26db8d27b6fa91aa","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"Kubernets must + use the Advanced Networking option to configure the Kubernetes cluster to + use a Virtual Network that is on the subscription of the user. This enables + the use of NSGs to secure the network traffic for the Kubernetes container. See + https://aka.ms/netiso/vnetinjection for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:23:58.085345Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:32:55.6577715Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/bce5fcf8b40531aa","type":"Microsoft.Authorization/policyAssignments","name":"bce5fcf8b40531aa"},{"sku":{"name":"A0","tier":"Free"},"properties":{"displayName":"nrms-hdinsight-require-subnet_1.0","policyDefinitionId":"/providers/Microsoft.Management/managementgroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyDefinitions/11094169db59074f","scope":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792","parameters":{"allowedLocations":{"value":["Central + US EUAP","East US 2 EUAP","West Central US","North Central US","West US","East + Asia","Australia Central","Australia East","Canada Central","North Europe","Central + India","Japan East","Korea Central","UK South","UK South 2","Central US","East + US","West US 2","France Central","Southeast Asia","Australia Central 2","Australia + Southeast","Canada East","West Europe","South India","Japan West","Korea South","UK + West","UK North","East US 2","South Central US","Brazil South","West India","France + South","Global"]},"effect":{"value":"Audit"}},"description":"HDInsight Clusters + must use the Custom configuration option to configure a VNet in the subscriptiong. This + enables the use of NSGs to secure the network traffic for the HDInsight cluster. See + https://aka.ms/netiso/vnetinjection for more details","metadata":{"createdBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","createdOn":"2019-04-01T22:24:01.3537501Z","updatedBy":"1f75b9dd-4f1d-4e80-9521-321a8b1f5764","updatedOn":"2019-04-02T04:38:59.5098707Z"}},"id":"/providers/Microsoft.Management/managementGroups/48fed3a1-0814-4847-88ce-b766155f2792/providers/Microsoft.Authorization/policyAssignments/fcbba78ebf3e874f","type":"Microsoft.Authorization/policyAssignments","name":"fcbba78ebf3e874f"}]}'} headers: cache-control: [no-cache] - content-length: ['637'] + content-length: ['10720'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:53 GMT'] + date: ['Thu, 13 Jun 2019 19:36:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -418,19 +1823,18 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-05-01 response: - body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} + body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:27.9426991Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['625'] + content-length: ['766'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:55 GMT'] + date: ['Thu, 13 Jun 2019 19:36:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -447,23 +1851,23 @@ interactions: Connection: [keep-alive] Content-Length: ['162'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-05-01 response: - body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} + body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:29.3240348Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['625'] + content-length: ['766'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:56 GMT'] + date: ['Thu, 13 Jun 2019 19:36:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: null @@ -471,19 +1875,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-05-01 response: - body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} + body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:29.3240348Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['625'] + content-length: ['766'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:56 GMT'] + date: ['Thu, 13 Jun 2019 19:36:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -498,26 +1901,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0?api-version=2018-05-01 response: - body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} + body: {string: '{"sku":{"name":"A0","tier":"Free"},"properties":{"policyDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:36:29.3240348Z","updatedBy":null,"updatedOn":null}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_resource_policy_test_policy_definitionea4a13f0/providers/Microsoft.Authorization/policyAssignments/pypolicyassignmentea4a13f0","type":"Microsoft.Authorization/policyAssignments","name":"pypolicyassignmentea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['625'] + content-length: ['766'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:57 GMT'] + date: ['Thu, 13 Jun 2019 19:36:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: ['Accept-Encoding,Accept-Encoding'] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] status: {code: 200, message: OK} - request: body: null @@ -526,26 +1928,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.18.4 msrest/0.5.0 - msrest_azure/0.4.31 policyclient/2.0.0rc2 Azure-SDK-For-Python] + User-Agent: [python/3.7.0 (Windows-10-10.0.18362-SP0) msrest/0.6.4 msrest_azure/0.4.34 + azure-mgmt-resource/2.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0?api-version=2018-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0?api-version=2018-05-01 response: - body: {string: '{"properties":{"policyType":"Custom","description":"Don''t create - a VM anywhere","policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"}'} + body: {string: '{"properties":{"policyType":"Custom","mode":"Indexed","description":"Don''t + create a VM anywhere","metadata":{"createdBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","createdOn":"2019-06-13T19:28:49.7957626Z","updatedBy":"e33fbfd4-bc19-47c6-be55-5f5a7f950b7a","updatedOn":"2019-06-13T19:36:26.447317Z"},"policyRule":{"if":{"allOf":[{"source":"action","equals":"Microsoft.Compute/virtualMachines/write"},{"field":"location","in":["eastus","eastus2","centralus"]}]},"then":{"effect":"deny"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/pypolicyea4a13f0","type":"Microsoft.Authorization/policyDefinitions","name":"pypolicyea4a13f0"}'} headers: cache-control: [no-cache] - content-length: ['473'] + content-length: ['690'] content-type: [application/json; charset=utf-8] - date: ['Wed, 13 Jun 2018 16:35:58 GMT'] + date: ['Thu, 13 Jun 2019 19:36:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: ['Accept-Encoding,Accept-Encoding'] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-ms-ratelimit-remaining-subscription-deletes: ['14997'] status: {code: 200, message: OK} version: 1 diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py index 774537bb26a9..5e91215dd0e8 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py @@ -384,13 +384,14 @@ def test_provider_locations(self): if resource.resource_type == 'sites': self.assertIn('West US', resource.locations) - def test_providers(self): + def test_provider_registration(self): self.resource_client.providers.unregister('Microsoft.Search') self.resource_client.providers.get('Microsoft.Search') + self.resource_client.providers.register('Microsoft.Search') + def test_providers(self): result_list = self.resource_client.providers.list() for provider in result_list: - self.resource_client.providers.register(provider.namespace) break diff --git a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py index 31359879ec9e..02a51a68ffd0 100644 --- a/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py +++ b/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource_policy.py @@ -28,16 +28,16 @@ def test_policy_definition(self, resource_group, location): { 'policy_type':'Custom', 'description':'Don\'t create a VM anywhere', - 'policy_rule':{ - 'if':{ - 'allOf':[ - { + 'policy_rule':{ + 'if':{ + 'allOf':[ + { 'source':'action', 'equals':'Microsoft.Compute/virtualMachines/write' }, - { + { 'field':'location', - 'in':[ + 'in':[ 'eastus', 'eastus2', 'centralus' @@ -45,7 +45,7 @@ def test_policy_definition(self, resource_group, location): } ] }, - 'then':{ + 'then':{ 'effect':'deny' } } @@ -57,7 +57,7 @@ def test_policy_definition(self, resource_group, location): ) policies = list(self.policy_client.policy_definitions.list()) - self.assertGreater(len(policies), 0) + assert len(policies) > 0 # Policy Assignement - By Name scope = '/subscriptions/{}/resourceGroups/{}'.format( @@ -78,12 +78,12 @@ def test_policy_definition(self, resource_group, location): ) assignments = list(self.policy_client.policy_assignments.list()) - self.assertGreater(len(assignments), 0) + assert len(assignments) > 0 assignments = list(self.policy_client.policy_assignments.list_for_resource_group( resource_group.name )) - self.assertEqual(len(assignments), 1) + assert len(assignments) >= 1 # At least mine, could be more self.policy_client.policy_assignments.delete( scope, @@ -104,7 +104,7 @@ def test_policy_definition(self, resource_group, location): { 'policy_definition_id': definition.id, } - ) + ) assignment = self.policy_client.policy_assignments.get_by_id( assignment.id,