From 50a3b5f4d31467606ae2cd2b1e1d0af89c7ce80c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 22 Oct 2021 07:09:00 +0000 Subject: [PATCH] CodeGen from PR 16459 in Azure/azure-rest-api-specs Merge 172b25a238d3b91663ae44c97f3060ed67a5907a into 8179a9e74c7f7efb73dc76c8f3d3812abba45567 --- .../azure-mgmt-datalake-analytics/MANIFEST.in | 1 + .../azure-mgmt-datalake-analytics/_meta.json | 8 + .../datalake/analytics/account/__init__.py | 7 +- .../analytics/account/_configuration.py | 50 + ...ke_analytics_account_management_client.py} | 54 +- .../analytics/account/models/__init__.py | 240 +- ...lytics_account_management_client_enums.py} | 21 + .../analytics/account/models/_models.py | 1968 +++++++++++++++++ .../analytics/account/models/_models_py3.py | 1968 +++++++++++++++++ .../analytics/account/models/_paged_models.py | 105 + .../models/add_data_lake_store_parameters.py | 28 - .../add_data_lake_store_parameters_py3.py | 28 - ...data_lake_store_with_account_parameters.py | 40 - ..._lake_store_with_account_parameters_py3.py | 40 - .../models/add_storage_account_parameters.py | 39 - .../add_storage_account_parameters_py3.py | 39 - ...storage_account_with_account_parameters.py | 46 - ...age_account_with_account_parameters_py3.py | 46 - .../account/models/capability_information.py | 61 - .../models/capability_information_py3.py | 61 - .../check_name_availability_parameters.py | 46 - .../check_name_availability_parameters_py3.py | 46 - .../account/models/compute_policy.py | 67 - .../account/models/compute_policy_paged.py | 27 - .../account/models/compute_policy_py3.py | 67 - ..._compute_policy_with_account_parameters.py | 62 - ...pute_policy_with_account_parameters_py3.py | 62 - ..._data_lake_analytics_account_parameters.py | 122 - ...a_lake_analytics_account_parameters_py3.py | 122 - ...e_firewall_rule_with_account_parameters.py | 49 - ...rewall_rule_with_account_parameters_py3.py | 49 - ...ate_or_update_compute_policy_parameters.py | 56 - ...or_update_compute_policy_parameters_py3.py | 56 - ...eate_or_update_firewall_rule_parameters.py | 43 - ..._or_update_firewall_rule_parameters_py3.py | 43 - .../models/data_lake_analytics_account.py | 203 -- .../data_lake_analytics_account_basic.py | 88 - ...data_lake_analytics_account_basic_paged.py | 27 - .../data_lake_analytics_account_basic_py3.py | 88 - .../models/data_lake_analytics_account_py3.py | 203 -- .../data_lake_store_account_information.py | 47 - ...ta_lake_store_account_information_paged.py | 27 - ...data_lake_store_account_information_py3.py | 47 - .../analytics/account/models/firewall_rule.py | 54 - .../account/models/firewall_rule_paged.py | 27 - .../account/models/firewall_rule_py3.py | 54 - .../models/name_availability_information.py | 48 - .../name_availability_information_py3.py | 48 - .../analytics/account/models/operation.py | 48 - .../account/models/operation_display.py | 50 - .../account/models/operation_display_py3.py | 50 - .../account/models/operation_list_result.py | 41 - .../models/operation_list_result_py3.py | 41 - .../analytics/account/models/operation_py3.py | 48 - .../analytics/account/models/resource.py | 55 - .../analytics/account/models/resource_py3.py | 55 - .../account/models/sas_token_information.py | 36 - .../models/sas_token_information_paged.py | 27 - .../models/sas_token_information_py3.py | 36 - .../models/storage_account_information.py | 47 - .../storage_account_information_paged.py | 27 - .../models/storage_account_information_py3.py | 47 - .../account/models/storage_container.py | 47 - .../account/models/storage_container_paged.py | 27 - .../account/models/storage_container_py3.py | 47 - .../analytics/account/models/sub_resource.py | 45 - .../account/models/sub_resource_py3.py | 45 - .../update_compute_policy_parameters.py | 52 - .../update_compute_policy_parameters_py3.py | 52 - ..._compute_policy_with_account_parameters.py | 60 - ...pute_policy_with_account_parameters_py3.py | 60 - ..._data_lake_analytics_account_parameters.py | 112 - ...a_lake_analytics_account_parameters_py3.py | 112 - ...data_lake_store_with_account_parameters.py | 40 - ..._lake_store_with_account_parameters_py3.py | 40 - .../models/update_firewall_rule_parameters.py | 34 - .../update_firewall_rule_parameters_py3.py | 34 - ...e_firewall_rule_with_account_parameters.py | 45 - ...rewall_rule_with_account_parameters_py3.py | 45 - .../update_storage_account_parameters.py | 33 - .../update_storage_account_parameters_py3.py | 33 - ...storage_account_with_account_parameters.py | 45 - ...age_account_with_account_parameters_py3.py | 45 - .../analytics/account/operations/__init__.py | 14 +- ..._operations.py => _accounts_operations.py} | 129 +- ...ons.py => _compute_policies_operations.py} | 89 +- ...> _data_lake_store_accounts_operations.py} | 75 +- ...tions.py => _firewall_rules_operations.py} | 89 +- ...operations.py => _locations_operations.py} | 21 +- .../{operations.py => _operations.py} | 21 +- ...ons.py => _storage_accounts_operations.py} | 157 +- 91 files changed, 4555 insertions(+), 4429 deletions(-) create mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/_meta.json create mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/_configuration.py rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/{data_lake_analytics_account_management_client.py => _data_lake_analytics_account_management_client.py} (65%) rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/{data_lake_analytics_account_management_client_enums.py => _data_lake_analytics_account_management_client_enums.py} (84%) create mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models.py create mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models_py3.py create mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_paged_models.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_result.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_result_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_paged.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters_py3.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters.py delete mode 100644 sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters_py3.py rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/{accounts_operations.py => _accounts_operations.py} (88%) rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/{compute_policies_operations.py => _compute_policies_operations.py} (86%) rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/{data_lake_store_accounts_operations.py => _data_lake_store_accounts_operations.py} (86%) rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/{firewall_rules_operations.py => _firewall_rules_operations.py} (86%) rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/{locations_operations.py => _locations_operations.py} (83%) rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/{operations.py => _operations.py} (80%) rename sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/{storage_accounts_operations.py => _storage_accounts_operations.py} (85%) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/MANIFEST.in b/sdk/datalake/azure-mgmt-datalake-analytics/MANIFEST.in index 1b624c3f5aff..7ef3b1302c99 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/MANIFEST.in +++ b/sdk/datalake/azure-mgmt-datalake-analytics/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/_meta.json b/sdk/datalake/azure-mgmt-datalake-analytics/_meta.json new file mode 100644 index 000000000000..e65c924f4ca0 --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-analytics/_meta.json @@ -0,0 +1,8 @@ +{ + "autorest": "V2", + "use": "@microsoft.azure/autorest.python@~4.0.71", + "commit": "0ddf6fc099050a723dfaad8de1ca8a8b1184d707", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/datalake-analytics/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2", + "readme": "specification/datalake-analytics/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/__init__.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/__init__.py index cf9b64c20005..6d1896a997ca 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/__init__.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .data_lake_analytics_account_management_client import DataLakeAnalyticsAccountManagementClient -from .version import VERSION +from ._configuration import DataLakeAnalyticsAccountManagementClientConfiguration +from ._data_lake_analytics_account_management_client import DataLakeAnalyticsAccountManagementClient +__all__ = ['DataLakeAnalyticsAccountManagementClient', 'DataLakeAnalyticsAccountManagementClientConfiguration'] -__all__ = ['DataLakeAnalyticsAccountManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/_configuration.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/_configuration.py new file mode 100644 index 000000000000..77888b40a3b4 --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/_configuration.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 msrestazure import AzureConfiguration + +from .version import VERSION + + +class DataLakeAnalyticsAccountManagementClientConfiguration(AzureConfiguration): + """Configuration for DataLakeAnalyticsAccountManagementClient + 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: Get 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 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(DataLakeAnalyticsAccountManagementClientConfiguration, 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-datalake-analytics/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/data_lake_analytics_account_management_client.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/_data_lake_analytics_account_management_client.py similarity index 65% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/data_lake_analytics_account_management_client.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/_data_lake_analytics_account_management_client.py index 150aa8a9a928..f79f8eb0fa4a 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/data_lake_analytics_account_management_client.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/_data_lake_analytics_account_management_client.py @@ -11,50 +11,16 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.accounts_operations import AccountsOperations -from .operations.data_lake_store_accounts_operations import DataLakeStoreAccountsOperations -from .operations.storage_accounts_operations import StorageAccountsOperations -from .operations.compute_policies_operations import ComputePoliciesOperations -from .operations.firewall_rules_operations import FirewallRulesOperations -from .operations.operations import Operations -from .operations.locations_operations import LocationsOperations -from . import models - - -class DataLakeAnalyticsAccountManagementClientConfiguration(AzureConfiguration): - """Configuration for DataLakeAnalyticsAccountManagementClient - 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: Get 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 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(DataLakeAnalyticsAccountManagementClientConfiguration, self).__init__(base_url) - self.add_user_agent('azure-mgmt-datalake-analytics/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import DataLakeAnalyticsAccountManagementClientConfiguration +from .operations import AccountsOperations +from .operations import DataLakeStoreAccountsOperations +from .operations import StorageAccountsOperations +from .operations import ComputePoliciesOperations +from .operations import FirewallRulesOperations +from .operations import Operations +from .operations import LocationsOperations +from . import models class DataLakeAnalyticsAccountManagementClient(SDKClient): @@ -95,7 +61,7 @@ def __init__( super(DataLakeAnalyticsAccountManagementClient, 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 = '2016-11-01' + self.api_version = '2019-11-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/__init__.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/__init__.py index 3725ed5f39e1..651342c7dc94 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/__init__.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/__init__.py @@ -10,85 +10,112 @@ # -------------------------------------------------------------------------- try: - from .resource_py3 import Resource - from .sub_resource_py3 import SubResource - from .data_lake_store_account_information_py3 import DataLakeStoreAccountInformation - from .storage_account_information_py3 import StorageAccountInformation - from .compute_policy_py3 import ComputePolicy - from .firewall_rule_py3 import FirewallRule - from .data_lake_analytics_account_py3 import DataLakeAnalyticsAccount - from .data_lake_analytics_account_basic_py3 import DataLakeAnalyticsAccountBasic - from .storage_container_py3 import StorageContainer - from .sas_token_information_py3 import SasTokenInformation - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation - from .operation_list_result_py3 import OperationListResult - from .capability_information_py3 import CapabilityInformation - from .name_availability_information_py3 import NameAvailabilityInformation - from .add_data_lake_store_with_account_parameters_py3 import AddDataLakeStoreWithAccountParameters - from .add_storage_account_with_account_parameters_py3 import AddStorageAccountWithAccountParameters - from .create_compute_policy_with_account_parameters_py3 import CreateComputePolicyWithAccountParameters - from .create_firewall_rule_with_account_parameters_py3 import CreateFirewallRuleWithAccountParameters - from .create_data_lake_analytics_account_parameters_py3 import CreateDataLakeAnalyticsAccountParameters - from .update_data_lake_store_with_account_parameters_py3 import UpdateDataLakeStoreWithAccountParameters - from .update_storage_account_with_account_parameters_py3 import UpdateStorageAccountWithAccountParameters - from .update_compute_policy_with_account_parameters_py3 import UpdateComputePolicyWithAccountParameters - from .update_firewall_rule_with_account_parameters_py3 import UpdateFirewallRuleWithAccountParameters - from .update_data_lake_analytics_account_parameters_py3 import UpdateDataLakeAnalyticsAccountParameters - from .add_data_lake_store_parameters_py3 import AddDataLakeStoreParameters - from .add_storage_account_parameters_py3 import AddStorageAccountParameters - from .update_storage_account_parameters_py3 import UpdateStorageAccountParameters - from .create_or_update_compute_policy_parameters_py3 import CreateOrUpdateComputePolicyParameters - from .update_compute_policy_parameters_py3 import UpdateComputePolicyParameters - from .create_or_update_firewall_rule_parameters_py3 import CreateOrUpdateFirewallRuleParameters - from .update_firewall_rule_parameters_py3 import UpdateFirewallRuleParameters - from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters + from ._models_py3 import AddDataLakeStoreParameters + from ._models_py3 import AddDataLakeStoreWithAccountParameters + from ._models_py3 import AddStorageAccountParameters + from ._models_py3 import AddStorageAccountWithAccountParameters + from ._models_py3 import CapabilityInformation + from ._models_py3 import CheckNameAvailabilityParameters + from ._models_py3 import ComputePolicy + from ._models_py3 import CreateComputePolicyWithAccountParameters + from ._models_py3 import CreateDataLakeAnalyticsAccountParameters + from ._models_py3 import CreateFirewallRuleWithAccountParameters + from ._models_py3 import CreateOrUpdateComputePolicyParameters + from ._models_py3 import CreateOrUpdateFirewallRuleParameters + from ._models_py3 import DataLakeAnalyticsAccount + from ._models_py3 import DataLakeAnalyticsAccountBasic + from ._models_py3 import DataLakeStoreAccountInformation + from ._models_py3 import ErrorAdditionalInfo + from ._models_py3 import ErrorDetail + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import FirewallRule + from ._models_py3 import HiveMetastore + from ._models_py3 import HiveMetastoreListResult + from ._models_py3 import NameAvailabilityInformation + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OperationListResult + from ._models_py3 import OperationMetaLogSpecification + from ._models_py3 import OperationMetaMetricAvailabilitiesSpecification + from ._models_py3 import OperationMetaMetricSpecification + from ._models_py3 import OperationMetaPropertyInfo + from ._models_py3 import OperationMetaServiceSpecification + from ._models_py3 import Resource + from ._models_py3 import SasTokenInformation + from ._models_py3 import StorageAccountInformation + from ._models_py3 import StorageContainer + from ._models_py3 import SubResource + from ._models_py3 import UpdateComputePolicyParameters + from ._models_py3 import UpdateComputePolicyWithAccountParameters + from ._models_py3 import UpdateDataLakeAnalyticsAccountParameters + from ._models_py3 import UpdateDataLakeStoreWithAccountParameters + from ._models_py3 import UpdateFirewallRuleParameters + from ._models_py3 import UpdateFirewallRuleWithAccountParameters + from ._models_py3 import UpdateStorageAccountParameters + from ._models_py3 import UpdateStorageAccountWithAccountParameters + from ._models_py3 import VirtualNetworkRule + from ._models_py3 import VirtualNetworkRuleListResult except (SyntaxError, ImportError): - from .resource import Resource - from .sub_resource import SubResource - from .data_lake_store_account_information import DataLakeStoreAccountInformation - from .storage_account_information import StorageAccountInformation - from .compute_policy import ComputePolicy - from .firewall_rule import FirewallRule - from .data_lake_analytics_account import DataLakeAnalyticsAccount - from .data_lake_analytics_account_basic import DataLakeAnalyticsAccountBasic - from .storage_container import StorageContainer - from .sas_token_information import SasTokenInformation - from .operation_display import OperationDisplay - from .operation import Operation - from .operation_list_result import OperationListResult - from .capability_information import CapabilityInformation - from .name_availability_information import NameAvailabilityInformation - from .add_data_lake_store_with_account_parameters import AddDataLakeStoreWithAccountParameters - from .add_storage_account_with_account_parameters import AddStorageAccountWithAccountParameters - from .create_compute_policy_with_account_parameters import CreateComputePolicyWithAccountParameters - from .create_firewall_rule_with_account_parameters import CreateFirewallRuleWithAccountParameters - from .create_data_lake_analytics_account_parameters import CreateDataLakeAnalyticsAccountParameters - from .update_data_lake_store_with_account_parameters import UpdateDataLakeStoreWithAccountParameters - from .update_storage_account_with_account_parameters import UpdateStorageAccountWithAccountParameters - from .update_compute_policy_with_account_parameters import UpdateComputePolicyWithAccountParameters - from .update_firewall_rule_with_account_parameters import UpdateFirewallRuleWithAccountParameters - from .update_data_lake_analytics_account_parameters import UpdateDataLakeAnalyticsAccountParameters - from .add_data_lake_store_parameters import AddDataLakeStoreParameters - from .add_storage_account_parameters import AddStorageAccountParameters - from .update_storage_account_parameters import UpdateStorageAccountParameters - from .create_or_update_compute_policy_parameters import CreateOrUpdateComputePolicyParameters - from .update_compute_policy_parameters import UpdateComputePolicyParameters - from .create_or_update_firewall_rule_parameters import CreateOrUpdateFirewallRuleParameters - from .update_firewall_rule_parameters import UpdateFirewallRuleParameters - from .check_name_availability_parameters import CheckNameAvailabilityParameters -from .data_lake_analytics_account_basic_paged import DataLakeAnalyticsAccountBasicPaged -from .data_lake_store_account_information_paged import DataLakeStoreAccountInformationPaged -from .storage_account_information_paged import StorageAccountInformationPaged -from .storage_container_paged import StorageContainerPaged -from .sas_token_information_paged import SasTokenInformationPaged -from .compute_policy_paged import ComputePolicyPaged -from .firewall_rule_paged import FirewallRulePaged -from .data_lake_analytics_account_management_client_enums import ( + from ._models import AddDataLakeStoreParameters + from ._models import AddDataLakeStoreWithAccountParameters + from ._models import AddStorageAccountParameters + from ._models import AddStorageAccountWithAccountParameters + from ._models import CapabilityInformation + from ._models import CheckNameAvailabilityParameters + from ._models import ComputePolicy + from ._models import CreateComputePolicyWithAccountParameters + from ._models import CreateDataLakeAnalyticsAccountParameters + from ._models import CreateFirewallRuleWithAccountParameters + from ._models import CreateOrUpdateComputePolicyParameters + from ._models import CreateOrUpdateFirewallRuleParameters + from ._models import DataLakeAnalyticsAccount + from ._models import DataLakeAnalyticsAccountBasic + from ._models import DataLakeStoreAccountInformation + from ._models import ErrorAdditionalInfo + from ._models import ErrorDetail + from ._models import ErrorResponse, ErrorResponseException + from ._models import FirewallRule + from ._models import HiveMetastore + from ._models import HiveMetastoreListResult + from ._models import NameAvailabilityInformation + from ._models import Operation + from ._models import OperationDisplay + from ._models import OperationListResult + from ._models import OperationMetaLogSpecification + from ._models import OperationMetaMetricAvailabilitiesSpecification + from ._models import OperationMetaMetricSpecification + from ._models import OperationMetaPropertyInfo + from ._models import OperationMetaServiceSpecification + from ._models import Resource + from ._models import SasTokenInformation + from ._models import StorageAccountInformation + from ._models import StorageContainer + from ._models import SubResource + from ._models import UpdateComputePolicyParameters + from ._models import UpdateComputePolicyWithAccountParameters + from ._models import UpdateDataLakeAnalyticsAccountParameters + from ._models import UpdateDataLakeStoreWithAccountParameters + from ._models import UpdateFirewallRuleParameters + from ._models import UpdateFirewallRuleWithAccountParameters + from ._models import UpdateStorageAccountParameters + from ._models import UpdateStorageAccountWithAccountParameters + from ._models import VirtualNetworkRule + from ._models import VirtualNetworkRuleListResult +from ._paged_models import ComputePolicyPaged +from ._paged_models import DataLakeAnalyticsAccountBasicPaged +from ._paged_models import DataLakeStoreAccountInformationPaged +from ._paged_models import FirewallRulePaged +from ._paged_models import SasTokenInformationPaged +from ._paged_models import StorageAccountInformationPaged +from ._paged_models import StorageContainerPaged +from ._data_lake_analytics_account_management_client_enums import ( AADObjectType, + NestedResourceProvisioningState, + VirtualNetworkRuleState, FirewallState, FirewallAllowAzureIpsState, TierType, + DebugDataAccessLevel, DataLakeAnalyticsAccountStatus, DataLakeAnalyticsAccountState, OperationOrigin, @@ -96,39 +123,51 @@ ) __all__ = [ - 'Resource', - 'SubResource', - 'DataLakeStoreAccountInformation', - 'StorageAccountInformation', + 'AddDataLakeStoreParameters', + 'AddDataLakeStoreWithAccountParameters', + 'AddStorageAccountParameters', + 'AddStorageAccountWithAccountParameters', + 'CapabilityInformation', + 'CheckNameAvailabilityParameters', 'ComputePolicy', - 'FirewallRule', + 'CreateComputePolicyWithAccountParameters', + 'CreateDataLakeAnalyticsAccountParameters', + 'CreateFirewallRuleWithAccountParameters', + 'CreateOrUpdateComputePolicyParameters', + 'CreateOrUpdateFirewallRuleParameters', 'DataLakeAnalyticsAccount', 'DataLakeAnalyticsAccountBasic', - 'StorageContainer', - 'SasTokenInformation', - 'OperationDisplay', + 'DataLakeStoreAccountInformation', + 'ErrorAdditionalInfo', + 'ErrorDetail', + 'ErrorResponse', 'ErrorResponseException', + 'FirewallRule', + 'HiveMetastore', + 'HiveMetastoreListResult', + 'NameAvailabilityInformation', 'Operation', + 'OperationDisplay', 'OperationListResult', - 'CapabilityInformation', - 'NameAvailabilityInformation', - 'AddDataLakeStoreWithAccountParameters', - 'AddStorageAccountWithAccountParameters', - 'CreateComputePolicyWithAccountParameters', - 'CreateFirewallRuleWithAccountParameters', - 'CreateDataLakeAnalyticsAccountParameters', - 'UpdateDataLakeStoreWithAccountParameters', - 'UpdateStorageAccountWithAccountParameters', + 'OperationMetaLogSpecification', + 'OperationMetaMetricAvailabilitiesSpecification', + 'OperationMetaMetricSpecification', + 'OperationMetaPropertyInfo', + 'OperationMetaServiceSpecification', + 'Resource', + 'SasTokenInformation', + 'StorageAccountInformation', + 'StorageContainer', + 'SubResource', + 'UpdateComputePolicyParameters', 'UpdateComputePolicyWithAccountParameters', - 'UpdateFirewallRuleWithAccountParameters', 'UpdateDataLakeAnalyticsAccountParameters', - 'AddDataLakeStoreParameters', - 'AddStorageAccountParameters', - 'UpdateStorageAccountParameters', - 'CreateOrUpdateComputePolicyParameters', - 'UpdateComputePolicyParameters', - 'CreateOrUpdateFirewallRuleParameters', + 'UpdateDataLakeStoreWithAccountParameters', 'UpdateFirewallRuleParameters', - 'CheckNameAvailabilityParameters', + 'UpdateFirewallRuleWithAccountParameters', + 'UpdateStorageAccountParameters', + 'UpdateStorageAccountWithAccountParameters', + 'VirtualNetworkRule', + 'VirtualNetworkRuleListResult', 'DataLakeAnalyticsAccountBasicPaged', 'DataLakeStoreAccountInformationPaged', 'StorageAccountInformationPaged', @@ -137,9 +176,12 @@ 'ComputePolicyPaged', 'FirewallRulePaged', 'AADObjectType', + 'NestedResourceProvisioningState', + 'VirtualNetworkRuleState', 'FirewallState', 'FirewallAllowAzureIpsState', 'TierType', + 'DebugDataAccessLevel', 'DataLakeAnalyticsAccountStatus', 'DataLakeAnalyticsAccountState', 'OperationOrigin', diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_management_client_enums.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_data_lake_analytics_account_management_client_enums.py similarity index 84% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_management_client_enums.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_data_lake_analytics_account_management_client_enums.py index 357aa7387efb..391f2d6128ee 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_management_client_enums.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_data_lake_analytics_account_management_client_enums.py @@ -19,6 +19,20 @@ class AADObjectType(str, Enum): service_principal = "ServicePrincipal" +class NestedResourceProvisioningState(str, Enum): + + succeeded = "Succeeded" + canceled = "Canceled" + failed = "Failed" + + +class VirtualNetworkRuleState(str, Enum): + + active = "Active" + network_source_deleted = "NetworkSourceDeleted" + failed = "Failed" + + class FirewallState(str, Enum): enabled = "Enabled" @@ -44,6 +58,13 @@ class TierType(str, Enum): commitment_500000_au_hours = "Commitment_500000AUHours" +class DebugDataAccessLevel(str, Enum): + + all = "All" + customer = "Customer" + none = "None" + + class DataLakeAnalyticsAccountStatus(str, Enum): failed = "Failed" diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models.py new file mode 100644 index 000000000000..df5af2c8ef75 --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models.py @@ -0,0 +1,1968 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by 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 AddDataLakeStoreParameters(Model): + """The parameters used to add a new Data Lake Store account. + + :param suffix: The optional suffix for the Data Lake Store account. + :type suffix: str + """ + + _attribute_map = { + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AddDataLakeStoreParameters, self).__init__(**kwargs) + self.suffix = kwargs.get('suffix', None) + + +class AddDataLakeStoreWithAccountParameters(Model): + """The parameters used to add a new Data Lake Store account while creating a + new Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Data Lake Store account to + add. + :type name: str + :param suffix: The optional suffix for the Data Lake Store account. + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AddDataLakeStoreWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.suffix = kwargs.get('suffix', None) + + +class AddStorageAccountParameters(Model): + """The parameters used to add a new Azure Storage account. + + All required parameters must be populated in order to send to Azure. + + :param access_key: Required. The access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. Default value: + "azuredatalakestore.net" . + :type suffix: str + """ + + _validation = { + 'access_key': {'required': True}, + } + + _attribute_map = { + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AddStorageAccountParameters, self).__init__(**kwargs) + self.access_key = kwargs.get('access_key', None) + self.suffix = kwargs.get('suffix', "azuredatalakestore.net") + + +class AddStorageAccountWithAccountParameters(Model): + """The parameters used to add a new Azure Storage account while creating a new + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Azure Storage account to + add. + :type name: str + :param access_key: Required. The access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. Default value: + "azuredatalakestore.net" . + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + 'access_key': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AddStorageAccountWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.access_key = kwargs.get('access_key', None) + self.suffix = kwargs.get('suffix', "azuredatalakestore.net") + + +class CapabilityInformation(Model): + """Subscription-level properties and limits for Data Lake Analytics. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar subscription_id: The subscription credentials that uniquely + identifies the subscription. + :vartype subscription_id: str + :ivar state: The subscription state. Possible values include: + 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' + :vartype state: str or + ~azure.mgmt.datalake.analytics.account.models.SubscriptionState + :ivar max_account_count: The maximum supported number of accounts under + this subscription. + :vartype max_account_count: int + :ivar account_count: The current number of accounts under this + subscription. + :vartype account_count: int + :ivar migration_state: The Boolean value of true or false to indicate the + maintenance state. + :vartype migration_state: bool + """ + + _validation = { + 'subscription_id': {'readonly': True}, + 'state': {'readonly': True}, + 'max_account_count': {'readonly': True}, + 'account_count': {'readonly': True}, + 'migration_state': {'readonly': True}, + } + + _attribute_map = { + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, + 'account_count': {'key': 'accountCount', 'type': 'int'}, + 'migration_state': {'key': 'migrationState', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(CapabilityInformation, self).__init__(**kwargs) + self.subscription_id = None + self.state = None + self.max_account_count = None + self.account_count = None + self.migration_state = None + + +class CheckNameAvailabilityParameters(Model): + """Data Lake Analytics account name availability check parameters. + + 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 name: Required. The Data Lake Analytics name to check availability + for. + :type name: str + :ivar type: Required. The resource type. Note: This should not be set by + the user, as the constant value is Microsoft.DataLakeAnalytics/accounts. + Default value: "Microsoft.DataLakeAnalytics/accounts" . + :vartype type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "Microsoft.DataLakeAnalytics/accounts" + + def __init__(self, **kwargs): + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class SubResource(Model): + """The resource model definition for a nested resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: 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'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ComputePolicy(SubResource): + """Data Lake Analytics compute policy information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar object_id: The AAD object identifier for the entity to create a + policy for. + :vartype object_id: str + :ivar object_type: The type of AAD object the object identifier refers to. + Possible values include: 'User', 'Group', 'ServicePrincipal' + :vartype object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :ivar max_degree_of_parallelism_per_job: The maximum degree of parallelism + per job this user can use to submit jobs. + :vartype max_degree_of_parallelism_per_job: int + :ivar min_priority_per_job: The minimum priority per job this user can use + to submit jobs. + :vartype min_priority_per_job: int + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'object_id': {'readonly': True}, + 'object_type': {'readonly': True}, + 'max_degree_of_parallelism_per_job': {'readonly': True, 'minimum': 1}, + 'min_priority_per_job': {'readonly': True, 'minimum': 1}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ComputePolicy, self).__init__(**kwargs) + self.object_id = None + self.object_type = None + self.max_degree_of_parallelism_per_job = None + self.min_priority_per_job = None + + +class CreateComputePolicyWithAccountParameters(Model): + """The parameters used to create a new compute policy while creating a new + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the compute policy to create. + :type name: str + :param object_id: Required. The AAD object identifier for the entity to + create a policy for. + :type object_id: str + :param object_type: Required. The type of AAD object the object identifier + refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'name': {'required': True}, + 'object_id': {'required': True}, + 'object_type': {'required': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(CreateComputePolicyWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.object_id = kwargs.get('object_id', None) + self.object_type = kwargs.get('object_type', None) + self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) + self.min_priority_per_job = kwargs.get('min_priority_per_job', None) + + +class CreateDataLakeAnalyticsAccountParameters(Model): + """The parameters to use for creating a Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param default_data_lake_store_account: Required. The default Data Lake + Store account associated with this account. + :type default_data_lake_store_account: str + :param data_lake_store_accounts: Required. The list of Data Lake Store + accounts associated with this account. + :type data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.AddDataLakeStoreWithAccountParameters] + :param storage_accounts: The list of Azure Blob Storage accounts + associated with this account. + :type storage_accounts: + list[~azure.mgmt.datalake.analytics.account.models.AddStorageAccountWithAccountParameters] + :param compute_policies: The list of compute policies associated with this + account. + :type compute_policies: + list[~azure.mgmt.datalake.analytics.account.models.CreateComputePolicyWithAccountParameters] + :param firewall_rules: The list of firewall rules associated with this + account. + :type firewall_rules: + list[~azure.mgmt.datalake.analytics.account.models.CreateFirewallRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this account. Possible values include: 'Enabled', 'Disabled'. Default + value: "Disabled" . + :type firewall_state: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled'. Default value: "Disabled" . + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState + :param new_tier: The commitment tier for the next month. Possible values + include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', + 'Commitment_1000AUHours', 'Commitment_5000AUHours', + 'Commitment_10000AUHours', 'Commitment_50000AUHours', + 'Commitment_100000AUHours', 'Commitment_500000AUHours'. Default value: + "Consumption" . + :type new_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :param max_job_count: The maximum supported jobs running under the account + at the same time. Default value: 3 . + :type max_job_count: int + :param max_degree_of_parallelism: The maximum supported degree of + parallelism for this account. Default value: 30 . + :type max_degree_of_parallelism: int + :param max_degree_of_parallelism_per_job: The maximum supported degree of + parallelism per job for this account. Default value: 32 . + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum supported priority per job for + this account. + :type min_priority_per_job: int + :param query_store_retention: The number of days that job metadata is + retained. Default value: 30 . + :type query_store_retention: int + """ + + _validation = { + 'location': {'required': True}, + 'default_data_lake_store_account': {'required': True}, + 'data_lake_store_accounts': {'required': True}, + 'max_job_count': {'minimum': 1}, + 'max_degree_of_parallelism': {'minimum': 1}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + 'query_store_retention': {'maximum': 180, 'minimum': 1}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, + 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[AddDataLakeStoreWithAccountParameters]'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[AddStorageAccountWithAccountParameters]'}, + 'compute_policies': {'key': 'properties.computePolicies', 'type': '[CreateComputePolicyWithAccountParameters]'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, + 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(CreateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.default_data_lake_store_account = kwargs.get('default_data_lake_store_account', None) + self.data_lake_store_accounts = kwargs.get('data_lake_store_accounts', None) + self.storage_accounts = kwargs.get('storage_accounts', None) + self.compute_policies = kwargs.get('compute_policies', None) + self.firewall_rules = kwargs.get('firewall_rules', None) + self.firewall_state = kwargs.get('firewall_state', "Disabled") + self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', "Disabled") + self.new_tier = kwargs.get('new_tier', "Consumption") + self.max_job_count = kwargs.get('max_job_count', 3) + self.max_degree_of_parallelism = kwargs.get('max_degree_of_parallelism', 30) + self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', 32) + self.min_priority_per_job = kwargs.get('min_priority_per_job', None) + self.query_store_retention = kwargs.get('query_store_retention', 30) + + +class CreateFirewallRuleWithAccountParameters(Model): + """The parameters used to create a new firewall rule while creating a new Data + Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to create. + :type name: str + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class CreateOrUpdateComputePolicyParameters(Model): + """The parameters used to create a new compute policy. + + All required parameters must be populated in order to send to Azure. + + :param object_id: Required. The AAD object identifier for the entity to + create a policy for. + :type object_id: str + :param object_type: Required. The type of AAD object the object identifier + refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'object_id': {'required': True}, + 'object_type': {'required': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(CreateOrUpdateComputePolicyParameters, self).__init__(**kwargs) + self.object_id = kwargs.get('object_id', None) + self.object_type = kwargs.get('object_type', None) + self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) + self.min_priority_per_job = kwargs.get('min_priority_per_job', None) + + +class CreateOrUpdateFirewallRuleParameters(Model): + """The parameters used to create a new firewall rule. + + All required parameters must be populated in order to send to Azure. + + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class Resource(Model): + """The resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'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 = None + self.tags = None + + +class DataLakeAnalyticsAccount(Resource): + """A Data Lake Analytics account object, containing all information associated + with the named Data Lake Analytics account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar account_id: The unique identifier associated with this Data Lake + Analytics account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake + Analytics account. Possible values include: 'Failed', 'Creating', + 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + 'Deleted', 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus + :ivar state: The state of the Data Lake Analytics account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + :ivar default_data_lake_store_account_type: The type of the default Data + Lake Store account associated with this account. + :vartype default_data_lake_store_account_type: str + :ivar default_data_lake_store_account: The default Data Lake Store account + associated with this account. + :vartype default_data_lake_store_account: str + :ivar data_lake_store_accounts: The list of Data Lake Store accounts + associated with this account. + :vartype data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation] + :param public_data_lake_store_accounts: The list of Data Lake Store + accounts associated with this account. + :type public_data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation] + :ivar storage_accounts: The list of Azure Blob Storage accounts associated + with this account. + :vartype storage_accounts: + list[~azure.mgmt.datalake.analytics.account.models.StorageAccountInformation] + :ivar compute_policies: The list of compute policies associated with this + account. + :vartype compute_policies: + list[~azure.mgmt.datalake.analytics.account.models.ComputePolicy] + :ivar hive_metastores: The list of hiveMetastores associated with this + account. + :vartype hive_metastores: + list[~azure.mgmt.datalake.analytics.account.models.HiveMetastore] + :ivar virtual_network_rules: The list of virtualNetwork rules associated + with this account. + :vartype virtual_network_rules: + list[~azure.mgmt.datalake.analytics.account.models.VirtualNetworkRule] + :ivar firewall_rules: The list of firewall rules associated with this + account. + :vartype firewall_rules: + list[~azure.mgmt.datalake.analytics.account.models.FirewallRule] + :param firewall_state: The current state of the IP address firewall for + this account. Possible values include: 'Enabled', 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState + :param new_tier: The commitment tier for the next month. Possible values + include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', + 'Commitment_1000AUHours', 'Commitment_5000AUHours', + 'Commitment_10000AUHours', 'Commitment_50000AUHours', + 'Commitment_100000AUHours', 'Commitment_500000AUHours' + :type new_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :ivar current_tier: The commitment tier in use for the current month. + Possible values include: 'Consumption', 'Commitment_100AUHours', + 'Commitment_500AUHours', 'Commitment_1000AUHours', + 'Commitment_5000AUHours', 'Commitment_10000AUHours', + 'Commitment_50000AUHours', 'Commitment_100000AUHours', + 'Commitment_500000AUHours' + :vartype current_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :param max_job_count: The maximum supported jobs running under the account + at the same time. Default value: 3 . + :type max_job_count: int + :ivar max_active_job_count_per_user: The maximum supported active jobs + under the account at the same time. + :vartype max_active_job_count_per_user: int + :ivar max_queued_job_count_per_user: The maximum supported jobs queued + under the account at the same time. + :vartype max_queued_job_count_per_user: int + :ivar max_job_running_time_in_min: The maximum supported active jobs under + the account at the same time. + :vartype max_job_running_time_in_min: int + :ivar system_max_job_count: The system defined maximum supported jobs + running under the account at the same time, which restricts the maximum + number of running jobs the user can set for the account. + :vartype system_max_job_count: int + :param max_degree_of_parallelism: The maximum supported degree of + parallelism for this account. Default value: 30 . + :type max_degree_of_parallelism: int + :ivar system_max_degree_of_parallelism: The system defined maximum + supported degree of parallelism for this account, which restricts the + maximum value of parallelism the user can set for the account. + :vartype system_max_degree_of_parallelism: int + :param max_degree_of_parallelism_per_job: The maximum supported degree of + parallelism per job for this account. + :type max_degree_of_parallelism_per_job: int + :ivar min_priority_per_job: The minimum supported priority per job for + this account. + :vartype min_priority_per_job: int + :param query_store_retention: The number of days that job metadata is + retained. Default value: 30 . + :type query_store_retention: int + :ivar debug_data_access_level: The current state of the + DebugDataAccessLevel for this account. Possible values include: 'All', + 'Customer', 'None' + :vartype debug_data_access_level: str or + ~azure.mgmt.datalake.analytics.account.models.DebugDataAccessLevel + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'readonly': True}, + 'default_data_lake_store_account_type': {'readonly': True}, + 'default_data_lake_store_account': {'readonly': True}, + 'data_lake_store_accounts': {'readonly': True}, + 'storage_accounts': {'readonly': True}, + 'compute_policies': {'readonly': True}, + 'hive_metastores': {'readonly': True}, + 'virtual_network_rules': {'readonly': True}, + 'firewall_rules': {'readonly': True}, + 'current_tier': {'readonly': True}, + 'max_job_count': {'minimum': 1}, + 'max_active_job_count_per_user': {'readonly': True}, + 'max_queued_job_count_per_user': {'readonly': True}, + 'max_job_running_time_in_min': {'readonly': True}, + 'system_max_job_count': {'readonly': True}, + 'max_degree_of_parallelism': {'minimum': 1}, + 'system_max_degree_of_parallelism': {'readonly': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'readonly': True, 'minimum': 1}, + 'query_store_retention': {'maximum': 180, 'minimum': 1}, + 'debug_data_access_level': {'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}'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'default_data_lake_store_account_type': {'key': 'properties.defaultDataLakeStoreAccountType', 'type': 'str'}, + 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, + 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[DataLakeStoreAccountInformation]'}, + 'public_data_lake_store_accounts': {'key': 'properties.publicDataLakeStoreAccounts', 'type': '[DataLakeStoreAccountInformation]'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccountInformation]'}, + 'compute_policies': {'key': 'properties.computePolicies', 'type': '[ComputePolicy]'}, + 'hive_metastores': {'key': 'properties.hiveMetastores', 'type': '[HiveMetastore]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, + 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, + 'max_active_job_count_per_user': {'key': 'properties.maxActiveJobCountPerUser', 'type': 'int'}, + 'max_queued_job_count_per_user': {'key': 'properties.maxQueuedJobCountPerUser', 'type': 'int'}, + 'max_job_running_time_in_min': {'key': 'properties.maxJobRunningTimeInMin', 'type': 'int'}, + 'system_max_job_count': {'key': 'properties.systemMaxJobCount', 'type': 'int'}, + 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, + 'system_max_degree_of_parallelism': {'key': 'properties.systemMaxDegreeOfParallelism', 'type': 'int'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, + 'debug_data_access_level': {'key': 'properties.debugDataAccessLevel', 'type': 'DebugDataAccessLevel'}, + } + + def __init__(self, **kwargs): + super(DataLakeAnalyticsAccount, self).__init__(**kwargs) + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + self.default_data_lake_store_account_type = None + self.default_data_lake_store_account = None + self.data_lake_store_accounts = None + self.public_data_lake_store_accounts = kwargs.get('public_data_lake_store_accounts', None) + self.storage_accounts = None + self.compute_policies = None + self.hive_metastores = None + self.virtual_network_rules = None + self.firewall_rules = None + self.firewall_state = kwargs.get('firewall_state', None) + self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) + self.new_tier = kwargs.get('new_tier', None) + self.current_tier = None + self.max_job_count = kwargs.get('max_job_count', 3) + self.max_active_job_count_per_user = None + self.max_queued_job_count_per_user = None + self.max_job_running_time_in_min = None + self.system_max_job_count = None + self.max_degree_of_parallelism = kwargs.get('max_degree_of_parallelism', 30) + self.system_max_degree_of_parallelism = None + self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) + self.min_priority_per_job = None + self.query_store_retention = kwargs.get('query_store_retention', 30) + self.debug_data_access_level = None + + +class DataLakeAnalyticsAccountBasic(Resource): + """A Data Lake Analytics account object, containing all information associated + with the named Data Lake Analytics account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar account_id: The unique identifier associated with this Data Lake + Analytics account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake + Analytics account. Possible values include: 'Failed', 'Creating', + 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + 'Deleted', 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus + :ivar state: The state of the Data Lake Analytics account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'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}'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataLakeAnalyticsAccountBasic, self).__init__(**kwargs) + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + + +class DataLakeStoreAccountInformation(SubResource): + """Data Lake Store account information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar suffix: The optional suffix for the Data Lake Store account. + :vartype suffix: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'suffix': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DataLakeStoreAccountInformation, self).__init__(**kwargs) + self.suffix = None + + +class ErrorAdditionalInfo(Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: object + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetail(Model): + """The error detail. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: + list[~azure.mgmt.datalake.analytics.account.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: + list[~azure.mgmt.datalake.analytics.account.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__(self, **kwargs): + super(ErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + self.additional_info = None + + +class ErrorResponse(Model): + """Error response. + + Common error response for all Azure Resource Manager APIs to return error + details for failed operations. (This also follows the OData error response + format.). + + :param error: The error object. + :type error: ~azure.mgmt.datalake.analytics.account.models.ErrorDetail + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetail'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs.get('error', 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 FirewallRule(SubResource): + """Data Lake Analytics firewall rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype start_ip_address: str + :ivar end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype end_ip_address: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_ip_address': {'readonly': True}, + 'end_ip_address': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FirewallRule, self).__init__(**kwargs) + self.start_ip_address = None + self.end_ip_address = None + + +class HiveMetastore(SubResource): + """HiveMetastore. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar server_uri: The serverUri for the Hive MetaStore + :vartype server_uri: str + :ivar database_name: The databaseName for the Hive MetaStore + :vartype database_name: str + :ivar runtime_version: The runtimeVersion for the Hive MetaStore + :vartype runtime_version: str + :ivar user_name: The userName for the Hive MetaStore + :vartype user_name: str + :ivar password: The password for the Hive MetaStore + :vartype password: str + :ivar nested_resource_provisioning_state: The current state of the + NestedResource. Possible values include: 'Succeeded', 'Canceled', 'Failed' + :vartype nested_resource_provisioning_state: str or + ~azure.mgmt.datalake.analytics.account.models.NestedResourceProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'server_uri': {'readonly': True}, + 'database_name': {'readonly': True}, + 'runtime_version': {'readonly': True}, + 'user_name': {'readonly': True}, + 'password': {'readonly': True}, + 'nested_resource_provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_uri': {'key': 'properties.serverUri', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'runtime_version': {'key': 'properties.runtimeVersion', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + 'password': {'key': 'properties.password', 'type': 'str'}, + 'nested_resource_provisioning_state': {'key': 'properties.nestedResourceProvisioningState', 'type': 'NestedResourceProvisioningState'}, + } + + def __init__(self, **kwargs): + super(HiveMetastore, self).__init__(**kwargs) + self.server_uri = None + self.database_name = None + self.runtime_version = None + self.user_name = None + self.password = None + self.nested_resource_provisioning_state = None + + +class HiveMetastoreListResult(Model): + """Data Lake Analytics HiveMetastore list information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: + list[~azure.mgmt.datalake.analytics.account.models.HiveMetastore] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[HiveMetastore]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HiveMetastoreListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class NameAvailabilityInformation(Model): + """Data Lake Analytics account name availability result information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_available: The Boolean value of true or false to indicate + whether the Data Lake Analytics account name is available or not. + :vartype name_available: bool + :ivar reason: The reason why the Data Lake Analytics account name is not + available, if nameAvailable is false. + :vartype reason: str + :ivar message: The message describing why the Data Lake Analytics account + name is not available, if nameAvailable is false. + :vartype message: str + """ + + _validation = { + 'name_available': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NameAvailabilityInformation, self).__init__(**kwargs) + self.name_available = None + self.reason = None + self.message = None + + +class Operation(Model): + """An available operation for Data Lake Analytics. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the operation. + :vartype name: str + :ivar display: The display information for the operation. + :vartype display: + ~azure.mgmt.datalake.analytics.account.models.OperationDisplay + :ivar properties: The OperationMetaPropertyInfo for the operation. + :vartype properties: + ~azure.mgmt.datalake.analytics.account.models.OperationMetaPropertyInfo + :ivar origin: The intended executor of the operation. Possible values + include: 'user', 'system', 'user,system' + :vartype origin: str or + ~azure.mgmt.datalake.analytics.account.models.OperationOrigin + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + 'properties': {'readonly': True}, + 'origin': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'properties': {'key': 'properties', 'type': 'OperationMetaPropertyInfo'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + self.properties = None + self.origin = None + + +class OperationDisplay(Model): + """The display information for a particular operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: The resource provider of the operation. + :vartype provider: str + :ivar resource: The resource type of the operation. + :vartype resource: str + :ivar operation: A friendly name of the operation. + :vartype operation: str + :ivar description: A friendly description of the operation. + :vartype description: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + + _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 = None + self.resource = None + self.operation = None + self.description = None + + +class OperationListResult(Model): + """The list of available operations for Data Lake Analytics. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: + list[~azure.mgmt.datalake.analytics.account.models.Operation] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class OperationMetaLogSpecification(Model): + """OperationMetaLogSpecification. + + :param name: The name for OperationMetaLogSpecification. + :type name: str + :param display_name: The displayName for OperationMetaLogSpecification. + :type display_name: str + :param blob_duration: The blobDuration for OperationMetaLogSpecification. + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationMetaLogSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.blob_duration = kwargs.get('blob_duration', None) + + +class OperationMetaMetricAvailabilitiesSpecification(Model): + """OperationMetaMetricAvailabilitiesSpecification. + + :param time_grain: The timegrain for + OperationMetaMetricAvailabilitiesSpecification. + :type time_grain: str + :param blob_duration: The blobDuration for + OperationMetaMetricAvailabilitiesSpecification. + :type blob_duration: str + """ + + _attribute_map = { + 'time_grain': {'key': 'timeGrain', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationMetaMetricAvailabilitiesSpecification, self).__init__(**kwargs) + self.time_grain = kwargs.get('time_grain', None) + self.blob_duration = kwargs.get('blob_duration', None) + + +class OperationMetaMetricSpecification(Model): + """OperationMetaMetricSpecification. + + :param name: The name for OperationMetaMetricSpecification. + :type name: str + :param display_description: The displayName for + OperationMetaMetricSpecification. + :type display_description: str + :param display_name: The displayName for OperationMetaMetricSpecification. + :type display_name: str + :param unit: The unit for OperationMetaMetricSpecification. + :type unit: str + :param aggregation_type: The aggregationType for + OperationMetaMetricSpecification. + :type aggregation_type: str + :param availabilities: The availabilities for + OperationMetaMetricSpecification. + :type availabilities: + list[~azure.mgmt.datalake.analytics.account.models.OperationMetaMetricAvailabilitiesSpecification] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'availabilities': {'key': 'availabilities', 'type': '[OperationMetaMetricAvailabilitiesSpecification]'}, + } + + def __init__(self, **kwargs): + super(OperationMetaMetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_description = kwargs.get('display_description', None) + self.display_name = kwargs.get('display_name', None) + self.unit = kwargs.get('unit', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.availabilities = kwargs.get('availabilities', None) + + +class OperationMetaPropertyInfo(Model): + """OperationMetaPropertyInfo. + + :param service_specification: The operations + OperationMetaServiceSpecification. + :type service_specification: + ~azure.mgmt.datalake.analytics.account.models.OperationMetaServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, + } + + def __init__(self, **kwargs): + super(OperationMetaPropertyInfo, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) + + +class OperationMetaServiceSpecification(Model): + """OperationMetaServiceSpecification. + + :param metric_specifications: The metricSpecifications for + OperationMetaServiceSpecification. + :type metric_specifications: + list[~azure.mgmt.datalake.analytics.account.models.OperationMetaMetricSpecification] + :param log_specifications: The logSpecifications for + OperationMetaServiceSpecification. + :type log_specifications: + list[~azure.mgmt.datalake.analytics.account.models.OperationMetaLogSpecification] + """ + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[OperationMetaMetricSpecification]'}, + 'log_specifications': {'key': 'logSpecifications', 'type': '[OperationMetaLogSpecification]'}, + } + + def __init__(self, **kwargs): + super(OperationMetaServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = kwargs.get('metric_specifications', None) + self.log_specifications = kwargs.get('log_specifications', None) + + +class SasTokenInformation(Model): + """SAS token information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar access_token: The access token for the associated Azure Storage + Container. + :vartype access_token: str + """ + + _validation = { + 'access_token': {'readonly': True}, + } + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SasTokenInformation, self).__init__(**kwargs) + self.access_token = None + + +class StorageAccountInformation(SubResource): + """Azure Storage account information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar suffix: The optional suffix for the storage account. + :vartype suffix: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'suffix': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(StorageAccountInformation, self).__init__(**kwargs) + self.suffix = None + + +class StorageContainer(SubResource): + """Azure Storage blob container information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar last_modified_time: The last modified time of the blob container. + :vartype last_modified_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(StorageContainer, self).__init__(**kwargs) + self.last_modified_time = None + + +class UpdateComputePolicyParameters(Model): + """The parameters used to update a compute policy. + + :param object_id: The AAD object identifier for the entity to create a + policy for. + :type object_id: str + :param object_type: The type of AAD object the object identifier refers + to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(UpdateComputePolicyParameters, self).__init__(**kwargs) + self.object_id = kwargs.get('object_id', None) + self.object_type = kwargs.get('object_type', None) + self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) + self.min_priority_per_job = kwargs.get('min_priority_per_job', None) + + +class UpdateComputePolicyWithAccountParameters(Model): + """The parameters used to update a compute policy while updating a Data Lake + Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the compute policy to update. + :type name: str + :param object_id: The AAD object identifier for the entity to create a + policy for. + :type object_id: str + :param object_type: The type of AAD object the object identifier refers + to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'name': {'required': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(UpdateComputePolicyWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.object_id = kwargs.get('object_id', None) + self.object_type = kwargs.get('object_type', None) + self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) + self.min_priority_per_job = kwargs.get('min_priority_per_job', None) + + +class UpdateDataLakeAnalyticsAccountParameters(Model): + """The parameters that can be used to update an existing Data Lake Analytics + account. + + :param tags: The resource tags. + :type tags: dict[str, str] + :param data_lake_store_accounts: The list of Data Lake Store accounts + associated with this account. + :type data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.UpdateDataLakeStoreWithAccountParameters] + :param storage_accounts: The list of Azure Blob storage accounts + associated with this account. + :type storage_accounts: + list[~azure.mgmt.datalake.analytics.account.models.UpdateStorageAccountWithAccountParameters] + :param compute_policies: The list of compute policies associated with this + account. + :type compute_policies: + list[~azure.mgmt.datalake.analytics.account.models.UpdateComputePolicyWithAccountParameters] + :param firewall_rules: The list of firewall rules associated with this + account. + :type firewall_rules: + list[~azure.mgmt.datalake.analytics.account.models.UpdateFirewallRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this account. Disabling the firewall does not remove existing rules, they + will just be ignored until the firewall is re-enabled. Possible values + include: 'Enabled', 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState + :param new_tier: The commitment tier to use for next month. Possible + values include: 'Consumption', 'Commitment_100AUHours', + 'Commitment_500AUHours', 'Commitment_1000AUHours', + 'Commitment_5000AUHours', 'Commitment_10000AUHours', + 'Commitment_50000AUHours', 'Commitment_100000AUHours', + 'Commitment_500000AUHours' + :type new_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :param max_job_count: The maximum supported jobs running under the account + at the same time. + :type max_job_count: int + :param max_degree_of_parallelism: The maximum supported degree of + parallelism for this account. + :type max_degree_of_parallelism: int + :param max_degree_of_parallelism_per_job: The maximum supported degree of + parallelism per job for this account. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum supported priority per job for + this account. + :type min_priority_per_job: int + :param query_store_retention: The number of days that job metadata is + retained. + :type query_store_retention: int + """ + + _validation = { + 'max_job_count': {'minimum': 1}, + 'max_degree_of_parallelism': {'minimum': 1}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + 'query_store_retention': {'maximum': 180, 'minimum': 1}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[UpdateDataLakeStoreWithAccountParameters]'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[UpdateStorageAccountWithAccountParameters]'}, + 'compute_policies': {'key': 'properties.computePolicies', 'type': '[UpdateComputePolicyWithAccountParameters]'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, + 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(UpdateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.data_lake_store_accounts = kwargs.get('data_lake_store_accounts', None) + self.storage_accounts = kwargs.get('storage_accounts', None) + self.compute_policies = kwargs.get('compute_policies', None) + self.firewall_rules = kwargs.get('firewall_rules', None) + self.firewall_state = kwargs.get('firewall_state', None) + self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) + self.new_tier = kwargs.get('new_tier', None) + self.max_job_count = kwargs.get('max_job_count', None) + self.max_degree_of_parallelism = kwargs.get('max_degree_of_parallelism', None) + self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) + self.min_priority_per_job = kwargs.get('min_priority_per_job', None) + self.query_store_retention = kwargs.get('query_store_retention', None) + + +class UpdateDataLakeStoreWithAccountParameters(Model): + """The parameters used to update a Data Lake Store account while updating a + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Data Lake Store account to + update. + :type name: str + :param suffix: The optional suffix for the Data Lake Store account. + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateDataLakeStoreWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.suffix = kwargs.get('suffix', None) + + +class UpdateFirewallRuleParameters(Model): + """The parameters used to update a firewall rule. + + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class UpdateFirewallRuleWithAccountParameters(Model): + """The parameters used to update a firewall rule while updating a Data Lake + Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to update. + :type name: str + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.start_ip_address = kwargs.get('start_ip_address', None) + self.end_ip_address = kwargs.get('end_ip_address', None) + + +class UpdateStorageAccountParameters(Model): + """The parameters used to update an Azure Storage account. + + :param access_key: The updated access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. + :type suffix: str + """ + + _attribute_map = { + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateStorageAccountParameters, self).__init__(**kwargs) + self.access_key = kwargs.get('access_key', None) + self.suffix = kwargs.get('suffix', None) + + +class UpdateStorageAccountWithAccountParameters(Model): + """The parameters used to update an Azure Storage account while updating a + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Azure Storage account to + update. + :type name: str + :param access_key: The updated access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateStorageAccountWithAccountParameters, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.access_key = kwargs.get('access_key', None) + self.suffix = kwargs.get('suffix', None) + + +class VirtualNetworkRule(SubResource): + """Data Lake Analytics VirtualNetwork Rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar subnet_id: The resource identifier for the subnet + :vartype subnet_id: str + :ivar virtual_network_rule_state: The current state of the VirtualNetwork + Rule. Possible values include: 'Active', 'NetworkSourceDeleted', 'Failed' + :vartype virtual_network_rule_state: str or + ~azure.mgmt.datalake.analytics.account.models.VirtualNetworkRuleState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnet_id': {'readonly': True}, + 'virtual_network_rule_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + 'virtual_network_rule_state': {'key': 'properties.virtualNetworkRuleState', 'type': 'VirtualNetworkRuleState'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkRule, self).__init__(**kwargs) + self.subnet_id = None + self.virtual_network_rule_state = None + + +class VirtualNetworkRuleListResult(Model): + """Data Lake Analytics VirtualNetwork rule list information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: + list[~azure.mgmt.datalake.analytics.account.models.VirtualNetworkRule] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualNetworkRule]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkRuleListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models_py3.py new file mode 100644 index 000000000000..96b993cd60ed --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_models_py3.py @@ -0,0 +1,1968 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by 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 AddDataLakeStoreParameters(Model): + """The parameters used to add a new Data Lake Store account. + + :param suffix: The optional suffix for the Data Lake Store account. + :type suffix: str + """ + + _attribute_map = { + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, *, suffix: str=None, **kwargs) -> None: + super(AddDataLakeStoreParameters, self).__init__(**kwargs) + self.suffix = suffix + + +class AddDataLakeStoreWithAccountParameters(Model): + """The parameters used to add a new Data Lake Store account while creating a + new Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Data Lake Store account to + add. + :type name: str + :param suffix: The optional suffix for the Data Lake Store account. + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, *, name: str, suffix: str=None, **kwargs) -> None: + super(AddDataLakeStoreWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.suffix = suffix + + +class AddStorageAccountParameters(Model): + """The parameters used to add a new Azure Storage account. + + All required parameters must be populated in order to send to Azure. + + :param access_key: Required. The access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. Default value: + "azuredatalakestore.net" . + :type suffix: str + """ + + _validation = { + 'access_key': {'required': True}, + } + + _attribute_map = { + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, *, access_key: str, suffix: str="azuredatalakestore.net", **kwargs) -> None: + super(AddStorageAccountParameters, self).__init__(**kwargs) + self.access_key = access_key + self.suffix = suffix + + +class AddStorageAccountWithAccountParameters(Model): + """The parameters used to add a new Azure Storage account while creating a new + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Azure Storage account to + add. + :type name: str + :param access_key: Required. The access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. Default value: + "azuredatalakestore.net" . + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + 'access_key': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, *, name: str, access_key: str, suffix: str="azuredatalakestore.net", **kwargs) -> None: + super(AddStorageAccountWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.access_key = access_key + self.suffix = suffix + + +class CapabilityInformation(Model): + """Subscription-level properties and limits for Data Lake Analytics. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar subscription_id: The subscription credentials that uniquely + identifies the subscription. + :vartype subscription_id: str + :ivar state: The subscription state. Possible values include: + 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' + :vartype state: str or + ~azure.mgmt.datalake.analytics.account.models.SubscriptionState + :ivar max_account_count: The maximum supported number of accounts under + this subscription. + :vartype max_account_count: int + :ivar account_count: The current number of accounts under this + subscription. + :vartype account_count: int + :ivar migration_state: The Boolean value of true or false to indicate the + maintenance state. + :vartype migration_state: bool + """ + + _validation = { + 'subscription_id': {'readonly': True}, + 'state': {'readonly': True}, + 'max_account_count': {'readonly': True}, + 'account_count': {'readonly': True}, + 'migration_state': {'readonly': True}, + } + + _attribute_map = { + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, + 'account_count': {'key': 'accountCount', 'type': 'int'}, + 'migration_state': {'key': 'migrationState', 'type': 'bool'}, + } + + def __init__(self, **kwargs) -> None: + super(CapabilityInformation, self).__init__(**kwargs) + self.subscription_id = None + self.state = None + self.max_account_count = None + self.account_count = None + self.migration_state = None + + +class CheckNameAvailabilityParameters(Model): + """Data Lake Analytics account name availability check parameters. + + 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 name: Required. The Data Lake Analytics name to check availability + for. + :type name: str + :ivar type: Required. The resource type. Note: This should not be set by + the user, as the constant value is Microsoft.DataLakeAnalytics/accounts. + Default value: "Microsoft.DataLakeAnalytics/accounts" . + :vartype type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "Microsoft.DataLakeAnalytics/accounts" + + def __init__(self, *, name: str, **kwargs) -> None: + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = name + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class SubResource(Model): + """The resource model definition for a nested resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: 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'}, + } + + def __init__(self, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ComputePolicy(SubResource): + """Data Lake Analytics compute policy information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar object_id: The AAD object identifier for the entity to create a + policy for. + :vartype object_id: str + :ivar object_type: The type of AAD object the object identifier refers to. + Possible values include: 'User', 'Group', 'ServicePrincipal' + :vartype object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :ivar max_degree_of_parallelism_per_job: The maximum degree of parallelism + per job this user can use to submit jobs. + :vartype max_degree_of_parallelism_per_job: int + :ivar min_priority_per_job: The minimum priority per job this user can use + to submit jobs. + :vartype min_priority_per_job: int + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'object_id': {'readonly': True}, + 'object_type': {'readonly': True}, + 'max_degree_of_parallelism_per_job': {'readonly': True, 'minimum': 1}, + 'min_priority_per_job': {'readonly': True, 'minimum': 1}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(ComputePolicy, self).__init__(**kwargs) + self.object_id = None + self.object_type = None + self.max_degree_of_parallelism_per_job = None + self.min_priority_per_job = None + + +class CreateComputePolicyWithAccountParameters(Model): + """The parameters used to create a new compute policy while creating a new + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the compute policy to create. + :type name: str + :param object_id: Required. The AAD object identifier for the entity to + create a policy for. + :type object_id: str + :param object_type: Required. The type of AAD object the object identifier + refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'name': {'required': True}, + 'object_id': {'required': True}, + 'object_type': {'required': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, *, name: str, object_id: str, object_type, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: + super(CreateComputePolicyWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.object_id = object_id + self.object_type = object_type + self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job + self.min_priority_per_job = min_priority_per_job + + +class CreateDataLakeAnalyticsAccountParameters(Model): + """The parameters to use for creating a Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param default_data_lake_store_account: Required. The default Data Lake + Store account associated with this account. + :type default_data_lake_store_account: str + :param data_lake_store_accounts: Required. The list of Data Lake Store + accounts associated with this account. + :type data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.AddDataLakeStoreWithAccountParameters] + :param storage_accounts: The list of Azure Blob Storage accounts + associated with this account. + :type storage_accounts: + list[~azure.mgmt.datalake.analytics.account.models.AddStorageAccountWithAccountParameters] + :param compute_policies: The list of compute policies associated with this + account. + :type compute_policies: + list[~azure.mgmt.datalake.analytics.account.models.CreateComputePolicyWithAccountParameters] + :param firewall_rules: The list of firewall rules associated with this + account. + :type firewall_rules: + list[~azure.mgmt.datalake.analytics.account.models.CreateFirewallRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this account. Possible values include: 'Enabled', 'Disabled'. Default + value: "Disabled" . + :type firewall_state: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled'. Default value: "Disabled" . + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState + :param new_tier: The commitment tier for the next month. Possible values + include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', + 'Commitment_1000AUHours', 'Commitment_5000AUHours', + 'Commitment_10000AUHours', 'Commitment_50000AUHours', + 'Commitment_100000AUHours', 'Commitment_500000AUHours'. Default value: + "Consumption" . + :type new_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :param max_job_count: The maximum supported jobs running under the account + at the same time. Default value: 3 . + :type max_job_count: int + :param max_degree_of_parallelism: The maximum supported degree of + parallelism for this account. Default value: 30 . + :type max_degree_of_parallelism: int + :param max_degree_of_parallelism_per_job: The maximum supported degree of + parallelism per job for this account. Default value: 32 . + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum supported priority per job for + this account. + :type min_priority_per_job: int + :param query_store_retention: The number of days that job metadata is + retained. Default value: 30 . + :type query_store_retention: int + """ + + _validation = { + 'location': {'required': True}, + 'default_data_lake_store_account': {'required': True}, + 'data_lake_store_accounts': {'required': True}, + 'max_job_count': {'minimum': 1}, + 'max_degree_of_parallelism': {'minimum': 1}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + 'query_store_retention': {'maximum': 180, 'minimum': 1}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, + 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[AddDataLakeStoreWithAccountParameters]'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[AddStorageAccountWithAccountParameters]'}, + 'compute_policies': {'key': 'properties.computePolicies', 'type': '[CreateComputePolicyWithAccountParameters]'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, + 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, + } + + def __init__(self, *, location: str, default_data_lake_store_account: str, data_lake_store_accounts, tags=None, storage_accounts=None, compute_policies=None, firewall_rules=None, firewall_state="Disabled", firewall_allow_azure_ips="Disabled", new_tier="Consumption", max_job_count: int=3, max_degree_of_parallelism: int=30, max_degree_of_parallelism_per_job: int=32, min_priority_per_job: int=None, query_store_retention: int=30, **kwargs) -> None: + super(CreateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) + self.location = location + self.tags = tags + self.default_data_lake_store_account = default_data_lake_store_account + self.data_lake_store_accounts = data_lake_store_accounts + self.storage_accounts = storage_accounts + self.compute_policies = compute_policies + self.firewall_rules = firewall_rules + self.firewall_state = firewall_state + self.firewall_allow_azure_ips = firewall_allow_azure_ips + self.new_tier = new_tier + self.max_job_count = max_job_count + self.max_degree_of_parallelism = max_degree_of_parallelism + self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job + self.min_priority_per_job = min_priority_per_job + self.query_store_retention = query_store_retention + + +class CreateFirewallRuleWithAccountParameters(Model): + """The parameters used to create a new firewall rule while creating a new Data + Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to create. + :type name: str + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, name: str, start_ip_address: str, end_ip_address: str, **kwargs) -> None: + super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class CreateOrUpdateComputePolicyParameters(Model): + """The parameters used to create a new compute policy. + + All required parameters must be populated in order to send to Azure. + + :param object_id: Required. The AAD object identifier for the entity to + create a policy for. + :type object_id: str + :param object_type: Required. The type of AAD object the object identifier + refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'object_id': {'required': True}, + 'object_type': {'required': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, *, object_id: str, object_type, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: + super(CreateOrUpdateComputePolicyParameters, self).__init__(**kwargs) + self.object_id = object_id + self.object_type = object_type + self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job + self.min_priority_per_job = min_priority_per_job + + +class CreateOrUpdateFirewallRuleParameters(Model): + """The parameters used to create a new firewall rule. + + All required parameters must be populated in order to send to Azure. + + :param start_ip_address: Required. The start IP address for the firewall + rule. This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type start_ip_address: str + :param end_ip_address: Required. The end IP address for the firewall rule. + This can be either ipv4 or ipv6. Start and End should be in the same + protocol. + :type end_ip_address: str + """ + + _validation = { + 'start_ip_address': {'required': True}, + 'end_ip_address': {'required': True}, + } + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, start_ip_address: str, end_ip_address: str, **kwargs) -> None: + super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class Resource(Model): + """The resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'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) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = None + self.tags = None + + +class DataLakeAnalyticsAccount(Resource): + """A Data Lake Analytics account object, containing all information associated + with the named Data Lake Analytics account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar account_id: The unique identifier associated with this Data Lake + Analytics account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake + Analytics account. Possible values include: 'Failed', 'Creating', + 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + 'Deleted', 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus + :ivar state: The state of the Data Lake Analytics account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + :ivar default_data_lake_store_account_type: The type of the default Data + Lake Store account associated with this account. + :vartype default_data_lake_store_account_type: str + :ivar default_data_lake_store_account: The default Data Lake Store account + associated with this account. + :vartype default_data_lake_store_account: str + :ivar data_lake_store_accounts: The list of Data Lake Store accounts + associated with this account. + :vartype data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation] + :param public_data_lake_store_accounts: The list of Data Lake Store + accounts associated with this account. + :type public_data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation] + :ivar storage_accounts: The list of Azure Blob Storage accounts associated + with this account. + :vartype storage_accounts: + list[~azure.mgmt.datalake.analytics.account.models.StorageAccountInformation] + :ivar compute_policies: The list of compute policies associated with this + account. + :vartype compute_policies: + list[~azure.mgmt.datalake.analytics.account.models.ComputePolicy] + :ivar hive_metastores: The list of hiveMetastores associated with this + account. + :vartype hive_metastores: + list[~azure.mgmt.datalake.analytics.account.models.HiveMetastore] + :ivar virtual_network_rules: The list of virtualNetwork rules associated + with this account. + :vartype virtual_network_rules: + list[~azure.mgmt.datalake.analytics.account.models.VirtualNetworkRule] + :ivar firewall_rules: The list of firewall rules associated with this + account. + :vartype firewall_rules: + list[~azure.mgmt.datalake.analytics.account.models.FirewallRule] + :param firewall_state: The current state of the IP address firewall for + this account. Possible values include: 'Enabled', 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState + :param new_tier: The commitment tier for the next month. Possible values + include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', + 'Commitment_1000AUHours', 'Commitment_5000AUHours', + 'Commitment_10000AUHours', 'Commitment_50000AUHours', + 'Commitment_100000AUHours', 'Commitment_500000AUHours' + :type new_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :ivar current_tier: The commitment tier in use for the current month. + Possible values include: 'Consumption', 'Commitment_100AUHours', + 'Commitment_500AUHours', 'Commitment_1000AUHours', + 'Commitment_5000AUHours', 'Commitment_10000AUHours', + 'Commitment_50000AUHours', 'Commitment_100000AUHours', + 'Commitment_500000AUHours' + :vartype current_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :param max_job_count: The maximum supported jobs running under the account + at the same time. Default value: 3 . + :type max_job_count: int + :ivar max_active_job_count_per_user: The maximum supported active jobs + under the account at the same time. + :vartype max_active_job_count_per_user: int + :ivar max_queued_job_count_per_user: The maximum supported jobs queued + under the account at the same time. + :vartype max_queued_job_count_per_user: int + :ivar max_job_running_time_in_min: The maximum supported active jobs under + the account at the same time. + :vartype max_job_running_time_in_min: int + :ivar system_max_job_count: The system defined maximum supported jobs + running under the account at the same time, which restricts the maximum + number of running jobs the user can set for the account. + :vartype system_max_job_count: int + :param max_degree_of_parallelism: The maximum supported degree of + parallelism for this account. Default value: 30 . + :type max_degree_of_parallelism: int + :ivar system_max_degree_of_parallelism: The system defined maximum + supported degree of parallelism for this account, which restricts the + maximum value of parallelism the user can set for the account. + :vartype system_max_degree_of_parallelism: int + :param max_degree_of_parallelism_per_job: The maximum supported degree of + parallelism per job for this account. + :type max_degree_of_parallelism_per_job: int + :ivar min_priority_per_job: The minimum supported priority per job for + this account. + :vartype min_priority_per_job: int + :param query_store_retention: The number of days that job metadata is + retained. Default value: 30 . + :type query_store_retention: int + :ivar debug_data_access_level: The current state of the + DebugDataAccessLevel for this account. Possible values include: 'All', + 'Customer', 'None' + :vartype debug_data_access_level: str or + ~azure.mgmt.datalake.analytics.account.models.DebugDataAccessLevel + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'readonly': True}, + 'default_data_lake_store_account_type': {'readonly': True}, + 'default_data_lake_store_account': {'readonly': True}, + 'data_lake_store_accounts': {'readonly': True}, + 'storage_accounts': {'readonly': True}, + 'compute_policies': {'readonly': True}, + 'hive_metastores': {'readonly': True}, + 'virtual_network_rules': {'readonly': True}, + 'firewall_rules': {'readonly': True}, + 'current_tier': {'readonly': True}, + 'max_job_count': {'minimum': 1}, + 'max_active_job_count_per_user': {'readonly': True}, + 'max_queued_job_count_per_user': {'readonly': True}, + 'max_job_running_time_in_min': {'readonly': True}, + 'system_max_job_count': {'readonly': True}, + 'max_degree_of_parallelism': {'minimum': 1}, + 'system_max_degree_of_parallelism': {'readonly': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'readonly': True, 'minimum': 1}, + 'query_store_retention': {'maximum': 180, 'minimum': 1}, + 'debug_data_access_level': {'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}'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'default_data_lake_store_account_type': {'key': 'properties.defaultDataLakeStoreAccountType', 'type': 'str'}, + 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, + 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[DataLakeStoreAccountInformation]'}, + 'public_data_lake_store_accounts': {'key': 'properties.publicDataLakeStoreAccounts', 'type': '[DataLakeStoreAccountInformation]'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccountInformation]'}, + 'compute_policies': {'key': 'properties.computePolicies', 'type': '[ComputePolicy]'}, + 'hive_metastores': {'key': 'properties.hiveMetastores', 'type': '[HiveMetastore]'}, + 'virtual_network_rules': {'key': 'properties.virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, + 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, + 'max_active_job_count_per_user': {'key': 'properties.maxActiveJobCountPerUser', 'type': 'int'}, + 'max_queued_job_count_per_user': {'key': 'properties.maxQueuedJobCountPerUser', 'type': 'int'}, + 'max_job_running_time_in_min': {'key': 'properties.maxJobRunningTimeInMin', 'type': 'int'}, + 'system_max_job_count': {'key': 'properties.systemMaxJobCount', 'type': 'int'}, + 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, + 'system_max_degree_of_parallelism': {'key': 'properties.systemMaxDegreeOfParallelism', 'type': 'int'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, + 'debug_data_access_level': {'key': 'properties.debugDataAccessLevel', 'type': 'DebugDataAccessLevel'}, + } + + def __init__(self, *, public_data_lake_store_accounts=None, firewall_state=None, firewall_allow_azure_ips=None, new_tier=None, max_job_count: int=3, max_degree_of_parallelism: int=30, max_degree_of_parallelism_per_job: int=None, query_store_retention: int=30, **kwargs) -> None: + super(DataLakeAnalyticsAccount, self).__init__(**kwargs) + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + self.default_data_lake_store_account_type = None + self.default_data_lake_store_account = None + self.data_lake_store_accounts = None + self.public_data_lake_store_accounts = public_data_lake_store_accounts + self.storage_accounts = None + self.compute_policies = None + self.hive_metastores = None + self.virtual_network_rules = None + self.firewall_rules = None + self.firewall_state = firewall_state + self.firewall_allow_azure_ips = firewall_allow_azure_ips + self.new_tier = new_tier + self.current_tier = None + self.max_job_count = max_job_count + self.max_active_job_count_per_user = None + self.max_queued_job_count_per_user = None + self.max_job_running_time_in_min = None + self.system_max_job_count = None + self.max_degree_of_parallelism = max_degree_of_parallelism + self.system_max_degree_of_parallelism = None + self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job + self.min_priority_per_job = None + self.query_store_retention = query_store_retention + self.debug_data_access_level = None + + +class DataLakeAnalyticsAccountBasic(Resource): + """A Data Lake Analytics account object, containing all information associated + with the named Data Lake Analytics account. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar location: The resource location. + :vartype location: str + :ivar tags: The resource tags. + :vartype tags: dict[str, str] + :ivar account_id: The unique identifier associated with this Data Lake + Analytics account. + :vartype account_id: str + :ivar provisioning_state: The provisioning status of the Data Lake + Analytics account. Possible values include: 'Failed', 'Creating', + 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', + 'Deleted', 'Undeleting', 'Canceled' + :vartype provisioning_state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus + :ivar state: The state of the Data Lake Analytics account. Possible values + include: 'Active', 'Suspended' + :vartype state: str or + ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState + :ivar creation_time: The account creation time. + :vartype creation_time: datetime + :ivar last_modified_time: The account last modified time. + :vartype last_modified_time: datetime + :ivar endpoint: The full CName endpoint for this account. + :vartype endpoint: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'readonly': True}, + 'tags': {'readonly': True}, + 'account_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'state': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + 'endpoint': {'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}'}, + 'account_id': {'key': 'properties.accountId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, + 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(DataLakeAnalyticsAccountBasic, self).__init__(**kwargs) + self.account_id = None + self.provisioning_state = None + self.state = None + self.creation_time = None + self.last_modified_time = None + self.endpoint = None + + +class DataLakeStoreAccountInformation(SubResource): + """Data Lake Store account information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar suffix: The optional suffix for the Data Lake Store account. + :vartype suffix: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'suffix': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(DataLakeStoreAccountInformation, self).__init__(**kwargs) + self.suffix = None + + +class ErrorAdditionalInfo(Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: object + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } + + def __init__(self, **kwargs) -> None: + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetail(Model): + """The error detail. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The error target. + :vartype target: str + :ivar details: The error details. + :vartype details: + list[~azure.mgmt.datalake.analytics.account.models.ErrorDetail] + :ivar additional_info: The error additional info. + :vartype additional_info: + list[~azure.mgmt.datalake.analytics.account.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetail]'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__(self, **kwargs) -> None: + super(ErrorDetail, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + self.details = None + self.additional_info = None + + +class ErrorResponse(Model): + """Error response. + + Common error response for all Azure Resource Manager APIs to return error + details for failed operations. (This also follows the OData error response + format.). + + :param error: The error object. + :type error: ~azure.mgmt.datalake.analytics.account.models.ErrorDetail + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetail'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.error = error + + +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 FirewallRule(SubResource): + """Data Lake Analytics firewall rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype start_ip_address: str + :ivar end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :vartype end_ip_address: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'start_ip_address': {'readonly': True}, + 'end_ip_address': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(FirewallRule, self).__init__(**kwargs) + self.start_ip_address = None + self.end_ip_address = None + + +class HiveMetastore(SubResource): + """HiveMetastore. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar server_uri: The serverUri for the Hive MetaStore + :vartype server_uri: str + :ivar database_name: The databaseName for the Hive MetaStore + :vartype database_name: str + :ivar runtime_version: The runtimeVersion for the Hive MetaStore + :vartype runtime_version: str + :ivar user_name: The userName for the Hive MetaStore + :vartype user_name: str + :ivar password: The password for the Hive MetaStore + :vartype password: str + :ivar nested_resource_provisioning_state: The current state of the + NestedResource. Possible values include: 'Succeeded', 'Canceled', 'Failed' + :vartype nested_resource_provisioning_state: str or + ~azure.mgmt.datalake.analytics.account.models.NestedResourceProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'server_uri': {'readonly': True}, + 'database_name': {'readonly': True}, + 'runtime_version': {'readonly': True}, + 'user_name': {'readonly': True}, + 'password': {'readonly': True}, + 'nested_resource_provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'server_uri': {'key': 'properties.serverUri', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'runtime_version': {'key': 'properties.runtimeVersion', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + 'password': {'key': 'properties.password', 'type': 'str'}, + 'nested_resource_provisioning_state': {'key': 'properties.nestedResourceProvisioningState', 'type': 'NestedResourceProvisioningState'}, + } + + def __init__(self, **kwargs) -> None: + super(HiveMetastore, self).__init__(**kwargs) + self.server_uri = None + self.database_name = None + self.runtime_version = None + self.user_name = None + self.password = None + self.nested_resource_provisioning_state = None + + +class HiveMetastoreListResult(Model): + """Data Lake Analytics HiveMetastore list information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: + list[~azure.mgmt.datalake.analytics.account.models.HiveMetastore] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[HiveMetastore]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(HiveMetastoreListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class NameAvailabilityInformation(Model): + """Data Lake Analytics account name availability result information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name_available: The Boolean value of true or false to indicate + whether the Data Lake Analytics account name is available or not. + :vartype name_available: bool + :ivar reason: The reason why the Data Lake Analytics account name is not + available, if nameAvailable is false. + :vartype reason: str + :ivar message: The message describing why the Data Lake Analytics account + name is not available, if nameAvailable is false. + :vartype message: str + """ + + _validation = { + 'name_available': {'readonly': True}, + 'reason': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(NameAvailabilityInformation, self).__init__(**kwargs) + self.name_available = None + self.reason = None + self.message = None + + +class Operation(Model): + """An available operation for Data Lake Analytics. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the operation. + :vartype name: str + :ivar display: The display information for the operation. + :vartype display: + ~azure.mgmt.datalake.analytics.account.models.OperationDisplay + :ivar properties: The OperationMetaPropertyInfo for the operation. + :vartype properties: + ~azure.mgmt.datalake.analytics.account.models.OperationMetaPropertyInfo + :ivar origin: The intended executor of the operation. Possible values + include: 'user', 'system', 'user,system' + :vartype origin: str or + ~azure.mgmt.datalake.analytics.account.models.OperationOrigin + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + 'properties': {'readonly': True}, + 'origin': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'properties': {'key': 'properties', 'type': 'OperationMetaPropertyInfo'}, + 'origin': {'key': 'origin', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + self.properties = None + self.origin = None + + +class OperationDisplay(Model): + """The display information for a particular operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: The resource provider of the operation. + :vartype provider: str + :ivar resource: The resource type of the operation. + :vartype resource: str + :ivar operation: A friendly name of the operation. + :vartype operation: str + :ivar description: A friendly description of the operation. + :vartype description: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + + _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) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None + self.description = None + + +class OperationListResult(Model): + """The list of available operations for Data Lake Analytics. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: + list[~azure.mgmt.datalake.analytics.account.models.Operation] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class OperationMetaLogSpecification(Model): + """OperationMetaLogSpecification. + + :param name: The name for OperationMetaLogSpecification. + :type name: str + :param display_name: The displayName for OperationMetaLogSpecification. + :type display_name: str + :param blob_duration: The blobDuration for OperationMetaLogSpecification. + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, blob_duration: str=None, **kwargs) -> None: + super(OperationMetaLogSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.blob_duration = blob_duration + + +class OperationMetaMetricAvailabilitiesSpecification(Model): + """OperationMetaMetricAvailabilitiesSpecification. + + :param time_grain: The timegrain for + OperationMetaMetricAvailabilitiesSpecification. + :type time_grain: str + :param blob_duration: The blobDuration for + OperationMetaMetricAvailabilitiesSpecification. + :type blob_duration: str + """ + + _attribute_map = { + 'time_grain': {'key': 'timeGrain', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, *, time_grain: str=None, blob_duration: str=None, **kwargs) -> None: + super(OperationMetaMetricAvailabilitiesSpecification, self).__init__(**kwargs) + self.time_grain = time_grain + self.blob_duration = blob_duration + + +class OperationMetaMetricSpecification(Model): + """OperationMetaMetricSpecification. + + :param name: The name for OperationMetaMetricSpecification. + :type name: str + :param display_description: The displayName for + OperationMetaMetricSpecification. + :type display_description: str + :param display_name: The displayName for OperationMetaMetricSpecification. + :type display_name: str + :param unit: The unit for OperationMetaMetricSpecification. + :type unit: str + :param aggregation_type: The aggregationType for + OperationMetaMetricSpecification. + :type aggregation_type: str + :param availabilities: The availabilities for + OperationMetaMetricSpecification. + :type availabilities: + list[~azure.mgmt.datalake.analytics.account.models.OperationMetaMetricAvailabilitiesSpecification] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'availabilities': {'key': 'availabilities', 'type': '[OperationMetaMetricAvailabilitiesSpecification]'}, + } + + def __init__(self, *, name: str=None, display_description: str=None, display_name: str=None, unit: str=None, aggregation_type: str=None, availabilities=None, **kwargs) -> None: + super(OperationMetaMetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_description = display_description + self.display_name = display_name + self.unit = unit + self.aggregation_type = aggregation_type + self.availabilities = availabilities + + +class OperationMetaPropertyInfo(Model): + """OperationMetaPropertyInfo. + + :param service_specification: The operations + OperationMetaServiceSpecification. + :type service_specification: + ~azure.mgmt.datalake.analytics.account.models.OperationMetaServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, + } + + def __init__(self, *, service_specification=None, **kwargs) -> None: + super(OperationMetaPropertyInfo, self).__init__(**kwargs) + self.service_specification = service_specification + + +class OperationMetaServiceSpecification(Model): + """OperationMetaServiceSpecification. + + :param metric_specifications: The metricSpecifications for + OperationMetaServiceSpecification. + :type metric_specifications: + list[~azure.mgmt.datalake.analytics.account.models.OperationMetaMetricSpecification] + :param log_specifications: The logSpecifications for + OperationMetaServiceSpecification. + :type log_specifications: + list[~azure.mgmt.datalake.analytics.account.models.OperationMetaLogSpecification] + """ + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[OperationMetaMetricSpecification]'}, + 'log_specifications': {'key': 'logSpecifications', 'type': '[OperationMetaLogSpecification]'}, + } + + def __init__(self, *, metric_specifications=None, log_specifications=None, **kwargs) -> None: + super(OperationMetaServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = metric_specifications + self.log_specifications = log_specifications + + +class SasTokenInformation(Model): + """SAS token information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar access_token: The access token for the associated Azure Storage + Container. + :vartype access_token: str + """ + + _validation = { + 'access_token': {'readonly': True}, + } + + _attribute_map = { + 'access_token': {'key': 'accessToken', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(SasTokenInformation, self).__init__(**kwargs) + self.access_token = None + + +class StorageAccountInformation(SubResource): + """Azure Storage account information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar suffix: The optional suffix for the storage account. + :vartype suffix: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'suffix': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(StorageAccountInformation, self).__init__(**kwargs) + self.suffix = None + + +class StorageContainer(SubResource): + """Azure Storage blob container information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar last_modified_time: The last modified time of the blob container. + :vartype last_modified_time: datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'last_modified_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs) -> None: + super(StorageContainer, self).__init__(**kwargs) + self.last_modified_time = None + + +class UpdateComputePolicyParameters(Model): + """The parameters used to update a compute policy. + + :param object_id: The AAD object identifier for the entity to create a + policy for. + :type object_id: str + :param object_type: The type of AAD object the object identifier refers + to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, *, object_id: str=None, object_type=None, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: + super(UpdateComputePolicyParameters, self).__init__(**kwargs) + self.object_id = object_id + self.object_type = object_type + self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job + self.min_priority_per_job = min_priority_per_job + + +class UpdateComputePolicyWithAccountParameters(Model): + """The parameters used to update a compute policy while updating a Data Lake + Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the compute policy to update. + :type name: str + :param object_id: The AAD object identifier for the entity to create a + policy for. + :type object_id: str + :param object_type: The type of AAD object the object identifier refers + to. Possible values include: 'User', 'Group', 'ServicePrincipal' + :type object_type: str or + ~azure.mgmt.datalake.analytics.account.models.AADObjectType + :param max_degree_of_parallelism_per_job: The maximum degree of + parallelism per job this user can use to submit jobs. This property, the + min priority per job property, or both must be passed. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum priority per job this user can + use to submit jobs. This property, the max degree of parallelism per job + property, or both must be passed. + :type min_priority_per_job: int + """ + + _validation = { + 'name': {'required': True}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'object_id': {'key': 'properties.objectId', 'type': 'str'}, + 'object_type': {'key': 'properties.objectType', 'type': 'str'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + } + + def __init__(self, *, name: str, object_id: str=None, object_type=None, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: + super(UpdateComputePolicyWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.object_id = object_id + self.object_type = object_type + self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job + self.min_priority_per_job = min_priority_per_job + + +class UpdateDataLakeAnalyticsAccountParameters(Model): + """The parameters that can be used to update an existing Data Lake Analytics + account. + + :param tags: The resource tags. + :type tags: dict[str, str] + :param data_lake_store_accounts: The list of Data Lake Store accounts + associated with this account. + :type data_lake_store_accounts: + list[~azure.mgmt.datalake.analytics.account.models.UpdateDataLakeStoreWithAccountParameters] + :param storage_accounts: The list of Azure Blob storage accounts + associated with this account. + :type storage_accounts: + list[~azure.mgmt.datalake.analytics.account.models.UpdateStorageAccountWithAccountParameters] + :param compute_policies: The list of compute policies associated with this + account. + :type compute_policies: + list[~azure.mgmt.datalake.analytics.account.models.UpdateComputePolicyWithAccountParameters] + :param firewall_rules: The list of firewall rules associated with this + account. + :type firewall_rules: + list[~azure.mgmt.datalake.analytics.account.models.UpdateFirewallRuleWithAccountParameters] + :param firewall_state: The current state of the IP address firewall for + this account. Disabling the firewall does not remove existing rules, they + will just be ignored until the firewall is re-enabled. Possible values + include: 'Enabled', 'Disabled' + :type firewall_state: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallState + :param firewall_allow_azure_ips: The current state of allowing or + disallowing IPs originating within Azure through the firewall. If the + firewall is disabled, this is not enforced. Possible values include: + 'Enabled', 'Disabled' + :type firewall_allow_azure_ips: str or + ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState + :param new_tier: The commitment tier to use for next month. Possible + values include: 'Consumption', 'Commitment_100AUHours', + 'Commitment_500AUHours', 'Commitment_1000AUHours', + 'Commitment_5000AUHours', 'Commitment_10000AUHours', + 'Commitment_50000AUHours', 'Commitment_100000AUHours', + 'Commitment_500000AUHours' + :type new_tier: str or + ~azure.mgmt.datalake.analytics.account.models.TierType + :param max_job_count: The maximum supported jobs running under the account + at the same time. + :type max_job_count: int + :param max_degree_of_parallelism: The maximum supported degree of + parallelism for this account. + :type max_degree_of_parallelism: int + :param max_degree_of_parallelism_per_job: The maximum supported degree of + parallelism per job for this account. + :type max_degree_of_parallelism_per_job: int + :param min_priority_per_job: The minimum supported priority per job for + this account. + :type min_priority_per_job: int + :param query_store_retention: The number of days that job metadata is + retained. + :type query_store_retention: int + """ + + _validation = { + 'max_job_count': {'minimum': 1}, + 'max_degree_of_parallelism': {'minimum': 1}, + 'max_degree_of_parallelism_per_job': {'minimum': 1}, + 'min_priority_per_job': {'minimum': 1}, + 'query_store_retention': {'maximum': 180, 'minimum': 1}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[UpdateDataLakeStoreWithAccountParameters]'}, + 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[UpdateStorageAccountWithAccountParameters]'}, + 'compute_policies': {'key': 'properties.computePolicies', 'type': '[UpdateComputePolicyWithAccountParameters]'}, + 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, + 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, + 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, + 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, + 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, + 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, + 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, + 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, + 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, + } + + def __init__(self, *, tags=None, data_lake_store_accounts=None, storage_accounts=None, compute_policies=None, firewall_rules=None, firewall_state=None, firewall_allow_azure_ips=None, new_tier=None, max_job_count: int=None, max_degree_of_parallelism: int=None, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, query_store_retention: int=None, **kwargs) -> None: + super(UpdateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) + self.tags = tags + self.data_lake_store_accounts = data_lake_store_accounts + self.storage_accounts = storage_accounts + self.compute_policies = compute_policies + self.firewall_rules = firewall_rules + self.firewall_state = firewall_state + self.firewall_allow_azure_ips = firewall_allow_azure_ips + self.new_tier = new_tier + self.max_job_count = max_job_count + self.max_degree_of_parallelism = max_degree_of_parallelism + self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job + self.min_priority_per_job = min_priority_per_job + self.query_store_retention = query_store_retention + + +class UpdateDataLakeStoreWithAccountParameters(Model): + """The parameters used to update a Data Lake Store account while updating a + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Data Lake Store account to + update. + :type name: str + :param suffix: The optional suffix for the Data Lake Store account. + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, *, name: str, suffix: str=None, **kwargs) -> None: + super(UpdateDataLakeStoreWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.suffix = suffix + + +class UpdateFirewallRuleParameters(Model): + """The parameters used to update a firewall rule. + + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _attribute_map = { + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: + super(UpdateFirewallRuleParameters, self).__init__(**kwargs) + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class UpdateFirewallRuleWithAccountParameters(Model): + """The parameters used to update a firewall rule while updating a Data Lake + Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the firewall rule to update. + :type name: str + :param start_ip_address: The start IP address for the firewall rule. This + can be either ipv4 or ipv6. Start and End should be in the same protocol. + :type start_ip_address: str + :param end_ip_address: The end IP address for the firewall rule. This can + be either ipv4 or ipv6. Start and End should be in the same protocol. + :type end_ip_address: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, + 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, + } + + def __init__(self, *, name: str, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: + super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.start_ip_address = start_ip_address + self.end_ip_address = end_ip_address + + +class UpdateStorageAccountParameters(Model): + """The parameters used to update an Azure Storage account. + + :param access_key: The updated access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. + :type suffix: str + """ + + _attribute_map = { + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, *, access_key: str=None, suffix: str=None, **kwargs) -> None: + super(UpdateStorageAccountParameters, self).__init__(**kwargs) + self.access_key = access_key + self.suffix = suffix + + +class UpdateStorageAccountWithAccountParameters(Model): + """The parameters used to update an Azure Storage account while updating a + Data Lake Analytics account. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The unique name of the Azure Storage account to + update. + :type name: str + :param access_key: The updated access key associated with this Azure + Storage account that will be used to connect to it. + :type access_key: str + :param suffix: The optional suffix for the storage account. + :type suffix: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, + 'suffix': {'key': 'properties.suffix', 'type': 'str'}, + } + + def __init__(self, *, name: str, access_key: str=None, suffix: str=None, **kwargs) -> None: + super(UpdateStorageAccountWithAccountParameters, self).__init__(**kwargs) + self.name = name + self.access_key = access_key + self.suffix = suffix + + +class VirtualNetworkRule(SubResource): + """Data Lake Analytics VirtualNetwork Rule information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :ivar subnet_id: The resource identifier for the subnet + :vartype subnet_id: str + :ivar virtual_network_rule_state: The current state of the VirtualNetwork + Rule. Possible values include: 'Active', 'NetworkSourceDeleted', 'Failed' + :vartype virtual_network_rule_state: str or + ~azure.mgmt.datalake.analytics.account.models.VirtualNetworkRuleState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnet_id': {'readonly': True}, + 'virtual_network_rule_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + 'virtual_network_rule_state': {'key': 'properties.virtualNetworkRuleState', 'type': 'VirtualNetworkRuleState'}, + } + + def __init__(self, **kwargs) -> None: + super(VirtualNetworkRule, self).__init__(**kwargs) + self.subnet_id = None + self.virtual_network_rule_state = None + + +class VirtualNetworkRuleListResult(Model): + """Data Lake Analytics VirtualNetwork rule list information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The results of the list operation. + :vartype value: + list[~azure.mgmt.datalake.analytics.account.models.VirtualNetworkRule] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualNetworkRule]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(VirtualNetworkRuleListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_paged_models.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/_paged_models.py new file mode 100644 index 000000000000..21e9b7075447 --- /dev/null +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/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 DataLakeAnalyticsAccountBasicPaged(Paged): + """ + A paging container for iterating over a list of :class:`DataLakeAnalyticsAccountBasic ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DataLakeAnalyticsAccountBasic]'} + } + + def __init__(self, *args, **kwargs): + + super(DataLakeAnalyticsAccountBasicPaged, self).__init__(*args, **kwargs) +class DataLakeStoreAccountInformationPaged(Paged): + """ + A paging container for iterating over a list of :class:`DataLakeStoreAccountInformation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DataLakeStoreAccountInformation]'} + } + + def __init__(self, *args, **kwargs): + + super(DataLakeStoreAccountInformationPaged, self).__init__(*args, **kwargs) +class StorageAccountInformationPaged(Paged): + """ + A paging container for iterating over a list of :class:`StorageAccountInformation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[StorageAccountInformation]'} + } + + def __init__(self, *args, **kwargs): + + super(StorageAccountInformationPaged, self).__init__(*args, **kwargs) +class StorageContainerPaged(Paged): + """ + A paging container for iterating over a list of :class:`StorageContainer ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[StorageContainer]'} + } + + def __init__(self, *args, **kwargs): + + super(StorageContainerPaged, self).__init__(*args, **kwargs) +class SasTokenInformationPaged(Paged): + """ + A paging container for iterating over a list of :class:`SasTokenInformation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SasTokenInformation]'} + } + + def __init__(self, *args, **kwargs): + + super(SasTokenInformationPaged, self).__init__(*args, **kwargs) +class ComputePolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`ComputePolicy ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ComputePolicy]'} + } + + def __init__(self, *args, **kwargs): + + super(ComputePolicyPaged, self).__init__(*args, **kwargs) +class FirewallRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`FirewallRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[FirewallRule]'} + } + + def __init__(self, *args, **kwargs): + + super(FirewallRulePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters.py deleted file mode 100644 index 6882e99a58e5..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters.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 AddDataLakeStoreParameters(Model): - """The parameters used to add a new Data Lake Store account. - - :param suffix: The optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _attribute_map = { - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AddDataLakeStoreParameters, self).__init__(**kwargs) - self.suffix = kwargs.get('suffix', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters_py3.py deleted file mode 100644 index c95b45fdbe8d..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_parameters_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 AddDataLakeStoreParameters(Model): - """The parameters used to add a new Data Lake Store account. - - :param suffix: The optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _attribute_map = { - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, *, suffix: str=None, **kwargs) -> None: - super(AddDataLakeStoreParameters, self).__init__(**kwargs) - self.suffix = suffix diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters.py deleted file mode 100644 index b8267f53dd68..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters.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 AddDataLakeStoreWithAccountParameters(Model): - """The parameters used to add a new Data Lake Store account while creating a - new Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Data Lake Store account to - add. - :type name: str - :param suffix: The optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AddDataLakeStoreWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.suffix = kwargs.get('suffix', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters_py3.py deleted file mode 100644 index 01b820d399b2..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_data_lake_store_with_account_parameters_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 AddDataLakeStoreWithAccountParameters(Model): - """The parameters used to add a new Data Lake Store account while creating a - new Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Data Lake Store account to - add. - :type name: str - :param suffix: The optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, *, name: str, suffix: str=None, **kwargs) -> None: - super(AddDataLakeStoreWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.suffix = suffix diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters.py deleted file mode 100644 index 2c8886dbaa1c..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters.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 AddStorageAccountParameters(Model): - """The parameters used to add a new Azure Storage account. - - All required parameters must be populated in order to send to Azure. - - :param access_key: Required. The access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'access_key': {'required': True}, - } - - _attribute_map = { - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AddStorageAccountParameters, self).__init__(**kwargs) - self.access_key = kwargs.get('access_key', None) - self.suffix = kwargs.get('suffix', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters_py3.py deleted file mode 100644 index 185416e0ceb3..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_parameters_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 AddStorageAccountParameters(Model): - """The parameters used to add a new Azure Storage account. - - All required parameters must be populated in order to send to Azure. - - :param access_key: Required. The access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'access_key': {'required': True}, - } - - _attribute_map = { - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, *, access_key: str, suffix: str=None, **kwargs) -> None: - super(AddStorageAccountParameters, self).__init__(**kwargs) - self.access_key = access_key - self.suffix = suffix diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters.py deleted file mode 100644 index be3defceffb7..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters.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 AddStorageAccountWithAccountParameters(Model): - """The parameters used to add a new Azure Storage account while creating a new - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Azure Storage account to - add. - :type name: str - :param access_key: Required. The access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - 'access_key': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AddStorageAccountWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.access_key = kwargs.get('access_key', None) - self.suffix = kwargs.get('suffix', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters_py3.py deleted file mode 100644 index 508615a27192..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/add_storage_account_with_account_parameters_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 AddStorageAccountWithAccountParameters(Model): - """The parameters used to add a new Azure Storage account while creating a new - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Azure Storage account to - add. - :type name: str - :param access_key: Required. The access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - 'access_key': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, *, name: str, access_key: str, suffix: str=None, **kwargs) -> None: - super(AddStorageAccountWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.access_key = access_key - self.suffix = suffix diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information.py deleted file mode 100644 index a96b40c814cc..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information.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 CapabilityInformation(Model): - """Subscription-level properties and limits for Data Lake Analytics. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar subscription_id: The subscription credentials that uniquely - identifies the subscription. - :vartype subscription_id: str - :ivar state: The subscription state. Possible values include: - 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' - :vartype state: str or - ~azure.mgmt.datalake.analytics.account.models.SubscriptionState - :ivar max_account_count: The maximum supported number of accounts under - this subscription. - :vartype max_account_count: int - :ivar account_count: The current number of accounts under this - subscription. - :vartype account_count: int - :ivar migration_state: The Boolean value of true or false to indicate the - maintenance state. - :vartype migration_state: bool - """ - - _validation = { - 'subscription_id': {'readonly': True}, - 'state': {'readonly': True}, - 'max_account_count': {'readonly': True}, - 'account_count': {'readonly': True}, - 'migration_state': {'readonly': True}, - } - - _attribute_map = { - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, - 'account_count': {'key': 'accountCount', 'type': 'int'}, - 'migration_state': {'key': 'migrationState', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(CapabilityInformation, self).__init__(**kwargs) - self.subscription_id = None - self.state = None - self.max_account_count = None - self.account_count = None - self.migration_state = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information_py3.py deleted file mode 100644 index 62695339a1d0..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/capability_information_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 CapabilityInformation(Model): - """Subscription-level properties and limits for Data Lake Analytics. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar subscription_id: The subscription credentials that uniquely - identifies the subscription. - :vartype subscription_id: str - :ivar state: The subscription state. Possible values include: - 'Registered', 'Suspended', 'Deleted', 'Unregistered', 'Warned' - :vartype state: str or - ~azure.mgmt.datalake.analytics.account.models.SubscriptionState - :ivar max_account_count: The maximum supported number of accounts under - this subscription. - :vartype max_account_count: int - :ivar account_count: The current number of accounts under this - subscription. - :vartype account_count: int - :ivar migration_state: The Boolean value of true or false to indicate the - maintenance state. - :vartype migration_state: bool - """ - - _validation = { - 'subscription_id': {'readonly': True}, - 'state': {'readonly': True}, - 'max_account_count': {'readonly': True}, - 'account_count': {'readonly': True}, - 'migration_state': {'readonly': True}, - } - - _attribute_map = { - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - 'state': {'key': 'state', 'type': 'str'}, - 'max_account_count': {'key': 'maxAccountCount', 'type': 'int'}, - 'account_count': {'key': 'accountCount', 'type': 'int'}, - 'migration_state': {'key': 'migrationState', 'type': 'bool'}, - } - - def __init__(self, **kwargs) -> None: - super(CapabilityInformation, self).__init__(**kwargs) - self.subscription_id = None - self.state = None - self.max_account_count = None - self.account_count = None - self.migration_state = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters.py deleted file mode 100644 index d7fe292fb2a7..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters.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 CheckNameAvailabilityParameters(Model): - """Data Lake Analytics account name availability check parameters. - - 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 name: Required. The Data Lake Analytics name to check availability - for. - :type name: str - :ivar type: Required. The resource type. Note: This should not be set by - the user, as the constant value is Microsoft.DataLakeAnalytics/accounts. - Default value: "Microsoft.DataLakeAnalytics/accounts" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - type = "Microsoft.DataLakeAnalytics/accounts" - - def __init__(self, **kwargs): - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters_py3.py deleted file mode 100644 index 9e6b1aa362c2..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/check_name_availability_parameters_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 CheckNameAvailabilityParameters(Model): - """Data Lake Analytics account name availability check parameters. - - 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 name: Required. The Data Lake Analytics name to check availability - for. - :type name: str - :ivar type: Required. The resource type. Note: This should not be set by - the user, as the constant value is Microsoft.DataLakeAnalytics/accounts. - Default value: "Microsoft.DataLakeAnalytics/accounts" . - :vartype type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - type = "Microsoft.DataLakeAnalytics/accounts" - - def __init__(self, *, name: str, **kwargs) -> None: - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = name diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy.py deleted file mode 100644 index 656dc98a2349..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class ComputePolicy(SubResource): - """Data Lake Analytics compute policy information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar object_id: The AAD object identifier for the entity to create a - policy for. - :vartype object_id: str - :ivar object_type: The type of AAD object the object identifier refers to. - Possible values include: 'User', 'Group', 'ServicePrincipal' - :vartype object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :ivar max_degree_of_parallelism_per_job: The maximum degree of parallelism - per job this user can use to submit jobs. - :vartype max_degree_of_parallelism_per_job: int - :ivar min_priority_per_job: The minimum priority per job this user can use - to submit jobs. - :vartype min_priority_per_job: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'object_id': {'readonly': True}, - 'object_type': {'readonly': True}, - 'max_degree_of_parallelism_per_job': {'readonly': True, 'minimum': 1}, - 'min_priority_per_job': {'readonly': True, 'minimum': 1}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ComputePolicy, self).__init__(**kwargs) - self.object_id = None - self.object_type = None - self.max_degree_of_parallelism_per_job = None - self.min_priority_per_job = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_paged.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_paged.py deleted file mode 100644 index 3cd24ed75e18..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_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 ComputePolicyPaged(Paged): - """ - A paging container for iterating over a list of :class:`ComputePolicy ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ComputePolicy]'} - } - - def __init__(self, *args, **kwargs): - - super(ComputePolicyPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_py3.py deleted file mode 100644 index 752f4fa08679..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/compute_policy_py3.py +++ /dev/null @@ -1,67 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource_py3 import SubResource - - -class ComputePolicy(SubResource): - """Data Lake Analytics compute policy information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar object_id: The AAD object identifier for the entity to create a - policy for. - :vartype object_id: str - :ivar object_type: The type of AAD object the object identifier refers to. - Possible values include: 'User', 'Group', 'ServicePrincipal' - :vartype object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :ivar max_degree_of_parallelism_per_job: The maximum degree of parallelism - per job this user can use to submit jobs. - :vartype max_degree_of_parallelism_per_job: int - :ivar min_priority_per_job: The minimum priority per job this user can use - to submit jobs. - :vartype min_priority_per_job: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'object_id': {'readonly': True}, - 'object_type': {'readonly': True}, - 'max_degree_of_parallelism_per_job': {'readonly': True, 'minimum': 1}, - 'min_priority_per_job': {'readonly': True, 'minimum': 1}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, **kwargs) -> None: - super(ComputePolicy, self).__init__(**kwargs) - self.object_id = None - self.object_type = None - self.max_degree_of_parallelism_per_job = None - self.min_priority_per_job = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters.py deleted file mode 100644 index e3e390ceefa6..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters.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 CreateComputePolicyWithAccountParameters(Model): - """The parameters used to create a new compute policy while creating a new - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the compute policy to create. - :type name: str - :param object_id: Required. The AAD object identifier for the entity to - create a policy for. - :type object_id: str - :param object_type: Required. The type of AAD object the object identifier - refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'name': {'required': True}, - 'object_id': {'required': True}, - 'object_type': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(CreateComputePolicyWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.object_id = kwargs.get('object_id', None) - self.object_type = kwargs.get('object_type', None) - self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) - self.min_priority_per_job = kwargs.get('min_priority_per_job', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters_py3.py deleted file mode 100644 index 84133d2eadf8..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_compute_policy_with_account_parameters_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 CreateComputePolicyWithAccountParameters(Model): - """The parameters used to create a new compute policy while creating a new - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the compute policy to create. - :type name: str - :param object_id: Required. The AAD object identifier for the entity to - create a policy for. - :type object_id: str - :param object_type: Required. The type of AAD object the object identifier - refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'name': {'required': True}, - 'object_id': {'required': True}, - 'object_type': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, *, name: str, object_id: str, object_type, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: - super(CreateComputePolicyWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.object_id = object_id - self.object_type = object_type - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters.py deleted file mode 100644 index 2cad53563ba7..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateDataLakeAnalyticsAccountParameters(Model): - """The parameters to use for creating a Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param default_data_lake_store_account: Required. The default Data Lake - Store account associated with this account. - :type default_data_lake_store_account: str - :param data_lake_store_accounts: Required. The list of Data Lake Store - accounts associated with this account. - :type data_lake_store_accounts: - list[~azure.mgmt.datalake.analytics.account.models.AddDataLakeStoreWithAccountParameters] - :param storage_accounts: The list of Azure Blob Storage accounts - associated with this account. - :type storage_accounts: - list[~azure.mgmt.datalake.analytics.account.models.AddStorageAccountWithAccountParameters] - :param compute_policies: The list of compute policies associated with this - account. - :type compute_policies: - list[~azure.mgmt.datalake.analytics.account.models.CreateComputePolicyWithAccountParameters] - :param firewall_rules: The list of firewall rules associated with this - account. - :type firewall_rules: - list[~azure.mgmt.datalake.analytics.account.models.CreateFirewallRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this account. Possible values include: 'Enabled', 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState - :param new_tier: The commitment tier for the next month. Possible values - include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', - 'Commitment_1000AUHours', 'Commitment_5000AUHours', - 'Commitment_10000AUHours', 'Commitment_50000AUHours', - 'Commitment_100000AUHours', 'Commitment_500000AUHours' - :type new_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :param max_job_count: The maximum supported jobs running under the account - at the same time. Default value: 3 . - :type max_job_count: int - :param max_degree_of_parallelism: The maximum supported degree of - parallelism for this account. Default value: 30 . - :type max_degree_of_parallelism: int - :param max_degree_of_parallelism_per_job: The maximum supported degree of - parallelism per job for this account. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum supported priority per job for - this account. - :type min_priority_per_job: int - :param query_store_retention: The number of days that job metadata is - retained. Default value: 30 . - :type query_store_retention: int - """ - - _validation = { - 'location': {'required': True}, - 'default_data_lake_store_account': {'required': True}, - 'data_lake_store_accounts': {'required': True}, - 'max_job_count': {'minimum': 1}, - 'max_degree_of_parallelism': {'minimum': 1}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - 'query_store_retention': {'maximum': 180, 'minimum': 1}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, - 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[AddDataLakeStoreWithAccountParameters]'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[AddStorageAccountWithAccountParameters]'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[CreateComputePolicyWithAccountParameters]'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(CreateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.default_data_lake_store_account = kwargs.get('default_data_lake_store_account', None) - self.data_lake_store_accounts = kwargs.get('data_lake_store_accounts', None) - self.storage_accounts = kwargs.get('storage_accounts', None) - self.compute_policies = kwargs.get('compute_policies', None) - self.firewall_rules = kwargs.get('firewall_rules', None) - self.firewall_state = kwargs.get('firewall_state', None) - self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) - self.new_tier = kwargs.get('new_tier', None) - self.max_job_count = kwargs.get('max_job_count', 3) - self.max_degree_of_parallelism = kwargs.get('max_degree_of_parallelism', 30) - self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) - self.min_priority_per_job = kwargs.get('min_priority_per_job', None) - self.query_store_retention = kwargs.get('query_store_retention', 30) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters_py3.py deleted file mode 100644 index 5fdc9496c4c9..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_data_lake_analytics_account_parameters_py3.py +++ /dev/null @@ -1,122 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateDataLakeAnalyticsAccountParameters(Model): - """The parameters to use for creating a Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param default_data_lake_store_account: Required. The default Data Lake - Store account associated with this account. - :type default_data_lake_store_account: str - :param data_lake_store_accounts: Required. The list of Data Lake Store - accounts associated with this account. - :type data_lake_store_accounts: - list[~azure.mgmt.datalake.analytics.account.models.AddDataLakeStoreWithAccountParameters] - :param storage_accounts: The list of Azure Blob Storage accounts - associated with this account. - :type storage_accounts: - list[~azure.mgmt.datalake.analytics.account.models.AddStorageAccountWithAccountParameters] - :param compute_policies: The list of compute policies associated with this - account. - :type compute_policies: - list[~azure.mgmt.datalake.analytics.account.models.CreateComputePolicyWithAccountParameters] - :param firewall_rules: The list of firewall rules associated with this - account. - :type firewall_rules: - list[~azure.mgmt.datalake.analytics.account.models.CreateFirewallRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this account. Possible values include: 'Enabled', 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState - :param new_tier: The commitment tier for the next month. Possible values - include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', - 'Commitment_1000AUHours', 'Commitment_5000AUHours', - 'Commitment_10000AUHours', 'Commitment_50000AUHours', - 'Commitment_100000AUHours', 'Commitment_500000AUHours' - :type new_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :param max_job_count: The maximum supported jobs running under the account - at the same time. Default value: 3 . - :type max_job_count: int - :param max_degree_of_parallelism: The maximum supported degree of - parallelism for this account. Default value: 30 . - :type max_degree_of_parallelism: int - :param max_degree_of_parallelism_per_job: The maximum supported degree of - parallelism per job for this account. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum supported priority per job for - this account. - :type min_priority_per_job: int - :param query_store_retention: The number of days that job metadata is - retained. Default value: 30 . - :type query_store_retention: int - """ - - _validation = { - 'location': {'required': True}, - 'default_data_lake_store_account': {'required': True}, - 'data_lake_store_accounts': {'required': True}, - 'max_job_count': {'minimum': 1}, - 'max_degree_of_parallelism': {'minimum': 1}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - 'query_store_retention': {'maximum': 180, 'minimum': 1}, - } - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, - 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[AddDataLakeStoreWithAccountParameters]'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[AddStorageAccountWithAccountParameters]'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[CreateComputePolicyWithAccountParameters]'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[CreateFirewallRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - } - - def __init__(self, *, location: str, default_data_lake_store_account: str, data_lake_store_accounts, tags=None, storage_accounts=None, compute_policies=None, firewall_rules=None, firewall_state=None, firewall_allow_azure_ips=None, new_tier=None, max_job_count: int=3, max_degree_of_parallelism: int=30, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, query_store_retention: int=30, **kwargs) -> None: - super(CreateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) - self.location = location - self.tags = tags - self.default_data_lake_store_account = default_data_lake_store_account - self.data_lake_store_accounts = data_lake_store_accounts - self.storage_accounts = storage_accounts - self.compute_policies = compute_policies - self.firewall_rules = firewall_rules - self.firewall_state = firewall_state - self.firewall_allow_azure_ips = firewall_allow_azure_ips - self.new_tier = new_tier - self.max_job_count = max_job_count - self.max_degree_of_parallelism = max_degree_of_parallelism - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job - self.query_store_retention = query_store_retention diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters.py deleted file mode 100644 index 85d0684f6ee5..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateFirewallRuleWithAccountParameters(Model): - """The parameters used to create a new firewall rule while creating a new Data - Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to create. - :type name: str - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters_py3.py deleted file mode 100644 index e85bab84d040..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_firewall_rule_with_account_parameters_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateFirewallRuleWithAccountParameters(Model): - """The parameters used to create a new firewall rule while creating a new Data - Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to create. - :type name: str - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, name: str, start_ip_address: str, end_ip_address: str, **kwargs) -> None: - super(CreateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters.py deleted file mode 100644 index 235892b3a007..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateOrUpdateComputePolicyParameters(Model): - """The parameters used to create a new compute policy. - - All required parameters must be populated in order to send to Azure. - - :param object_id: Required. The AAD object identifier for the entity to - create a policy for. - :type object_id: str - :param object_type: Required. The type of AAD object the object identifier - refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'object_id': {'required': True}, - 'object_type': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(CreateOrUpdateComputePolicyParameters, self).__init__(**kwargs) - self.object_id = kwargs.get('object_id', None) - self.object_type = kwargs.get('object_type', None) - self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) - self.min_priority_per_job = kwargs.get('min_priority_per_job', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters_py3.py deleted file mode 100644 index 2f61fb6d9c17..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_compute_policy_parameters_py3.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CreateOrUpdateComputePolicyParameters(Model): - """The parameters used to create a new compute policy. - - All required parameters must be populated in order to send to Azure. - - :param object_id: Required. The AAD object identifier for the entity to - create a policy for. - :type object_id: str - :param object_type: Required. The type of AAD object the object identifier - refers to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'object_id': {'required': True}, - 'object_type': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, *, object_id: str, object_type, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: - super(CreateOrUpdateComputePolicyParameters, self).__init__(**kwargs) - self.object_id = object_id - self.object_type = object_type - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters.py deleted file mode 100644 index 47cef2ac665a..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters.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 CreateOrUpdateFirewallRuleParameters(Model): - """The parameters used to create a new firewall rule. - - All required parameters must be populated in order to send to Azure. - - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters_py3.py deleted file mode 100644 index 263552b9e691..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/create_or_update_firewall_rule_parameters_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 CreateOrUpdateFirewallRuleParameters(Model): - """The parameters used to create a new firewall rule. - - All required parameters must be populated in order to send to Azure. - - :param start_ip_address: Required. The start IP address for the firewall - rule. This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type start_ip_address: str - :param end_ip_address: Required. The end IP address for the firewall rule. - This can be either ipv4 or ipv6. Start and End should be in the same - protocol. - :type end_ip_address: str - """ - - _validation = { - 'start_ip_address': {'required': True}, - 'end_ip_address': {'required': True}, - } - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, start_ip_address: str, end_ip_address: str, **kwargs) -> None: - super(CreateOrUpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account.py deleted file mode 100644 index 3a0cd6008ef5..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 DataLakeAnalyticsAccount(Resource): - """A Data Lake Analytics account object, containing all information associated - with the named Data Lake Analytics account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifer. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar account_id: The unique identifier associated with this Data Lake - Analytics account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake - Analytics account. Possible values include: 'Failed', 'Creating', - 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - 'Deleted', 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus - :ivar state: The state of the Data Lake Analytics account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - :ivar default_data_lake_store_account: The default Data Lake Store account - associated with this account. - :vartype default_data_lake_store_account: str - :ivar data_lake_store_accounts: The list of Data Lake Store accounts - associated with this account. - :vartype data_lake_store_accounts: - list[~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation] - :ivar storage_accounts: The list of Azure Blob Storage accounts associated - with this account. - :vartype storage_accounts: - list[~azure.mgmt.datalake.analytics.account.models.StorageAccountInformation] - :ivar compute_policies: The list of compute policies associated with this - account. - :vartype compute_policies: - list[~azure.mgmt.datalake.analytics.account.models.ComputePolicy] - :ivar firewall_rules: The list of firewall rules associated with this - account. - :vartype firewall_rules: - list[~azure.mgmt.datalake.analytics.account.models.FirewallRule] - :ivar firewall_state: The current state of the IP address firewall for - this account. Possible values include: 'Enabled', 'Disabled' - :vartype firewall_state: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallState - :ivar firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :vartype firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState - :ivar new_tier: The commitment tier for the next month. Possible values - include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', - 'Commitment_1000AUHours', 'Commitment_5000AUHours', - 'Commitment_10000AUHours', 'Commitment_50000AUHours', - 'Commitment_100000AUHours', 'Commitment_500000AUHours' - :vartype new_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :ivar current_tier: The commitment tier in use for the current month. - Possible values include: 'Consumption', 'Commitment_100AUHours', - 'Commitment_500AUHours', 'Commitment_1000AUHours', - 'Commitment_5000AUHours', 'Commitment_10000AUHours', - 'Commitment_50000AUHours', 'Commitment_100000AUHours', - 'Commitment_500000AUHours' - :vartype current_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :ivar max_job_count: The maximum supported jobs running under the account - at the same time. Default value: 3 . - :vartype max_job_count: int - :ivar system_max_job_count: The system defined maximum supported jobs - running under the account at the same time, which restricts the maximum - number of running jobs the user can set for the account. - :vartype system_max_job_count: int - :ivar max_degree_of_parallelism: The maximum supported degree of - parallelism for this account. Default value: 30 . - :vartype max_degree_of_parallelism: int - :ivar system_max_degree_of_parallelism: The system defined maximum - supported degree of parallelism for this account, which restricts the - maximum value of parallelism the user can set for the account. - :vartype system_max_degree_of_parallelism: int - :ivar max_degree_of_parallelism_per_job: The maximum supported degree of - parallelism per job for this account. - :vartype max_degree_of_parallelism_per_job: int - :ivar min_priority_per_job: The minimum supported priority per job for - this account. - :vartype min_priority_per_job: int - :ivar query_store_retention: The number of days that job metadata is - retained. Default value: 30 . - :vartype query_store_retention: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - 'default_data_lake_store_account': {'readonly': True}, - 'data_lake_store_accounts': {'readonly': True}, - 'storage_accounts': {'readonly': True}, - 'compute_policies': {'readonly': True}, - 'firewall_rules': {'readonly': True}, - 'firewall_state': {'readonly': True}, - 'firewall_allow_azure_ips': {'readonly': True}, - 'new_tier': {'readonly': True}, - 'current_tier': {'readonly': True}, - 'max_job_count': {'readonly': True, 'minimum': 1}, - 'system_max_job_count': {'readonly': True}, - 'max_degree_of_parallelism': {'readonly': True, 'minimum': 1}, - 'system_max_degree_of_parallelism': {'readonly': True}, - 'max_degree_of_parallelism_per_job': {'readonly': True, 'minimum': 1}, - 'min_priority_per_job': {'readonly': True, 'minimum': 1}, - 'query_store_retention': {'readonly': True, 'maximum': 180, 'minimum': 1}, - } - - _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}'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, - 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[DataLakeStoreAccountInformation]'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccountInformation]'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[ComputePolicy]'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'system_max_job_count': {'key': 'properties.systemMaxJobCount', 'type': 'int'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'system_max_degree_of_parallelism': {'key': 'properties.systemMaxDegreeOfParallelism', 'type': 'int'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(DataLakeAnalyticsAccount, self).__init__(**kwargs) - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None - self.default_data_lake_store_account = None - self.data_lake_store_accounts = None - self.storage_accounts = None - self.compute_policies = None - self.firewall_rules = None - self.firewall_state = None - self.firewall_allow_azure_ips = None - self.new_tier = None - self.current_tier = None - self.max_job_count = None - self.system_max_job_count = None - self.max_degree_of_parallelism = None - self.system_max_degree_of_parallelism = None - self.max_degree_of_parallelism_per_job = None - self.min_priority_per_job = None - self.query_store_retention = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic.py deleted file mode 100644 index e07cf3976d4b..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 DataLakeAnalyticsAccountBasic(Resource): - """A Data Lake Analytics account object, containing all information associated - with the named Data Lake Analytics account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifer. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar account_id: The unique identifier associated with this Data Lake - Analytics account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake - Analytics account. Possible values include: 'Failed', 'Creating', - 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - 'Deleted', 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus - :ivar state: The state of the Data Lake Analytics account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'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}'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataLakeAnalyticsAccountBasic, self).__init__(**kwargs) - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_paged.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_paged.py deleted file mode 100644 index 279867b941e2..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_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 DataLakeAnalyticsAccountBasicPaged(Paged): - """ - A paging container for iterating over a list of :class:`DataLakeAnalyticsAccountBasic ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DataLakeAnalyticsAccountBasic]'} - } - - def __init__(self, *args, **kwargs): - - super(DataLakeAnalyticsAccountBasicPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_py3.py deleted file mode 100644 index fca835dd76d0..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_basic_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 DataLakeAnalyticsAccountBasic(Resource): - """A Data Lake Analytics account object, containing all information associated - with the named Data Lake Analytics account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifer. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar account_id: The unique identifier associated with this Data Lake - Analytics account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake - Analytics account. Possible values include: 'Failed', 'Creating', - 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - 'Deleted', 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus - :ivar state: The state of the Data Lake Analytics account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'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}'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(DataLakeAnalyticsAccountBasic, self).__init__(**kwargs) - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_py3.py deleted file mode 100644 index 41e28a3413d9..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_analytics_account_py3.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license 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 DataLakeAnalyticsAccount(Resource): - """A Data Lake Analytics account object, containing all information associated - with the named Data Lake Analytics account. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifer. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - :ivar account_id: The unique identifier associated with this Data Lake - Analytics account. - :vartype account_id: str - :ivar provisioning_state: The provisioning status of the Data Lake - Analytics account. Possible values include: 'Failed', 'Creating', - 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming', 'Deleting', - 'Deleted', 'Undeleting', 'Canceled' - :vartype provisioning_state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountStatus - :ivar state: The state of the Data Lake Analytics account. Possible values - include: 'Active', 'Suspended' - :vartype state: str or - ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountState - :ivar creation_time: The account creation time. - :vartype creation_time: datetime - :ivar last_modified_time: The account last modified time. - :vartype last_modified_time: datetime - :ivar endpoint: The full CName endpoint for this account. - :vartype endpoint: str - :ivar default_data_lake_store_account: The default Data Lake Store account - associated with this account. - :vartype default_data_lake_store_account: str - :ivar data_lake_store_accounts: The list of Data Lake Store accounts - associated with this account. - :vartype data_lake_store_accounts: - list[~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation] - :ivar storage_accounts: The list of Azure Blob Storage accounts associated - with this account. - :vartype storage_accounts: - list[~azure.mgmt.datalake.analytics.account.models.StorageAccountInformation] - :ivar compute_policies: The list of compute policies associated with this - account. - :vartype compute_policies: - list[~azure.mgmt.datalake.analytics.account.models.ComputePolicy] - :ivar firewall_rules: The list of firewall rules associated with this - account. - :vartype firewall_rules: - list[~azure.mgmt.datalake.analytics.account.models.FirewallRule] - :ivar firewall_state: The current state of the IP address firewall for - this account. Possible values include: 'Enabled', 'Disabled' - :vartype firewall_state: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallState - :ivar firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :vartype firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState - :ivar new_tier: The commitment tier for the next month. Possible values - include: 'Consumption', 'Commitment_100AUHours', 'Commitment_500AUHours', - 'Commitment_1000AUHours', 'Commitment_5000AUHours', - 'Commitment_10000AUHours', 'Commitment_50000AUHours', - 'Commitment_100000AUHours', 'Commitment_500000AUHours' - :vartype new_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :ivar current_tier: The commitment tier in use for the current month. - Possible values include: 'Consumption', 'Commitment_100AUHours', - 'Commitment_500AUHours', 'Commitment_1000AUHours', - 'Commitment_5000AUHours', 'Commitment_10000AUHours', - 'Commitment_50000AUHours', 'Commitment_100000AUHours', - 'Commitment_500000AUHours' - :vartype current_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :ivar max_job_count: The maximum supported jobs running under the account - at the same time. Default value: 3 . - :vartype max_job_count: int - :ivar system_max_job_count: The system defined maximum supported jobs - running under the account at the same time, which restricts the maximum - number of running jobs the user can set for the account. - :vartype system_max_job_count: int - :ivar max_degree_of_parallelism: The maximum supported degree of - parallelism for this account. Default value: 30 . - :vartype max_degree_of_parallelism: int - :ivar system_max_degree_of_parallelism: The system defined maximum - supported degree of parallelism for this account, which restricts the - maximum value of parallelism the user can set for the account. - :vartype system_max_degree_of_parallelism: int - :ivar max_degree_of_parallelism_per_job: The maximum supported degree of - parallelism per job for this account. - :vartype max_degree_of_parallelism_per_job: int - :ivar min_priority_per_job: The minimum supported priority per job for - this account. - :vartype min_priority_per_job: int - :ivar query_store_retention: The number of days that job metadata is - retained. Default value: 30 . - :vartype query_store_retention: int - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'readonly': True}, - 'account_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'state': {'readonly': True}, - 'creation_time': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - 'endpoint': {'readonly': True}, - 'default_data_lake_store_account': {'readonly': True}, - 'data_lake_store_accounts': {'readonly': True}, - 'storage_accounts': {'readonly': True}, - 'compute_policies': {'readonly': True}, - 'firewall_rules': {'readonly': True}, - 'firewall_state': {'readonly': True}, - 'firewall_allow_azure_ips': {'readonly': True}, - 'new_tier': {'readonly': True}, - 'current_tier': {'readonly': True}, - 'max_job_count': {'readonly': True, 'minimum': 1}, - 'system_max_job_count': {'readonly': True}, - 'max_degree_of_parallelism': {'readonly': True, 'minimum': 1}, - 'system_max_degree_of_parallelism': {'readonly': True}, - 'max_degree_of_parallelism_per_job': {'readonly': True, 'minimum': 1}, - 'min_priority_per_job': {'readonly': True, 'minimum': 1}, - 'query_store_retention': {'readonly': True, 'maximum': 180, 'minimum': 1}, - } - - _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}'}, - 'account_id': {'key': 'properties.accountId', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'DataLakeAnalyticsAccountStatus'}, - 'state': {'key': 'properties.state', 'type': 'DataLakeAnalyticsAccountState'}, - 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, - 'default_data_lake_store_account': {'key': 'properties.defaultDataLakeStoreAccount', 'type': 'str'}, - 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[DataLakeStoreAccountInformation]'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[StorageAccountInformation]'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[ComputePolicy]'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[FirewallRule]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'current_tier': {'key': 'properties.currentTier', 'type': 'TierType'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'system_max_job_count': {'key': 'properties.systemMaxJobCount', 'type': 'int'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'system_max_degree_of_parallelism': {'key': 'properties.systemMaxDegreeOfParallelism', 'type': 'int'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - } - - def __init__(self, **kwargs) -> None: - super(DataLakeAnalyticsAccount, self).__init__(**kwargs) - self.account_id = None - self.provisioning_state = None - self.state = None - self.creation_time = None - self.last_modified_time = None - self.endpoint = None - self.default_data_lake_store_account = None - self.data_lake_store_accounts = None - self.storage_accounts = None - self.compute_policies = None - self.firewall_rules = None - self.firewall_state = None - self.firewall_allow_azure_ips = None - self.new_tier = None - self.current_tier = None - self.max_job_count = None - self.system_max_job_count = None - self.max_degree_of_parallelism = None - self.system_max_degree_of_parallelism = None - self.max_degree_of_parallelism_per_job = None - self.min_priority_per_job = None - self.query_store_retention = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information.py deleted file mode 100644 index 265232dfacf3..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information.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 .sub_resource import SubResource - - -class DataLakeStoreAccountInformation(SubResource): - """Data Lake Store account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar suffix: The optional suffix for the Data Lake Store account. - :vartype suffix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'suffix': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DataLakeStoreAccountInformation, self).__init__(**kwargs) - self.suffix = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_paged.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_paged.py deleted file mode 100644 index 40a136bcceaf..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_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 DataLakeStoreAccountInformationPaged(Paged): - """ - A paging container for iterating over a list of :class:`DataLakeStoreAccountInformation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[DataLakeStoreAccountInformation]'} - } - - def __init__(self, *args, **kwargs): - - super(DataLakeStoreAccountInformationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_py3.py deleted file mode 100644 index 12283ff4e9b0..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/data_lake_store_account_information_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 .sub_resource_py3 import SubResource - - -class DataLakeStoreAccountInformation(SubResource): - """Data Lake Store account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar suffix: The optional suffix for the Data Lake Store account. - :vartype suffix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'suffix': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(DataLakeStoreAccountInformation, self).__init__(**kwargs) - self.suffix = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule.py deleted file mode 100644 index 11a128edd890..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule.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 .sub_resource import SubResource - - -class FirewallRule(SubResource): - """Data Lake Analytics firewall rule information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype start_ip_address: str - :ivar end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype end_ip_address: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'start_ip_address': {'readonly': True}, - 'end_ip_address': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(FirewallRule, self).__init__(**kwargs) - self.start_ip_address = None - self.end_ip_address = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_paged.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_paged.py deleted file mode 100644 index 20614418048d..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_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 FirewallRulePaged(Paged): - """ - A paging container for iterating over a list of :class:`FirewallRule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[FirewallRule]'} - } - - def __init__(self, *args, **kwargs): - - super(FirewallRulePaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_py3.py deleted file mode 100644 index 202e9916242f..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/firewall_rule_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 .sub_resource_py3 import SubResource - - -class FirewallRule(SubResource): - """Data Lake Analytics firewall rule information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype start_ip_address: str - :ivar end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :vartype end_ip_address: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'start_ip_address': {'readonly': True}, - 'end_ip_address': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(FirewallRule, self).__init__(**kwargs) - self.start_ip_address = None - self.end_ip_address = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information.py deleted file mode 100644 index 041270b61967..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information.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 NameAvailabilityInformation(Model): - """Data Lake Analytics account name availability result information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: The Boolean value of true or false to indicate - whether the Data Lake Analytics account name is available or not. - :vartype name_available: bool - :ivar reason: The reason why the Data Lake Analytics account name is not - available, if nameAvailable is false. - :vartype reason: str - :ivar message: The message describing why the Data Lake Analytics account - name is not available, if nameAvailable is false. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NameAvailabilityInformation, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information_py3.py deleted file mode 100644 index 0c10dc784a3d..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information_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 NameAvailabilityInformation(Model): - """Data Lake Analytics account name availability result information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: The Boolean value of true or false to indicate - whether the Data Lake Analytics account name is available or not. - :vartype name_available: bool - :ivar reason: The reason why the Data Lake Analytics account name is not - available, if nameAvailable is false. - :vartype reason: str - :ivar message: The message describing why the Data Lake Analytics account - name is not available, if nameAvailable is false. - :vartype message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(NameAvailabilityInformation, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation.py deleted file mode 100644 index 515e17676d7f..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation.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 Operation(Model): - """An available operation for Data Lake Analytics. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The name of the operation. - :vartype name: str - :ivar display: The display information for the operation. - :vartype display: - ~azure.mgmt.datalake.analytics.account.models.OperationDisplay - :ivar origin: The intended executor of the operation. Possible values - include: 'user', 'system', 'user,system' - :vartype origin: str or - ~azure.mgmt.datalake.analytics.account.models.OperationOrigin - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None - self.origin = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display.py deleted file mode 100644 index 06d6c6925b99..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display.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 OperationDisplay(Model): - """The display information for a particular operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: The resource provider of the operation. - :vartype provider: str - :ivar resource: The resource type of the operation. - :vartype resource: str - :ivar operation: A friendly name of the operation. - :vartype operation: str - :ivar description: A friendly description of the operation. - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _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 = None - self.resource = None - self.operation = None - self.description = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display_py3.py deleted file mode 100644 index c2452ff41dcb..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_display_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 OperationDisplay(Model): - """The display information for a particular operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: The resource provider of the operation. - :vartype provider: str - :ivar resource: The resource type of the operation. - :vartype resource: str - :ivar operation: A friendly name of the operation. - :vartype operation: str - :ivar description: A friendly description of the operation. - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _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) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_result.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_result.py deleted file mode 100644 index 65fff5b9dd35..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_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 OperationListResult(Model): - """The list of available operations for Data Lake Analytics. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar value: The results of the list operation. - :vartype value: - list[~azure.mgmt.datalake.analytics.account.models.Operation] - :ivar next_link: The link (url) to the next page of results. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationListResult, self).__init__(**kwargs) - self.value = None - self.next_link = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_result_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_result_py3.py deleted file mode 100644 index ae8d580c8d9f..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_list_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 OperationListResult(Model): - """The list of available operations for Data Lake Analytics. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar value: The results of the list operation. - :vartype value: - list[~azure.mgmt.datalake.analytics.account.models.Operation] - :ivar next_link: The link (url) to the next page of results. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(OperationListResult, self).__init__(**kwargs) - self.value = None - self.next_link = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_py3.py deleted file mode 100644 index e19ecb0dbfa9..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/operation_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 Operation(Model): - """An available operation for Data Lake Analytics. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: The name of the operation. - :vartype name: str - :ivar display: The display information for the operation. - :vartype display: - ~azure.mgmt.datalake.analytics.account.models.OperationDisplay - :ivar origin: The intended executor of the operation. Possible values - include: 'user', 'system', 'user,system' - :vartype origin: str or - ~azure.mgmt.datalake.analytics.account.models.OperationOrigin - """ - - _validation = { - 'name': {'readonly': True}, - 'display': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = None - self.origin = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource.py deleted file mode 100644 index 510912ad4fe4..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (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): - """The resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifer. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'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 = None - self.tags = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource_py3.py deleted file mode 100644 index 09804482c294..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/resource_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (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): - """The resource model definition. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifer. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar location: The resource location. - :vartype location: str - :ivar tags: The resource tags. - :vartype tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'readonly': True}, - 'tags': {'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) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = None - self.tags = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information.py deleted file mode 100644 index 368a80e7fa4b..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information.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 SasTokenInformation(Model): - """SAS token information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar access_token: The access token for the associated Azure Storage - Container. - :vartype access_token: str - """ - - _validation = { - 'access_token': {'readonly': True}, - } - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SasTokenInformation, self).__init__(**kwargs) - self.access_token = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_paged.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_paged.py deleted file mode 100644 index a472878157e4..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_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 SasTokenInformationPaged(Paged): - """ - A paging container for iterating over a list of :class:`SasTokenInformation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SasTokenInformation]'} - } - - def __init__(self, *args, **kwargs): - - super(SasTokenInformationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_py3.py deleted file mode 100644 index 8343e1541167..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sas_token_information_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 SasTokenInformation(Model): - """SAS token information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar access_token: The access token for the associated Azure Storage - Container. - :vartype access_token: str - """ - - _validation = { - 'access_token': {'readonly': True}, - } - - _attribute_map = { - 'access_token': {'key': 'accessToken', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(SasTokenInformation, self).__init__(**kwargs) - self.access_token = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information.py deleted file mode 100644 index 12362cc1f87a..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information.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 .sub_resource import SubResource - - -class StorageAccountInformation(SubResource): - """Azure Storage account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar suffix: The optional suffix for the storage account. - :vartype suffix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'suffix': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(StorageAccountInformation, self).__init__(**kwargs) - self.suffix = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_paged.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_paged.py deleted file mode 100644 index 1abcfa182cfe..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_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 StorageAccountInformationPaged(Paged): - """ - A paging container for iterating over a list of :class:`StorageAccountInformation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StorageAccountInformation]'} - } - - def __init__(self, *args, **kwargs): - - super(StorageAccountInformationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_py3.py deleted file mode 100644 index ad1063cbf56c..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_account_information_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 .sub_resource_py3 import SubResource - - -class StorageAccountInformation(SubResource): - """Azure Storage account information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar suffix: The optional suffix for the storage account. - :vartype suffix: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'suffix': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(StorageAccountInformation, self).__init__(**kwargs) - self.suffix = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container.py deleted file mode 100644 index 4c16f0b3d5ef..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container.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 .sub_resource import SubResource - - -class StorageContainer(SubResource): - """Azure Storage blob container information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar last_modified_time: The last modified time of the blob container. - :vartype last_modified_time: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs): - super(StorageContainer, self).__init__(**kwargs) - self.last_modified_time = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_paged.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_paged.py deleted file mode 100644 index c18b0555a334..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_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 StorageContainerPaged(Paged): - """ - A paging container for iterating over a list of :class:`StorageContainer ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StorageContainer]'} - } - - def __init__(self, *args, **kwargs): - - super(StorageContainerPaged, self).__init__(*args, **kwargs) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_py3.py deleted file mode 100644 index 4da44660ed37..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/storage_container_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 .sub_resource_py3 import SubResource - - -class StorageContainer(SubResource): - """Azure Storage blob container information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :ivar last_modified_time: The last modified time of the blob container. - :vartype last_modified_time: datetime - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'last_modified_time': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - } - - def __init__(self, **kwargs) -> None: - super(StorageContainer, self).__init__(**kwargs) - self.last_modified_time = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource.py deleted file mode 100644 index d8797b92b154..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource.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 SubResource(Model): - """The resource model definition for a nested resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: 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'}, - } - - def __init__(self, **kwargs): - super(SubResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource_py3.py deleted file mode 100644 index 747861d8e182..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/sub_resource_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 SubResource(Model): - """The resource model definition for a nested resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: 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'}, - } - - def __init__(self, **kwargs) -> None: - super(SubResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters.py deleted file mode 100644 index 047a417c5ddb..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateComputePolicyParameters(Model): - """The parameters used to update a compute policy. - - :param object_id: The AAD object identifier for the entity to create a - policy for. - :type object_id: str - :param object_type: The type of AAD object the object identifier refers - to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(UpdateComputePolicyParameters, self).__init__(**kwargs) - self.object_id = kwargs.get('object_id', None) - self.object_type = kwargs.get('object_type', None) - self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) - self.min_priority_per_job = kwargs.get('min_priority_per_job', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters_py3.py deleted file mode 100644 index a2570cc8e131..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_parameters_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateComputePolicyParameters(Model): - """The parameters used to update a compute policy. - - :param object_id: The AAD object identifier for the entity to create a - policy for. - :type object_id: str - :param object_type: The type of AAD object the object identifier refers - to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, *, object_id: str=None, object_type=None, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: - super(UpdateComputePolicyParameters, self).__init__(**kwargs) - self.object_id = object_id - self.object_type = object_type - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters.py deleted file mode 100644 index 8fc4c11768ac..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters.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 msrest.serialization import Model - - -class UpdateComputePolicyWithAccountParameters(Model): - """The parameters used to update a compute policy while updating a Data Lake - Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the compute policy to update. - :type name: str - :param object_id: The AAD object identifier for the entity to create a - policy for. - :type object_id: str - :param object_type: The type of AAD object the object identifier refers - to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'name': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(UpdateComputePolicyWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.object_id = kwargs.get('object_id', None) - self.object_type = kwargs.get('object_type', None) - self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) - self.min_priority_per_job = kwargs.get('min_priority_per_job', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters_py3.py deleted file mode 100644 index 5d4769fdd64c..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_compute_policy_with_account_parameters_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 msrest.serialization import Model - - -class UpdateComputePolicyWithAccountParameters(Model): - """The parameters used to update a compute policy while updating a Data Lake - Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the compute policy to update. - :type name: str - :param object_id: The AAD object identifier for the entity to create a - policy for. - :type object_id: str - :param object_type: The type of AAD object the object identifier refers - to. Possible values include: 'User', 'Group', 'ServicePrincipal' - :type object_type: str or - ~azure.mgmt.datalake.analytics.account.models.AADObjectType - :param max_degree_of_parallelism_per_job: The maximum degree of - parallelism per job this user can use to submit jobs. This property, the - min priority per job property, or both must be passed. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum priority per job this user can - use to submit jobs. This property, the max degree of parallelism per job - property, or both must be passed. - :type min_priority_per_job: int - """ - - _validation = { - 'name': {'required': True}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'object_id': {'key': 'properties.objectId', 'type': 'str'}, - 'object_type': {'key': 'properties.objectType', 'type': 'str'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - } - - def __init__(self, *, name: str, object_id: str=None, object_type=None, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, **kwargs) -> None: - super(UpdateComputePolicyWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.object_id = object_id - self.object_type = object_type - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters.py deleted file mode 100644 index 28f7fa9dcbb0..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateDataLakeAnalyticsAccountParameters(Model): - """The parameters that can be used to update an existing Data Lake Analytics - account. - - :param tags: The resource tags. - :type tags: dict[str, str] - :param data_lake_store_accounts: The list of Data Lake Store accounts - associated with this account. - :type data_lake_store_accounts: - list[~azure.mgmt.datalake.analytics.account.models.UpdateDataLakeStoreWithAccountParameters] - :param storage_accounts: The list of Azure Blob storage accounts - associated with this account. - :type storage_accounts: - list[~azure.mgmt.datalake.analytics.account.models.UpdateStorageAccountWithAccountParameters] - :param compute_policies: The list of compute policies associated with this - account. - :type compute_policies: - list[~azure.mgmt.datalake.analytics.account.models.UpdateComputePolicyWithAccountParameters] - :param firewall_rules: The list of firewall rules associated with this - account. - :type firewall_rules: - list[~azure.mgmt.datalake.analytics.account.models.UpdateFirewallRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this account. Disabling the firewall does not remove existing rules, they - will just be ignored until the firewall is re-enabled. Possible values - include: 'Enabled', 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState - :param new_tier: The commitment tier to use for next month. Possible - values include: 'Consumption', 'Commitment_100AUHours', - 'Commitment_500AUHours', 'Commitment_1000AUHours', - 'Commitment_5000AUHours', 'Commitment_10000AUHours', - 'Commitment_50000AUHours', 'Commitment_100000AUHours', - 'Commitment_500000AUHours' - :type new_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :param max_job_count: The maximum supported jobs running under the account - at the same time. - :type max_job_count: int - :param max_degree_of_parallelism: The maximum supported degree of - parallelism for this account. - :type max_degree_of_parallelism: int - :param max_degree_of_parallelism_per_job: The maximum supported degree of - parallelism per job for this account. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum supported priority per job for - this account. - :type min_priority_per_job: int - :param query_store_retention: The number of days that job metadata is - retained. - :type query_store_retention: int - """ - - _validation = { - 'max_job_count': {'minimum': 1}, - 'max_degree_of_parallelism': {'minimum': 1}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - 'query_store_retention': {'maximum': 180, 'minimum': 1}, - } - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[UpdateDataLakeStoreWithAccountParameters]'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[UpdateStorageAccountWithAccountParameters]'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[UpdateComputePolicyWithAccountParameters]'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(UpdateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.data_lake_store_accounts = kwargs.get('data_lake_store_accounts', None) - self.storage_accounts = kwargs.get('storage_accounts', None) - self.compute_policies = kwargs.get('compute_policies', None) - self.firewall_rules = kwargs.get('firewall_rules', None) - self.firewall_state = kwargs.get('firewall_state', None) - self.firewall_allow_azure_ips = kwargs.get('firewall_allow_azure_ips', None) - self.new_tier = kwargs.get('new_tier', None) - self.max_job_count = kwargs.get('max_job_count', None) - self.max_degree_of_parallelism = kwargs.get('max_degree_of_parallelism', None) - self.max_degree_of_parallelism_per_job = kwargs.get('max_degree_of_parallelism_per_job', None) - self.min_priority_per_job = kwargs.get('min_priority_per_job', None) - self.query_store_retention = kwargs.get('query_store_retention', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters_py3.py deleted file mode 100644 index 298fc61ee7e1..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_analytics_account_parameters_py3.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateDataLakeAnalyticsAccountParameters(Model): - """The parameters that can be used to update an existing Data Lake Analytics - account. - - :param tags: The resource tags. - :type tags: dict[str, str] - :param data_lake_store_accounts: The list of Data Lake Store accounts - associated with this account. - :type data_lake_store_accounts: - list[~azure.mgmt.datalake.analytics.account.models.UpdateDataLakeStoreWithAccountParameters] - :param storage_accounts: The list of Azure Blob storage accounts - associated with this account. - :type storage_accounts: - list[~azure.mgmt.datalake.analytics.account.models.UpdateStorageAccountWithAccountParameters] - :param compute_policies: The list of compute policies associated with this - account. - :type compute_policies: - list[~azure.mgmt.datalake.analytics.account.models.UpdateComputePolicyWithAccountParameters] - :param firewall_rules: The list of firewall rules associated with this - account. - :type firewall_rules: - list[~azure.mgmt.datalake.analytics.account.models.UpdateFirewallRuleWithAccountParameters] - :param firewall_state: The current state of the IP address firewall for - this account. Disabling the firewall does not remove existing rules, they - will just be ignored until the firewall is re-enabled. Possible values - include: 'Enabled', 'Disabled' - :type firewall_state: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallState - :param firewall_allow_azure_ips: The current state of allowing or - disallowing IPs originating within Azure through the firewall. If the - firewall is disabled, this is not enforced. Possible values include: - 'Enabled', 'Disabled' - :type firewall_allow_azure_ips: str or - ~azure.mgmt.datalake.analytics.account.models.FirewallAllowAzureIpsState - :param new_tier: The commitment tier to use for next month. Possible - values include: 'Consumption', 'Commitment_100AUHours', - 'Commitment_500AUHours', 'Commitment_1000AUHours', - 'Commitment_5000AUHours', 'Commitment_10000AUHours', - 'Commitment_50000AUHours', 'Commitment_100000AUHours', - 'Commitment_500000AUHours' - :type new_tier: str or - ~azure.mgmt.datalake.analytics.account.models.TierType - :param max_job_count: The maximum supported jobs running under the account - at the same time. - :type max_job_count: int - :param max_degree_of_parallelism: The maximum supported degree of - parallelism for this account. - :type max_degree_of_parallelism: int - :param max_degree_of_parallelism_per_job: The maximum supported degree of - parallelism per job for this account. - :type max_degree_of_parallelism_per_job: int - :param min_priority_per_job: The minimum supported priority per job for - this account. - :type min_priority_per_job: int - :param query_store_retention: The number of days that job metadata is - retained. - :type query_store_retention: int - """ - - _validation = { - 'max_job_count': {'minimum': 1}, - 'max_degree_of_parallelism': {'minimum': 1}, - 'max_degree_of_parallelism_per_job': {'minimum': 1}, - 'min_priority_per_job': {'minimum': 1}, - 'query_store_retention': {'maximum': 180, 'minimum': 1}, - } - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'data_lake_store_accounts': {'key': 'properties.dataLakeStoreAccounts', 'type': '[UpdateDataLakeStoreWithAccountParameters]'}, - 'storage_accounts': {'key': 'properties.storageAccounts', 'type': '[UpdateStorageAccountWithAccountParameters]'}, - 'compute_policies': {'key': 'properties.computePolicies', 'type': '[UpdateComputePolicyWithAccountParameters]'}, - 'firewall_rules': {'key': 'properties.firewallRules', 'type': '[UpdateFirewallRuleWithAccountParameters]'}, - 'firewall_state': {'key': 'properties.firewallState', 'type': 'FirewallState'}, - 'firewall_allow_azure_ips': {'key': 'properties.firewallAllowAzureIps', 'type': 'FirewallAllowAzureIpsState'}, - 'new_tier': {'key': 'properties.newTier', 'type': 'TierType'}, - 'max_job_count': {'key': 'properties.maxJobCount', 'type': 'int'}, - 'max_degree_of_parallelism': {'key': 'properties.maxDegreeOfParallelism', 'type': 'int'}, - 'max_degree_of_parallelism_per_job': {'key': 'properties.maxDegreeOfParallelismPerJob', 'type': 'int'}, - 'min_priority_per_job': {'key': 'properties.minPriorityPerJob', 'type': 'int'}, - 'query_store_retention': {'key': 'properties.queryStoreRetention', 'type': 'int'}, - } - - def __init__(self, *, tags=None, data_lake_store_accounts=None, storage_accounts=None, compute_policies=None, firewall_rules=None, firewall_state=None, firewall_allow_azure_ips=None, new_tier=None, max_job_count: int=None, max_degree_of_parallelism: int=None, max_degree_of_parallelism_per_job: int=None, min_priority_per_job: int=None, query_store_retention: int=None, **kwargs) -> None: - super(UpdateDataLakeAnalyticsAccountParameters, self).__init__(**kwargs) - self.tags = tags - self.data_lake_store_accounts = data_lake_store_accounts - self.storage_accounts = storage_accounts - self.compute_policies = compute_policies - self.firewall_rules = firewall_rules - self.firewall_state = firewall_state - self.firewall_allow_azure_ips = firewall_allow_azure_ips - self.new_tier = new_tier - self.max_job_count = max_job_count - self.max_degree_of_parallelism = max_degree_of_parallelism - self.max_degree_of_parallelism_per_job = max_degree_of_parallelism_per_job - self.min_priority_per_job = min_priority_per_job - self.query_store_retention = query_store_retention diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters.py deleted file mode 100644 index 060a882dbc61..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters.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 UpdateDataLakeStoreWithAccountParameters(Model): - """The parameters used to update a Data Lake Store account while updating a - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Data Lake Store account to - update. - :type name: str - :param suffix: The optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateDataLakeStoreWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.suffix = kwargs.get('suffix', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters_py3.py deleted file mode 100644 index d80292450760..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_data_lake_store_with_account_parameters_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 UpdateDataLakeStoreWithAccountParameters(Model): - """The parameters used to update a Data Lake Store account while updating a - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Data Lake Store account to - update. - :type name: str - :param suffix: The optional suffix for the Data Lake Store account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, *, name: str, suffix: str=None, **kwargs) -> None: - super(UpdateDataLakeStoreWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.suffix = suffix diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters.py deleted file mode 100644 index 1419fff19fd8..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters.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 UpdateFirewallRuleParameters(Model): - """The parameters used to update a firewall rule. - - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters_py3.py deleted file mode 100644 index 1abcaeaa9b11..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_parameters_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 UpdateFirewallRuleParameters(Model): - """The parameters used to update a firewall rule. - - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _attribute_map = { - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: - super(UpdateFirewallRuleParameters, self).__init__(**kwargs) - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters.py deleted file mode 100644 index 3a4375928949..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters.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 UpdateFirewallRuleWithAccountParameters(Model): - """The parameters used to update a firewall rule while updating a Data Lake - Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to update. - :type name: str - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.start_ip_address = kwargs.get('start_ip_address', None) - self.end_ip_address = kwargs.get('end_ip_address', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters_py3.py deleted file mode 100644 index dfe7272b52f1..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_firewall_rule_with_account_parameters_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 UpdateFirewallRuleWithAccountParameters(Model): - """The parameters used to update a firewall rule while updating a Data Lake - Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the firewall rule to update. - :type name: str - :param start_ip_address: The start IP address for the firewall rule. This - can be either ipv4 or ipv6. Start and End should be in the same protocol. - :type start_ip_address: str - :param end_ip_address: The end IP address for the firewall rule. This can - be either ipv4 or ipv6. Start and End should be in the same protocol. - :type end_ip_address: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'start_ip_address': {'key': 'properties.startIpAddress', 'type': 'str'}, - 'end_ip_address': {'key': 'properties.endIpAddress', 'type': 'str'}, - } - - def __init__(self, *, name: str, start_ip_address: str=None, end_ip_address: str=None, **kwargs) -> None: - super(UpdateFirewallRuleWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.start_ip_address = start_ip_address - self.end_ip_address = end_ip_address diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters.py deleted file mode 100644 index 0681ed48e9c5..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters.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 UpdateStorageAccountParameters(Model): - """The parameters used to update an Azure Storage account. - - :param access_key: The updated access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _attribute_map = { - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateStorageAccountParameters, self).__init__(**kwargs) - self.access_key = kwargs.get('access_key', None) - self.suffix = kwargs.get('suffix', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters_py3.py deleted file mode 100644 index f9620b50bfa2..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_parameters_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 UpdateStorageAccountParameters(Model): - """The parameters used to update an Azure Storage account. - - :param access_key: The updated access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _attribute_map = { - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, *, access_key: str=None, suffix: str=None, **kwargs) -> None: - super(UpdateStorageAccountParameters, self).__init__(**kwargs) - self.access_key = access_key - self.suffix = suffix diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters.py deleted file mode 100644 index 05a9fe881cb3..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters.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 UpdateStorageAccountWithAccountParameters(Model): - """The parameters used to update an Azure Storage account while updating a - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Azure Storage account to - update. - :type name: str - :param access_key: The updated access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateStorageAccountWithAccountParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.access_key = kwargs.get('access_key', None) - self.suffix = kwargs.get('suffix', None) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters_py3.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters_py3.py deleted file mode 100644 index ff4d36845d75..000000000000 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/update_storage_account_with_account_parameters_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 UpdateStorageAccountWithAccountParameters(Model): - """The parameters used to update an Azure Storage account while updating a - Data Lake Analytics account. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The unique name of the Azure Storage account to - update. - :type name: str - :param access_key: The updated access key associated with this Azure - Storage account that will be used to connect to it. - :type access_key: str - :param suffix: The optional suffix for the storage account. - :type suffix: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'access_key': {'key': 'properties.accessKey', 'type': 'str'}, - 'suffix': {'key': 'properties.suffix', 'type': 'str'}, - } - - def __init__(self, *, name: str, access_key: str=None, suffix: str=None, **kwargs) -> None: - super(UpdateStorageAccountWithAccountParameters, self).__init__(**kwargs) - self.name = name - self.access_key = access_key - self.suffix = suffix diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/__init__.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/__init__.py index 62d3e551bf8c..a607a3bc7649 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/__init__.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/__init__.py @@ -9,13 +9,13 @@ # regenerated. # -------------------------------------------------------------------------- -from .accounts_operations import AccountsOperations -from .data_lake_store_accounts_operations import DataLakeStoreAccountsOperations -from .storage_accounts_operations import StorageAccountsOperations -from .compute_policies_operations import ComputePoliciesOperations -from .firewall_rules_operations import FirewallRulesOperations -from .operations import Operations -from .locations_operations import LocationsOperations +from ._accounts_operations import AccountsOperations +from ._data_lake_store_accounts_operations import DataLakeStoreAccountsOperations +from ._storage_accounts_operations import StorageAccountsOperations +from ._compute_policies_operations import ComputePoliciesOperations +from ._firewall_rules_operations import FirewallRulesOperations +from ._operations import Operations +from ._locations_operations import LocationsOperations __all__ = [ 'AccountsOperations', diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/accounts_operations.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_accounts_operations.py similarity index 88% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/accounts_operations.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_accounts_operations.py index 13788c333704..c9a7b1205e86 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/accounts_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_accounts_operations.py @@ -11,7 +11,6 @@ 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 @@ -21,11 +20,13 @@ class AccountsOperations(object): """AccountsOperations 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: Client Api Version. Constant value: "2016-11-01". + :ivar api_version: Client Api Version. Constant value: "2019-11-01-preview". """ models = models @@ -35,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-11-01" + self.api_version = "2019-11-01-preview" self.config = config @@ -72,10 +73,10 @@ def list( :return: An iterator like instance of DataLakeAnalyticsAccountBasic :rtype: ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountBasicPaged[~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountBasic] - :raises: :class:`CloudError` + :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'] @@ -106,7 +107,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -115,24 +116,24 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts'} @@ -172,10 +173,10 @@ def list_by_resource_group( :return: An iterator like instance of DataLakeAnalyticsAccountBasic :rtype: ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountBasicPaged[~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountBasic] - :raises: :class:`CloudError` + :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'] @@ -207,7 +208,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -216,24 +217,24 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DataLakeAnalyticsAccountBasicPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts'} @@ -256,6 +257,7 @@ def _create_initial( # 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()) @@ -268,14 +270,11 @@ def _create_initial( body_content = self._serialize.body(parameters, 'CreateDataLakeAnalyticsAccountParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None @@ -315,7 +314,8 @@ def create( ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccount] or ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccount]] - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ raw_result = self._create_initial( resource_group_name=resource_group_name, @@ -361,7 +361,8 @@ def get( :rtype: ~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccount or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.get.metadata['url'] @@ -378,7 +379,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -387,16 +388,13 @@ def get( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DataLakeAnalyticsAccount', response) @@ -425,6 +423,7 @@ def _update_initial( # 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()) @@ -440,14 +439,11 @@ def _update_initial( body_content = None # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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, 201, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + raise models.ErrorResponseException(self._deserialize, response) deserialized = None @@ -489,7 +485,8 @@ def update( ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccount] or ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccount]] - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ raw_result = self._update_initial( resource_group_name=resource_group_name, @@ -536,7 +533,6 @@ def _delete_initial( # 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: @@ -545,13 +541,11 @@ def _delete_initial( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) @@ -575,7 +569,8 @@ def delete( ClientRawResponse if raw==True :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ raw_result = self._delete_initial( resource_group_name=resource_group_name, @@ -616,7 +611,8 @@ def check_name_availability( :rtype: ~azure.mgmt.datalake.analytics.account.models.NameAvailabilityInformation or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ parameters = models.CheckNameAvailabilityParameters(name=name) @@ -634,6 +630,7 @@ def check_name_availability( # 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()) @@ -646,17 +643,13 @@ def check_name_availability( body_content = self._serialize.body(parameters, 'CheckNameAvailabilityParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('NameAvailabilityInformation', response) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/compute_policies_operations.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_compute_policies_operations.py similarity index 86% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/compute_policies_operations.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_compute_policies_operations.py index 03ef3deea4f2..20c50ecb223a 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/compute_policies_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_compute_policies_operations.py @@ -11,7 +11,6 @@ import uuid from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError from .. import models @@ -19,11 +18,13 @@ class ComputePoliciesOperations(object): """ComputePoliciesOperations 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: Client Api Version. Constant value: "2016-11-01". + :ivar api_version: Client Api Version. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-11-01" + self.api_version = "2019-11-01-preview" self.config = config @@ -54,10 +55,10 @@ def list_by_account( :return: An iterator like instance of ComputePolicy :rtype: ~azure.mgmt.datalake.analytics.account.models.ComputePolicyPaged[~azure.mgmt.datalake.analytics.account.models.ComputePolicy] - :raises: :class:`CloudError` + :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_account.metadata['url'] @@ -78,7 +79,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -87,24 +88,24 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.ComputePolicyPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ComputePolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ComputePolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies'} @@ -135,7 +136,8 @@ def create_or_update( :return: ComputePolicy or ClientRawResponse if raw=true :rtype: ~azure.mgmt.datalake.analytics.account.models.ComputePolicy or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.create_or_update.metadata['url'] @@ -153,6 +155,7 @@ def create_or_update( # 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()) @@ -165,17 +168,13 @@ def create_or_update( body_content = self._serialize.body(parameters, 'CreateOrUpdateComputePolicyParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ComputePolicy', response) @@ -205,7 +204,8 @@ def get( :return: ComputePolicy or ClientRawResponse if raw=true :rtype: ~azure.mgmt.datalake.analytics.account.models.ComputePolicy or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.get.metadata['url'] @@ -223,7 +223,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -232,16 +232,13 @@ def get( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ComputePolicy', response) @@ -273,7 +270,8 @@ def update( :return: ComputePolicy or ClientRawResponse if raw=true :rtype: ~azure.mgmt.datalake.analytics.account.models.ComputePolicy or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.update.metadata['url'] @@ -291,6 +289,7 @@ def update( # 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()) @@ -306,17 +305,13 @@ def update( body_content = None # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ComputePolicy', response) @@ -345,7 +340,8 @@ def delete( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.delete.metadata['url'] @@ -363,7 +359,6 @@ def delete( # 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: @@ -372,13 +367,11 @@ def delete( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_data_lake_store_accounts_operations.py similarity index 86% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_data_lake_store_accounts_operations.py index f9d69395230c..7ab11eb99760 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/data_lake_store_accounts_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_data_lake_store_accounts_operations.py @@ -11,7 +11,6 @@ import uuid from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError from .. import models @@ -19,11 +18,13 @@ class DataLakeStoreAccountsOperations(object): """DataLakeStoreAccountsOperations 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: Client Api Version. Constant value: "2016-11-01". + :ivar api_version: Client Api Version. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-11-01" + self.api_version = "2019-11-01-preview" self.config = config @@ -75,10 +76,10 @@ def list_by_account( :return: An iterator like instance of DataLakeStoreAccountInformation :rtype: ~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformationPaged[~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation] - :raises: :class:`CloudError` + :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_account.metadata['url'] @@ -111,7 +112,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -120,24 +121,24 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.DataLakeStoreAccountInformationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.DataLakeStoreAccountInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.DataLakeStoreAccountInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts'} @@ -163,7 +164,8 @@ def add( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ parameters = None if suffix is not None: @@ -200,14 +202,11 @@ def add( body_content = None # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) @@ -236,7 +235,8 @@ def get( :rtype: ~azure.mgmt.datalake.analytics.account.models.DataLakeStoreAccountInformation or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.get.metadata['url'] @@ -254,7 +254,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -263,16 +263,13 @@ def get( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('DataLakeStoreAccountInformation', response) @@ -302,7 +299,8 @@ def delete( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.delete.metadata['url'] @@ -320,7 +318,6 @@ def delete( # 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: @@ -329,13 +326,11 @@ def delete( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + if response.status_code not in [200, 204]: + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/firewall_rules_operations.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_firewall_rules_operations.py similarity index 86% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/firewall_rules_operations.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_firewall_rules_operations.py index 022615c409c2..783ef5f347c9 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/firewall_rules_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_firewall_rules_operations.py @@ -11,7 +11,6 @@ import uuid from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError from .. import models @@ -19,11 +18,13 @@ class FirewallRulesOperations(object): """FirewallRulesOperations 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: Client Api Version. Constant value: "2016-11-01". + :ivar api_version: Client Api Version. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-11-01" + self.api_version = "2019-11-01-preview" self.config = config @@ -54,10 +55,10 @@ def list_by_account( :return: An iterator like instance of FirewallRule :rtype: ~azure.mgmt.datalake.analytics.account.models.FirewallRulePaged[~azure.mgmt.datalake.analytics.account.models.FirewallRule] - :raises: :class:`CloudError` + :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_account.metadata['url'] @@ -78,7 +79,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -87,24 +88,24 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.FirewallRulePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules'} @@ -138,7 +139,8 @@ def create_or_update( :return: FirewallRule or ClientRawResponse if raw=true :rtype: ~azure.mgmt.datalake.analytics.account.models.FirewallRule or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ parameters = models.CreateOrUpdateFirewallRuleParameters(start_ip_address=start_ip_address, end_ip_address=end_ip_address) @@ -158,6 +160,7 @@ def create_or_update( # 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()) @@ -170,17 +173,13 @@ def create_or_update( body_content = self._serialize.body(parameters, 'CreateOrUpdateFirewallRuleParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FirewallRule', response) @@ -209,7 +208,8 @@ def get( :return: FirewallRule or ClientRawResponse if raw=true :rtype: ~azure.mgmt.datalake.analytics.account.models.FirewallRule or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.get.metadata['url'] @@ -227,7 +227,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -236,16 +236,13 @@ def get( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FirewallRule', response) @@ -282,7 +279,8 @@ def update( :return: FirewallRule or ClientRawResponse if raw=true :rtype: ~azure.mgmt.datalake.analytics.account.models.FirewallRule or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ parameters = None if start_ip_address is not None or end_ip_address is not None: @@ -304,6 +302,7 @@ def update( # 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()) @@ -319,17 +318,13 @@ def update( body_content = None # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('FirewallRule', response) @@ -358,7 +353,8 @@ def delete( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.delete.metadata['url'] @@ -376,7 +372,6 @@ def delete( # 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: @@ -385,13 +380,11 @@ def delete( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/locations_operations.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_locations_operations.py similarity index 83% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/locations_operations.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_locations_operations.py index a1c3c7dad15a..c4a29cb250ff 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/locations_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_locations_operations.py @@ -11,7 +11,6 @@ import uuid from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError from .. import models @@ -19,11 +18,13 @@ class LocationsOperations(object): """LocationsOperations 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: Client Api Version. Constant value: "2016-11-01". + :ivar api_version: Client Api Version. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-11-01" + self.api_version = "2019-11-01-preview" self.config = config @@ -53,7 +54,8 @@ def get_capability( :rtype: ~azure.mgmt.datalake.analytics.account.models.CapabilityInformation or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.get_capability.metadata['url'] @@ -69,7 +71,7 @@ def get_capability( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -78,16 +80,13 @@ def get_capability( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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, 404]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('CapabilityInformation', response) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/operations.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_operations.py similarity index 80% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/operations.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_operations.py index b64c794c119d..ca2c0f865add 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/operations.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_operations.py @@ -11,7 +11,6 @@ import uuid from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError from .. import models @@ -19,11 +18,13 @@ 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: Client Api Version. Constant value: "2016-11-01". + :ivar api_version: Client Api Version. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-11-01" + self.api_version = "2019-11-01-preview" self.config = config @@ -50,7 +51,8 @@ def list( :rtype: ~azure.mgmt.datalake.analytics.account.models.OperationListResult or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.list.metadata['url'] @@ -61,7 +63,7 @@ def list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -70,16 +72,13 @@ def list( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('OperationListResult', response) diff --git a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/storage_accounts_operations.py b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_storage_accounts_operations.py similarity index 85% rename from sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/storage_accounts_operations.py rename to sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_storage_accounts_operations.py index 36d1afb96e81..99009107a1ea 100644 --- a/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/storage_accounts_operations.py +++ b/sdk/datalake/azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/operations/_storage_accounts_operations.py @@ -11,7 +11,6 @@ import uuid from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError from .. import models @@ -19,11 +18,13 @@ class StorageAccountsOperations(object): """StorageAccountsOperations 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: Client Api Version. Constant value: "2016-11-01". + :ivar api_version: Client Api Version. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-11-01" + self.api_version = "2019-11-01-preview" self.config = config @@ -75,10 +76,10 @@ def list_by_account( :return: An iterator like instance of StorageAccountInformation :rtype: ~azure.mgmt.datalake.analytics.account.models.StorageAccountInformationPaged[~azure.mgmt.datalake.analytics.account.models.StorageAccountInformation] - :raises: :class:`CloudError` + :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_account.metadata['url'] @@ -111,7 +112,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -120,30 +121,30 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.StorageAccountInformationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.StorageAccountInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.StorageAccountInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts'} def add( - self, resource_group_name, account_name, storage_account_name, access_key, suffix=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, account_name, storage_account_name, access_key, suffix="azuredatalakestore.net", custom_headers=None, raw=False, **operation_config): """Updates the specified Data Lake Analytics account to add an Azure Storage account. @@ -166,7 +167,8 @@ def add( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ parameters = models.AddStorageAccountParameters(access_key=access_key, suffix=suffix) @@ -198,14 +200,11 @@ def add( body_content = self._serialize.body(parameters, 'AddStorageAccountParameters') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) @@ -233,7 +232,8 @@ def get( :rtype: ~azure.mgmt.datalake.analytics.account.models.StorageAccountInformation or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.get.metadata['url'] @@ -251,7 +251,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -260,16 +260,13 @@ def get( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StorageAccountInformation', response) @@ -303,7 +300,8 @@ def update( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ parameters = None if access_key is not None or suffix is not None: @@ -340,14 +338,11 @@ def update( body_content = None # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) @@ -373,7 +368,8 @@ def delete( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.delete.metadata['url'] @@ -391,7 +387,6 @@ def delete( # 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: @@ -400,13 +395,11 @@ def delete( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp + raise models.ErrorResponseException(self._deserialize, response) if raw: client_raw_response = ClientRawResponse(None, response) @@ -434,10 +427,10 @@ def list_storage_containers( :return: An iterator like instance of StorageContainer :rtype: ~azure.mgmt.datalake.analytics.account.models.StorageContainerPaged[~azure.mgmt.datalake.analytics.account.models.StorageContainer] - :raises: :class:`CloudError` + :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_storage_containers.metadata['url'] @@ -459,7 +452,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -468,24 +461,24 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.StorageContainerPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.StorageContainerPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.StorageContainerPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_storage_containers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers'} @@ -513,7 +506,8 @@ def get_storage_container( :return: StorageContainer or ClientRawResponse if raw=true :rtype: ~azure.mgmt.datalake.analytics.account.models.StorageContainer or ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` + :raises: + :class:`ErrorResponseException` """ # Construct URL url = self.get_storage_container.metadata['url'] @@ -532,7 +526,7 @@ def get_storage_container( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -541,16 +535,13 @@ def get_storage_container( 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) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + 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 + raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StorageContainer', response) @@ -584,10 +575,10 @@ def list_sas_tokens( :return: An iterator like instance of SasTokenInformation :rtype: ~azure.mgmt.datalake.analytics.account.models.SasTokenInformationPaged[~azure.mgmt.datalake.analytics.account.models.SasTokenInformation] - :raises: :class:`CloudError` + :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_sas_tokens.metadata['url'] @@ -610,7 +601,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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: @@ -619,24 +610,24 @@ def internal_paging(next_link=None, raw=False): 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) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.post(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 + raise models.ErrorResponseException(self._deserialize, response) return response # Deserialize response - deserialized = models.SasTokenInformationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.SasTokenInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.SasTokenInformationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_sas_tokens.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers/{containerName}/listSasTokens'}