diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/HISTORY.rst b/sdk/hdinsight/azure-mgmt-hdinsight/HISTORY.rst index 1e9b9b8ce8b0..71dcffc74e90 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/HISTORY.rst +++ b/sdk/hdinsight/azure-mgmt-hdinsight/HISTORY.rst @@ -3,6 +3,14 @@ Release History =============== +1.1.0 (2019-06-17) +++++++++++++++++++ + +**Features** + +- Model ApplicationGetHttpsEndpoint has a new parameter disable_gateway_auth +- Model ApplicationGetHttpsEndpoint has a new parameter sub_domain_suffix + 1.0.0 (2019-04-08) ++++++++++++++++++ diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/__init__.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/__init__.py index d2acd294f586..60686859f311 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/__init__.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .hd_insight_management_client import HDInsightManagementClient -from .version import VERSION +from ._configuration import HDInsightManagementClientConfiguration +from ._hd_insight_management_client import HDInsightManagementClient +__all__ = ['HDInsightManagementClient', 'HDInsightManagementClientConfiguration'] -__all__ = ['HDInsightManagementClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_configuration.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_configuration.py new file mode 100644 index 000000000000..706f62d05a15 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_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 HDInsightManagementClientConfiguration(AzureConfiguration): + """Configuration for HDInsightManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The 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(HDInsightManagementClientConfiguration, 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-hdinsight/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_hd_insight_management_client.py similarity index 65% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_hd_insight_management_client.py index 817668024088..e88400187f14 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_hd_insight_management_client.py @@ -11,51 +11,17 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.clusters_operations import ClustersOperations -from .operations.applications_operations import ApplicationsOperations -from .operations.locations_operations import LocationsOperations -from .operations.configurations_operations import ConfigurationsOperations -from .operations.extensions_operations import ExtensionsOperations -from .operations.script_actions_operations import ScriptActionsOperations -from .operations.script_execution_history_operations import ScriptExecutionHistoryOperations -from .operations.operations import Operations -from . import models - - -class HDInsightManagementClientConfiguration(AzureConfiguration): - """Configuration for HDInsightManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: The 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(HDInsightManagementClientConfiguration, self).__init__(base_url) - self.add_user_agent('azure-mgmt-hdinsight/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import HDInsightManagementClientConfiguration +from .operations import ClustersOperations +from .operations import ApplicationsOperations +from .operations import LocationsOperations +from .operations import ConfigurationsOperations +from .operations import ExtensionsOperations +from .operations import ScriptActionsOperations +from .operations import ScriptExecutionHistoryOperations +from .operations import Operations +from . import models class HDInsightManagementClient(SDKClient): diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py index afc85ab41a95..abd6f1bbe0d7 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py @@ -10,120 +10,120 @@ # -------------------------------------------------------------------------- try: - from .cluster_definition_py3 import ClusterDefinition - from .security_profile_py3 import SecurityProfile - from .hardware_profile_py3 import HardwareProfile - from .virtual_network_profile_py3 import VirtualNetworkProfile - from .data_disks_groups_py3 import DataDisksGroups - from .ssh_public_key_py3 import SshPublicKey - from .ssh_profile_py3 import SshProfile - from .linux_operating_system_profile_py3 import LinuxOperatingSystemProfile - from .os_profile_py3 import OsProfile - from .script_action_py3 import ScriptAction - from .role_py3 import Role - from .compute_profile_py3 import ComputeProfile - from .storage_account_py3 import StorageAccount - from .storage_profile_py3 import StorageProfile - from .disk_encryption_properties_py3 import DiskEncryptionProperties - from .cluster_create_properties_py3 import ClusterCreateProperties - from .cluster_identity_user_assigned_identities_value_py3 import ClusterIdentityUserAssignedIdentitiesValue - from .cluster_identity_py3 import ClusterIdentity - from .cluster_create_parameters_extended_py3 import ClusterCreateParametersExtended - from .cluster_patch_parameters_py3 import ClusterPatchParameters - from .quota_info_py3 import QuotaInfo - from .errors_py3 import Errors - from .connectivity_endpoint_py3 import ConnectivityEndpoint - from .cluster_get_properties_py3 import ClusterGetProperties - from .cluster_py3 import Cluster - from .runtime_script_action_py3 import RuntimeScriptAction - from .execute_script_action_parameters_py3 import ExecuteScriptActionParameters - from .cluster_list_persisted_script_actions_result_py3 import ClusterListPersistedScriptActionsResult - from .script_action_execution_summary_py3 import ScriptActionExecutionSummary - from .runtime_script_action_detail_py3 import RuntimeScriptActionDetail - from .cluster_list_runtime_script_action_detail_result_py3 import ClusterListRuntimeScriptActionDetailResult - from .cluster_resize_parameters_py3 import ClusterResizeParameters - from .cluster_disk_encryption_parameters_py3 import ClusterDiskEncryptionParameters - from .update_gateway_settings_parameters_py3 import UpdateGatewaySettingsParameters - from .gateway_settings_py3 import GatewaySettings - from .operation_resource_py3 import OperationResource - from .resource_py3 import Resource - from .tracked_resource_py3 import TrackedResource - from .proxy_resource_py3 import ProxyResource - from .error_response_py3 import ErrorResponse, ErrorResponseException - from .application_get_https_endpoint_py3 import ApplicationGetHttpsEndpoint - from .application_get_endpoint_py3 import ApplicationGetEndpoint - from .application_properties_py3 import ApplicationProperties - from .application_py3 import Application - from .localized_name_py3 import LocalizedName - from .usage_py3 import Usage - from .usages_list_result_py3 import UsagesListResult - from .cluster_configurations_py3 import ClusterConfigurations - from .extension_py3 import Extension - from .cluster_monitoring_response_py3 import ClusterMonitoringResponse - from .cluster_monitoring_request_py3 import ClusterMonitoringRequest - from .script_action_persisted_get_response_spec_py3 import ScriptActionPersistedGetResponseSpec - from .operation_display_py3 import OperationDisplay - from .operation_py3 import Operation + from ._models_py3 import Application + from ._models_py3 import ApplicationGetEndpoint + from ._models_py3 import ApplicationGetHttpsEndpoint + from ._models_py3 import ApplicationProperties + from ._models_py3 import Cluster + from ._models_py3 import ClusterConfigurations + from ._models_py3 import ClusterCreateParametersExtended + from ._models_py3 import ClusterCreateProperties + from ._models_py3 import ClusterDefinition + from ._models_py3 import ClusterDiskEncryptionParameters + from ._models_py3 import ClusterGetProperties + from ._models_py3 import ClusterIdentity + from ._models_py3 import ClusterIdentityUserAssignedIdentitiesValue + from ._models_py3 import ClusterListPersistedScriptActionsResult + from ._models_py3 import ClusterListRuntimeScriptActionDetailResult + from ._models_py3 import ClusterMonitoringRequest + from ._models_py3 import ClusterMonitoringResponse + from ._models_py3 import ClusterPatchParameters + from ._models_py3 import ClusterResizeParameters + from ._models_py3 import ComputeProfile + from ._models_py3 import ConnectivityEndpoint + from ._models_py3 import DataDisksGroups + from ._models_py3 import DiskEncryptionProperties + from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import Errors + from ._models_py3 import ExecuteScriptActionParameters + from ._models_py3 import Extension + from ._models_py3 import GatewaySettings + from ._models_py3 import HardwareProfile + from ._models_py3 import LinuxOperatingSystemProfile + from ._models_py3 import LocalizedName + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OperationResource + from ._models_py3 import OsProfile + from ._models_py3 import ProxyResource + from ._models_py3 import QuotaInfo + from ._models_py3 import Resource + from ._models_py3 import Role + from ._models_py3 import RuntimeScriptAction + from ._models_py3 import RuntimeScriptActionDetail + from ._models_py3 import ScriptAction + from ._models_py3 import ScriptActionExecutionSummary + from ._models_py3 import ScriptActionPersistedGetResponseSpec + from ._models_py3 import SecurityProfile + from ._models_py3 import SshProfile + from ._models_py3 import SshPublicKey + from ._models_py3 import StorageAccount + from ._models_py3 import StorageProfile + from ._models_py3 import TrackedResource + from ._models_py3 import UpdateGatewaySettingsParameters + from ._models_py3 import Usage + from ._models_py3 import UsagesListResult + from ._models_py3 import VirtualNetworkProfile except (SyntaxError, ImportError): - from .cluster_definition import ClusterDefinition - from .security_profile import SecurityProfile - from .hardware_profile import HardwareProfile - from .virtual_network_profile import VirtualNetworkProfile - from .data_disks_groups import DataDisksGroups - from .ssh_public_key import SshPublicKey - from .ssh_profile import SshProfile - from .linux_operating_system_profile import LinuxOperatingSystemProfile - from .os_profile import OsProfile - from .script_action import ScriptAction - from .role import Role - from .compute_profile import ComputeProfile - from .storage_account import StorageAccount - from .storage_profile import StorageProfile - from .disk_encryption_properties import DiskEncryptionProperties - from .cluster_create_properties import ClusterCreateProperties - from .cluster_identity_user_assigned_identities_value import ClusterIdentityUserAssignedIdentitiesValue - from .cluster_identity import ClusterIdentity - from .cluster_create_parameters_extended import ClusterCreateParametersExtended - from .cluster_patch_parameters import ClusterPatchParameters - from .quota_info import QuotaInfo - from .errors import Errors - from .connectivity_endpoint import ConnectivityEndpoint - from .cluster_get_properties import ClusterGetProperties - from .cluster import Cluster - from .runtime_script_action import RuntimeScriptAction - from .execute_script_action_parameters import ExecuteScriptActionParameters - from .cluster_list_persisted_script_actions_result import ClusterListPersistedScriptActionsResult - from .script_action_execution_summary import ScriptActionExecutionSummary - from .runtime_script_action_detail import RuntimeScriptActionDetail - from .cluster_list_runtime_script_action_detail_result import ClusterListRuntimeScriptActionDetailResult - from .cluster_resize_parameters import ClusterResizeParameters - from .cluster_disk_encryption_parameters import ClusterDiskEncryptionParameters - from .update_gateway_settings_parameters import UpdateGatewaySettingsParameters - from .gateway_settings import GatewaySettings - from .operation_resource import OperationResource - from .resource import Resource - from .tracked_resource import TrackedResource - from .proxy_resource import ProxyResource - from .error_response import ErrorResponse, ErrorResponseException - from .application_get_https_endpoint import ApplicationGetHttpsEndpoint - from .application_get_endpoint import ApplicationGetEndpoint - from .application_properties import ApplicationProperties - from .application import Application - from .localized_name import LocalizedName - from .usage import Usage - from .usages_list_result import UsagesListResult - from .cluster_configurations import ClusterConfigurations - from .extension import Extension - from .cluster_monitoring_response import ClusterMonitoringResponse - from .cluster_monitoring_request import ClusterMonitoringRequest - from .script_action_persisted_get_response_spec import ScriptActionPersistedGetResponseSpec - from .operation_display import OperationDisplay - from .operation import Operation -from .cluster_paged import ClusterPaged -from .application_paged import ApplicationPaged -from .runtime_script_action_detail_paged import RuntimeScriptActionDetailPaged -from .operation_paged import OperationPaged -from .hd_insight_management_client_enums import ( + from ._models import Application + from ._models import ApplicationGetEndpoint + from ._models import ApplicationGetHttpsEndpoint + from ._models import ApplicationProperties + from ._models import Cluster + from ._models import ClusterConfigurations + from ._models import ClusterCreateParametersExtended + from ._models import ClusterCreateProperties + from ._models import ClusterDefinition + from ._models import ClusterDiskEncryptionParameters + from ._models import ClusterGetProperties + from ._models import ClusterIdentity + from ._models import ClusterIdentityUserAssignedIdentitiesValue + from ._models import ClusterListPersistedScriptActionsResult + from ._models import ClusterListRuntimeScriptActionDetailResult + from ._models import ClusterMonitoringRequest + from ._models import ClusterMonitoringResponse + from ._models import ClusterPatchParameters + from ._models import ClusterResizeParameters + from ._models import ComputeProfile + from ._models import ConnectivityEndpoint + from ._models import DataDisksGroups + from ._models import DiskEncryptionProperties + from ._models import ErrorResponse, ErrorResponseException + from ._models import Errors + from ._models import ExecuteScriptActionParameters + from ._models import Extension + from ._models import GatewaySettings + from ._models import HardwareProfile + from ._models import LinuxOperatingSystemProfile + from ._models import LocalizedName + from ._models import Operation + from ._models import OperationDisplay + from ._models import OperationResource + from ._models import OsProfile + from ._models import ProxyResource + from ._models import QuotaInfo + from ._models import Resource + from ._models import Role + from ._models import RuntimeScriptAction + from ._models import RuntimeScriptActionDetail + from ._models import ScriptAction + from ._models import ScriptActionExecutionSummary + from ._models import ScriptActionPersistedGetResponseSpec + from ._models import SecurityProfile + from ._models import SshProfile + from ._models import SshPublicKey + from ._models import StorageAccount + from ._models import StorageProfile + from ._models import TrackedResource + from ._models import UpdateGatewaySettingsParameters + from ._models import Usage + from ._models import UsagesListResult + from ._models import VirtualNetworkProfile +from ._paged_models import ApplicationPaged +from ._paged_models import ClusterPaged +from ._paged_models import OperationPaged +from ._paged_models import RuntimeScriptActionDetailPaged +from ._hd_insight_management_client_enums import ( DirectoryType, OSType, Tier, @@ -134,60 +134,60 @@ ) __all__ = [ - 'ClusterDefinition', - 'SecurityProfile', - 'HardwareProfile', - 'VirtualNetworkProfile', - 'DataDisksGroups', - 'SshPublicKey', - 'SshProfile', - 'LinuxOperatingSystemProfile', - 'OsProfile', - 'ScriptAction', - 'Role', - 'ComputeProfile', - 'StorageAccount', - 'StorageProfile', - 'DiskEncryptionProperties', - 'ClusterCreateProperties', - 'ClusterIdentityUserAssignedIdentitiesValue', - 'ClusterIdentity', + 'Application', + 'ApplicationGetEndpoint', + 'ApplicationGetHttpsEndpoint', + 'ApplicationProperties', + 'Cluster', + 'ClusterConfigurations', 'ClusterCreateParametersExtended', - 'ClusterPatchParameters', - 'QuotaInfo', - 'Errors', - 'ConnectivityEndpoint', + 'ClusterCreateProperties', + 'ClusterDefinition', + 'ClusterDiskEncryptionParameters', 'ClusterGetProperties', - 'Cluster', - 'RuntimeScriptAction', - 'ExecuteScriptActionParameters', + 'ClusterIdentity', + 'ClusterIdentityUserAssignedIdentitiesValue', 'ClusterListPersistedScriptActionsResult', - 'ScriptActionExecutionSummary', - 'RuntimeScriptActionDetail', 'ClusterListRuntimeScriptActionDetailResult', + 'ClusterMonitoringRequest', + 'ClusterMonitoringResponse', + 'ClusterPatchParameters', 'ClusterResizeParameters', - 'ClusterDiskEncryptionParameters', - 'UpdateGatewaySettingsParameters', + 'ComputeProfile', + 'ConnectivityEndpoint', + 'DataDisksGroups', + 'DiskEncryptionProperties', + 'ErrorResponse', 'ErrorResponseException', + 'Errors', + 'ExecuteScriptActionParameters', + 'Extension', 'GatewaySettings', + 'HardwareProfile', + 'LinuxOperatingSystemProfile', + 'LocalizedName', + 'Operation', + 'OperationDisplay', 'OperationResource', + 'OsProfile', + 'ProxyResource', + 'QuotaInfo', 'Resource', + 'Role', + 'RuntimeScriptAction', + 'RuntimeScriptActionDetail', + 'ScriptAction', + 'ScriptActionExecutionSummary', + 'ScriptActionPersistedGetResponseSpec', + 'SecurityProfile', + 'SshProfile', + 'SshPublicKey', + 'StorageAccount', + 'StorageProfile', 'TrackedResource', - 'ProxyResource', - 'ErrorResponse', 'ErrorResponseException', - 'ApplicationGetHttpsEndpoint', - 'ApplicationGetEndpoint', - 'ApplicationProperties', - 'Application', - 'LocalizedName', + 'UpdateGatewaySettingsParameters', 'Usage', 'UsagesListResult', - 'ClusterConfigurations', - 'Extension', - 'ClusterMonitoringResponse', - 'ClusterMonitoringRequest', - 'ScriptActionPersistedGetResponseSpec', - 'OperationDisplay', - 'Operation', + 'VirtualNetworkProfile', 'ClusterPaged', 'ApplicationPaged', 'RuntimeScriptActionDetailPaged', diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py similarity index 100% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py new file mode 100644 index 000000000000..4ce307e3c6ea --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py @@ -0,0 +1,1676 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """The core properties of ARM resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :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(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :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(ProxyResource, self).__init__(**kwargs) + + +class Application(ProxyResource): + """The HDInsight cluster application. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param etag: The ETag for the application + :type etag: str + :param tags: The tags for the application. + :type tags: dict[str, str] + :param properties: The properties of the application. + :type properties: ~azure.mgmt.hdinsight.models.ApplicationProperties + """ + + _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'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ApplicationProperties'}, + } + + def __init__(self, **kwargs): + super(Application, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.tags = kwargs.get('tags', None) + self.properties = kwargs.get('properties', None) + + +class ApplicationGetEndpoint(Model): + """Gets the application SSH endpoint. + + :param location: The location of the endpoint. + :type location: str + :param destination_port: The destination port to connect to. + :type destination_port: int + :param public_port: The public port to connect to. + :type public_port: int + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'destination_port': {'key': 'destinationPort', 'type': 'int'}, + 'public_port': {'key': 'publicPort', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ApplicationGetEndpoint, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.destination_port = kwargs.get('destination_port', None) + self.public_port = kwargs.get('public_port', None) + + +class ApplicationGetHttpsEndpoint(Model): + """Gets the application HTTP endpoints. + + :param access_modes: The list of access modes for the application. + :type access_modes: list[str] + :param location: The location of the endpoint. + :type location: str + :param destination_port: The destination port to connect to. + :type destination_port: int + :param public_port: The public port to connect to. + :type public_port: int + :param sub_domain_suffix: The subDomainSuffix of the application. + :type sub_domain_suffix: str + :param disable_gateway_auth: The value indicates whether to disable + GatewayAuth. + :type disable_gateway_auth: bool + """ + + _attribute_map = { + 'access_modes': {'key': 'accessModes', 'type': '[str]'}, + 'location': {'key': 'location', 'type': 'str'}, + 'destination_port': {'key': 'destinationPort', 'type': 'int'}, + 'public_port': {'key': 'publicPort', 'type': 'int'}, + 'sub_domain_suffix': {'key': 'subDomainSuffix', 'type': 'str'}, + 'disable_gateway_auth': {'key': 'disableGatewayAuth', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) + self.access_modes = kwargs.get('access_modes', None) + self.location = kwargs.get('location', None) + self.destination_port = kwargs.get('destination_port', None) + self.public_port = kwargs.get('public_port', None) + self.sub_domain_suffix = kwargs.get('sub_domain_suffix', None) + self.disable_gateway_auth = kwargs.get('disable_gateway_auth', None) + + +class ApplicationProperties(Model): + """The HDInsight cluster application GET response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param compute_profile: The list of roles in the cluster. + :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile + :param install_script_actions: The list of install script actions. + :type install_script_actions: + list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :param uninstall_script_actions: The list of uninstall script actions. + :type uninstall_script_actions: + list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :param https_endpoints: The list of application HTTPS endpoints. + :type https_endpoints: + list[~azure.mgmt.hdinsight.models.ApplicationGetHttpsEndpoint] + :param ssh_endpoints: The list of application SSH endpoints. + :type ssh_endpoints: + list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint] + :ivar provisioning_state: The provisioning state of the application. + :vartype provisioning_state: str + :param application_type: The application type. + :type application_type: str + :ivar application_state: The application state. + :vartype application_state: str + :param errors: The list of errors. + :type errors: list[~azure.mgmt.hdinsight.models.Errors] + :ivar created_date: The application create date time. + :vartype created_date: str + :ivar marketplace_identifier: The marketplace identifier. + :vartype marketplace_identifier: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'application_state': {'readonly': True}, + 'created_date': {'readonly': True}, + 'marketplace_identifier': {'readonly': True}, + } + + _attribute_map = { + 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, + 'install_script_actions': {'key': 'installScriptActions', 'type': '[RuntimeScriptAction]'}, + 'uninstall_script_actions': {'key': 'uninstallScriptActions', 'type': '[RuntimeScriptAction]'}, + 'https_endpoints': {'key': 'httpsEndpoints', 'type': '[ApplicationGetHttpsEndpoint]'}, + 'ssh_endpoints': {'key': 'sshEndpoints', 'type': '[ApplicationGetEndpoint]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'application_type': {'key': 'applicationType', 'type': 'str'}, + 'application_state': {'key': 'applicationState', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[Errors]'}, + 'created_date': {'key': 'createdDate', 'type': 'str'}, + 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationProperties, self).__init__(**kwargs) + self.compute_profile = kwargs.get('compute_profile', None) + self.install_script_actions = kwargs.get('install_script_actions', None) + self.uninstall_script_actions = kwargs.get('uninstall_script_actions', None) + self.https_endpoints = kwargs.get('https_endpoints', None) + self.ssh_endpoints = kwargs.get('ssh_endpoints', None) + self.provisioning_state = None + self.application_type = kwargs.get('application_type', None) + self.application_state = None + self.errors = kwargs.get('errors', None) + self.created_date = None + self.marketplace_identifier = None + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The Azure Region where the resource lives + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class Cluster(TrackedResource): + """The HDInsight cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The Azure Region where the resource lives + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param etag: The ETag for the resource + :type etag: str + :param properties: The properties of the cluster. + :type properties: ~azure.mgmt.hdinsight.models.ClusterGetProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ClusterGetProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, + } + + def __init__(self, **kwargs): + super(Cluster, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.properties = kwargs.get('properties', None) + self.identity = kwargs.get('identity', None) + + +class ClusterConfigurations(Model): + """The configuration object for the specified cluster. + + :param configurations: The configuration object for the specified + configuration for the specified cluster. + :type configurations: dict[str, dict[str, str]] + """ + + _attribute_map = { + 'configurations': {'key': 'configurations', 'type': '{{str}}'}, + } + + def __init__(self, **kwargs): + super(ClusterConfigurations, self).__init__(**kwargs) + self.configurations = kwargs.get('configurations', None) + + +class ClusterCreateParametersExtended(Model): + """The CreateCluster request parameters. + + :param location: The location of the cluster. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The cluster create parameters. + :type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, + } + + def __init__(self, **kwargs): + super(ClusterCreateParametersExtended, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.properties = kwargs.get('properties', None) + self.identity = kwargs.get('identity', None) + + +class ClusterCreateProperties(Model): + """The cluster create parameters. + + :param cluster_version: The version of the cluster. + :type cluster_version: str + :param os_type: The type of operating system. Possible values include: + 'Windows', 'Linux' + :type os_type: str or ~azure.mgmt.hdinsight.models.OSType + :param tier: The cluster tier. Possible values include: 'Standard', + 'Premium' + :type tier: str or ~azure.mgmt.hdinsight.models.Tier + :param cluster_definition: The cluster definition. + :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition + :param security_profile: The security profile. + :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile + :param compute_profile: The compute profile. + :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile + :param storage_profile: The storage profile. + :type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties + """ + + _attribute_map = { + 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'OSType'}, + 'tier': {'key': 'tier', 'type': 'Tier'}, + 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, + } + + def __init__(self, **kwargs): + super(ClusterCreateProperties, self).__init__(**kwargs) + self.cluster_version = kwargs.get('cluster_version', None) + self.os_type = kwargs.get('os_type', None) + self.tier = kwargs.get('tier', None) + self.cluster_definition = kwargs.get('cluster_definition', None) + self.security_profile = kwargs.get('security_profile', None) + self.compute_profile = kwargs.get('compute_profile', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) + + +class ClusterDefinition(Model): + """The cluster definition. + + :param blueprint: The link to the blueprint. + :type blueprint: str + :param kind: The type of cluster. + :type kind: str + :param component_version: The versions of different services in the + cluster. + :type component_version: dict[str, str] + :param configurations: The cluster configurations. + :type configurations: object + """ + + _attribute_map = { + 'blueprint': {'key': 'blueprint', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'component_version': {'key': 'componentVersion', 'type': '{str}'}, + 'configurations': {'key': 'configurations', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(ClusterDefinition, self).__init__(**kwargs) + self.blueprint = kwargs.get('blueprint', None) + self.kind = kwargs.get('kind', None) + self.component_version = kwargs.get('component_version', None) + self.configurations = kwargs.get('configurations', None) + + +class ClusterDiskEncryptionParameters(Model): + """The Disk Encryption Cluster request parameters. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterDiskEncryptionParameters, self).__init__(**kwargs) + self.vault_uri = kwargs.get('vault_uri', None) + self.key_name = kwargs.get('key_name', None) + self.key_version = kwargs.get('key_version', None) + + +class ClusterGetProperties(Model): + """The properties of cluster. + + All required parameters must be populated in order to send to Azure. + + :param cluster_version: The version of the cluster. + :type cluster_version: str + :param os_type: The type of operating system. Possible values include: + 'Windows', 'Linux' + :type os_type: str or ~azure.mgmt.hdinsight.models.OSType + :param tier: The cluster tier. Possible values include: 'Standard', + 'Premium' + :type tier: str or ~azure.mgmt.hdinsight.models.Tier + :param cluster_definition: Required. The cluster definition. + :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition + :param security_profile: The security profile. + :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile + :param compute_profile: The compute profile. + :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile + :param provisioning_state: The provisioning state, which only appears in + the response. Possible values include: 'InProgress', 'Failed', + 'Succeeded', 'Canceled', 'Deleting' + :type provisioning_state: str or + ~azure.mgmt.hdinsight.models.HDInsightClusterProvisioningState + :param created_date: The date on which the cluster was created. + :type created_date: str + :param cluster_state: The state of the cluster. + :type cluster_state: str + :param quota_info: The quota information. + :type quota_info: ~azure.mgmt.hdinsight.models.QuotaInfo + :param errors: The list of errors. + :type errors: list[~azure.mgmt.hdinsight.models.Errors] + :param connectivity_endpoints: The list of connectivity endpoints. + :type connectivity_endpoints: + list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint] + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties + """ + + _validation = { + 'cluster_definition': {'required': True}, + } + + _attribute_map = { + 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'OSType'}, + 'tier': {'key': 'tier', 'type': 'Tier'}, + 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'}, + 'created_date': {'key': 'createdDate', 'type': 'str'}, + 'cluster_state': {'key': 'clusterState', 'type': 'str'}, + 'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'}, + 'errors': {'key': 'errors', 'type': '[Errors]'}, + 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, + } + + def __init__(self, **kwargs): + super(ClusterGetProperties, self).__init__(**kwargs) + self.cluster_version = kwargs.get('cluster_version', None) + self.os_type = kwargs.get('os_type', None) + self.tier = kwargs.get('tier', None) + self.cluster_definition = kwargs.get('cluster_definition', None) + self.security_profile = kwargs.get('security_profile', None) + self.compute_profile = kwargs.get('compute_profile', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.created_date = kwargs.get('created_date', None) + self.cluster_state = kwargs.get('cluster_state', None) + self.quota_info = kwargs.get('quota_info', None) + self.errors = kwargs.get('errors', None) + self.connectivity_endpoints = kwargs.get('connectivity_endpoints', None) + self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) + + +class ClusterIdentity(Model): + """Identity for the cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of cluster identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the cluster. This property + will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the cluster. The type + 'SystemAssigned, UserAssigned' includes both an implicitly created + identity and a set of user assigned identities. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the cluster. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, **kwargs): + super(ClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + +class ClusterIdentityUserAssignedIdentitiesValue(Model): + """ClusterIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class ClusterListPersistedScriptActionsResult(Model): + """The ListPersistedScriptActions operation response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: The list of Persisted Script Actions. + :type value: list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RuntimeScriptAction]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterListPersistedScriptActionsResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None + + +class ClusterListRuntimeScriptActionDetailResult(Model): + """The list runtime script action detail response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The list of persisted script action details for the cluster. + :vartype value: + list[~azure.mgmt.hdinsight.models.RuntimeScriptActionDetail] + :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': '[RuntimeScriptActionDetail]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterListRuntimeScriptActionDetailResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ClusterMonitoringRequest(Model): + """The Operations Management Suite (OMS) parameters. + + :param workspace_id: The Operations Management Suite (OMS) workspace ID. + :type workspace_id: str + :param primary_key: The Operations Management Suite (OMS) workspace key. + :type primary_key: str + """ + + _attribute_map = { + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + 'primary_key': {'key': 'primaryKey', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterMonitoringRequest, self).__init__(**kwargs) + self.workspace_id = kwargs.get('workspace_id', None) + self.primary_key = kwargs.get('primary_key', None) + + +class ClusterMonitoringResponse(Model): + """The Operations Management Suite (OMS) status response. + + :param cluster_monitoring_enabled: The status of the Operations Management + Suite (OMS) on the HDInsight cluster. + :type cluster_monitoring_enabled: bool + :param workspace_id: The workspace ID of the Operations Management Suite + (OMS) on the HDInsight cluster. + :type workspace_id: str + """ + + _attribute_map = { + 'cluster_monitoring_enabled': {'key': 'clusterMonitoringEnabled', 'type': 'bool'}, + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterMonitoringResponse, self).__init__(**kwargs) + self.cluster_monitoring_enabled = kwargs.get('cluster_monitoring_enabled', None) + self.workspace_id = kwargs.get('workspace_id', None) + + +class ClusterPatchParameters(Model): + """The PatchCluster request parameters. + + :param tags: The resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ClusterPatchParameters, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + + +class ClusterResizeParameters(Model): + """The Resize Cluster request parameters. + + :param target_instance_count: The target instance count for the operation. + :type target_instance_count: int + """ + + _attribute_map = { + 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ClusterResizeParameters, self).__init__(**kwargs) + self.target_instance_count = kwargs.get('target_instance_count', None) + + +class ComputeProfile(Model): + """Describes the compute profile. + + :param roles: The list of roles in the cluster. + :type roles: list[~azure.mgmt.hdinsight.models.Role] + """ + + _attribute_map = { + 'roles': {'key': 'roles', 'type': '[Role]'}, + } + + def __init__(self, **kwargs): + super(ComputeProfile, self).__init__(**kwargs) + self.roles = kwargs.get('roles', None) + + +class ConnectivityEndpoint(Model): + """The connectivity properties. + + :param name: The name of the endpoint. + :type name: str + :param protocol: The protocol of the endpoint. + :type protocol: str + :param location: The location of the endpoint. + :type location: str + :param port: The port to connect to. + :type port: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectivityEndpoint, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.protocol = kwargs.get('protocol', None) + self.location = kwargs.get('location', None) + self.port = kwargs.get('port', None) + + +class DataDisksGroups(Model): + """The data disks groups for the role. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param disks_per_node: The number of disks per node. + :type disks_per_node: int + :ivar storage_account_type: ReadOnly. The storage account type. Do not set + this value. + :vartype storage_account_type: str + :ivar disk_size_gb: ReadOnly. The DiskSize in GB. Do not set this value. + :vartype disk_size_gb: int + """ + + _validation = { + 'storage_account_type': {'readonly': True}, + 'disk_size_gb': {'readonly': True}, + } + + _attribute_map = { + 'disks_per_node': {'key': 'disksPerNode', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(DataDisksGroups, self).__init__(**kwargs) + self.disks_per_node = kwargs.get('disks_per_node', None) + self.storage_account_type = None + self.disk_size_gb = None + + +class DiskEncryptionProperties(Model): + """The disk encryption properties. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + :param encryption_algorithm: Algorithm identifier for encryption, default + RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' + :type encryption_algorithm: str or + ~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm + :param msi_resource_id: Resource ID of Managed Identity that is used to + access the key vault. + :type msi_resource_id: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DiskEncryptionProperties, self).__init__(**kwargs) + self.vault_uri = kwargs.get('vault_uri', None) + self.key_name = kwargs.get('key_name', None) + self.key_version = kwargs.get('key_version', None) + self.encryption_algorithm = kwargs.get('encryption_algorithm', None) + self.msi_resource_id = kwargs.get('msi_resource_id', None) + + +class ErrorResponse(Model): + """Describes the format of Error response. + + :param code: Error code + :type code: str + :param message: Error message indicating why the operation failed. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Errors(Model): + """The error message associated with the cluster creation. + + :param code: The error code. + :type code: str + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Errors, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class ExecuteScriptActionParameters(Model): + """The parameters for the script actions to execute on a running cluster. + + All required parameters must be populated in order to send to Azure. + + :param script_actions: The list of run time script actions. + :type script_actions: + list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :param persist_on_success: Required. Gets or sets if the scripts needs to + be persisted. + :type persist_on_success: bool + """ + + _validation = { + 'persist_on_success': {'required': True}, + } + + _attribute_map = { + 'script_actions': {'key': 'scriptActions', 'type': '[RuntimeScriptAction]'}, + 'persist_on_success': {'key': 'persistOnSuccess', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ExecuteScriptActionParameters, self).__init__(**kwargs) + self.script_actions = kwargs.get('script_actions', None) + self.persist_on_success = kwargs.get('persist_on_success', None) + + +class Extension(Model): + """Cluster monitoring extensions. + + :param workspace_id: The workspace ID for the cluster monitoring + extension. + :type workspace_id: str + :param primary_key: The certificate for the cluster monitoring extensions. + :type primary_key: str + """ + + _attribute_map = { + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + 'primary_key': {'key': 'primaryKey', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Extension, self).__init__(**kwargs) + self.workspace_id = kwargs.get('workspace_id', None) + self.primary_key = kwargs.get('primary_key', None) + + +class GatewaySettings(Model): + """Gateway settings. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar is_credential_enabled: Indicates whether or not the gateway settings + based authorization is enabled. + :vartype is_credential_enabled: str + :ivar user_name: The gateway settings user name. + :vartype user_name: str + :ivar password: The gateway settings user password. + :vartype password: str + """ + + _validation = { + 'is_credential_enabled': {'readonly': True}, + 'user_name': {'readonly': True}, + 'password': {'readonly': True}, + } + + _attribute_map = { + 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'}, + 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, + 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GatewaySettings, self).__init__(**kwargs) + self.is_credential_enabled = None + self.user_name = None + self.password = None + + +class HardwareProfile(Model): + """The hardware profile. + + :param vm_size: The size of the VM + :type vm_size: str + """ + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HardwareProfile, self).__init__(**kwargs) + self.vm_size = kwargs.get('vm_size', None) + + +class LinuxOperatingSystemProfile(Model): + """The ssh username, password, and ssh public key. + + :param username: The username. + :type username: str + :param password: The password. + :type password: str + :param ssh_profile: The SSH profile. + :type ssh_profile: ~azure.mgmt.hdinsight.models.SshProfile + """ + + _attribute_map = { + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'ssh_profile': {'key': 'sshProfile', 'type': 'SshProfile'}, + } + + def __init__(self, **kwargs): + super(LinuxOperatingSystemProfile, self).__init__(**kwargs) + self.username = kwargs.get('username', None) + self.password = kwargs.get('password', None) + self.ssh_profile = kwargs.get('ssh_profile', None) + + +class LocalizedName(Model): + """The details about the localizable name of a type of usage. + + :param value: The name of the used resource. + :type value: str + :param localized_value: The localized name of the used resource. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LocalizedName, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.localized_value = kwargs.get('localized_value', None) + + +class Operation(Model): + """The HDInsight REST API operation. + + :param name: The operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: ~azure.mgmt.hdinsight.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: The service provider: Microsoft.HDInsight + :type provider: str + :param resource: The resource on which the operation is performed: + Cluster, Applications, etc. + :type resource: str + :param operation: The operation type: read, write, delete, etc. + :type operation: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + + +class OperationResource(Model): + """The azure async operation response. + + :param status: The async operation state. Possible values include: + 'InProgress', 'Succeeded', 'Failed' + :type status: str or ~azure.mgmt.hdinsight.models.AsyncOperationState + :param error: The operation error information. + :type error: ~azure.mgmt.hdinsight.models.Errors + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'AsyncOperationState'}, + 'error': {'key': 'error', 'type': 'Errors'}, + } + + def __init__(self, **kwargs): + super(OperationResource, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.error = kwargs.get('error', None) + + +class OsProfile(Model): + """The Linux operation systems profile. + + :param linux_operating_system_profile: The Linux OS profile. + :type linux_operating_system_profile: + ~azure.mgmt.hdinsight.models.LinuxOperatingSystemProfile + """ + + _attribute_map = { + 'linux_operating_system_profile': {'key': 'linuxOperatingSystemProfile', 'type': 'LinuxOperatingSystemProfile'}, + } + + def __init__(self, **kwargs): + super(OsProfile, self).__init__(**kwargs) + self.linux_operating_system_profile = kwargs.get('linux_operating_system_profile', None) + + +class QuotaInfo(Model): + """The quota properties for the cluster. + + :param cores_used: The cores used by the cluster. + :type cores_used: int + """ + + _attribute_map = { + 'cores_used': {'key': 'coresUsed', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(QuotaInfo, self).__init__(**kwargs) + self.cores_used = kwargs.get('cores_used', None) + + +class Role(Model): + """Describes a role on the cluster. + + :param name: The name of the role. + :type name: str + :param min_instance_count: The minimum instance count of the cluster. + :type min_instance_count: int + :param target_instance_count: The instance count of the cluster. + :type target_instance_count: int + :param hardware_profile: The hardware profile. + :type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile + :param os_profile: The operating system profile. + :type os_profile: ~azure.mgmt.hdinsight.models.OsProfile + :param virtual_network_profile: The virtual network profile. + :type virtual_network_profile: + ~azure.mgmt.hdinsight.models.VirtualNetworkProfile + :param data_disks_groups: The data disks groups for the role. + :type data_disks_groups: + list[~azure.mgmt.hdinsight.models.DataDisksGroups] + :param script_actions: The list of script actions on the role. + :type script_actions: list[~azure.mgmt.hdinsight.models.ScriptAction] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, + 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, + 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, + 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'}, + 'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'}, + 'data_disks_groups': {'key': 'dataDisksGroups', 'type': '[DataDisksGroups]'}, + 'script_actions': {'key': 'scriptActions', 'type': '[ScriptAction]'}, + } + + def __init__(self, **kwargs): + super(Role, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.min_instance_count = kwargs.get('min_instance_count', None) + self.target_instance_count = kwargs.get('target_instance_count', None) + self.hardware_profile = kwargs.get('hardware_profile', None) + self.os_profile = kwargs.get('os_profile', None) + self.virtual_network_profile = kwargs.get('virtual_network_profile', None) + self.data_disks_groups = kwargs.get('data_disks_groups', None) + self.script_actions = kwargs.get('script_actions', None) + + +class RuntimeScriptAction(Model): + """Describes a script action on a running cluster. + + 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 name of the script action. + :type name: str + :param uri: Required. The URI to the script. + :type uri: str + :param parameters: The parameters for the script + :type parameters: str + :param roles: Required. The list of roles where script will be executed. + :type roles: list[str] + :ivar application_name: The application name of the script action, if any. + :vartype application_name: str + """ + + _validation = { + 'name': {'required': True}, + 'uri': {'required': True}, + 'roles': {'required': True}, + 'application_name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'application_name': {'key': 'applicationName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RuntimeScriptAction, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.uri = kwargs.get('uri', None) + self.parameters = kwargs.get('parameters', None) + self.roles = kwargs.get('roles', None) + self.application_name = None + + +class RuntimeScriptActionDetail(RuntimeScriptAction): + """The execution details of a script action. + + 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 name of the script action. + :type name: str + :param uri: Required. The URI to the script. + :type uri: str + :param parameters: The parameters for the script + :type parameters: str + :param roles: Required. The list of roles where script will be executed. + :type roles: list[str] + :ivar application_name: The application name of the script action, if any. + :vartype application_name: str + :ivar script_execution_id: The execution id of the script action. + :vartype script_execution_id: long + :ivar start_time: The start time of script action execution. + :vartype start_time: str + :ivar end_time: The end time of script action execution. + :vartype end_time: str + :ivar status: The current execution status of the script action. + :vartype status: str + :ivar operation: The reason why the script action was executed. + :vartype operation: str + :ivar execution_summary: The summary of script action execution result. + :vartype execution_summary: + list[~azure.mgmt.hdinsight.models.ScriptActionExecutionSummary] + :ivar debug_information: The script action execution debug information. + :vartype debug_information: str + """ + + _validation = { + 'name': {'required': True}, + 'uri': {'required': True}, + 'roles': {'required': True}, + 'application_name': {'readonly': True}, + 'script_execution_id': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'operation': {'readonly': True}, + 'execution_summary': {'readonly': True}, + 'debug_information': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'application_name': {'key': 'applicationName', 'type': 'str'}, + 'script_execution_id': {'key': 'scriptExecutionId', 'type': 'long'}, + 'start_time': {'key': 'startTime', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'execution_summary': {'key': 'executionSummary', 'type': '[ScriptActionExecutionSummary]'}, + 'debug_information': {'key': 'debugInformation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RuntimeScriptActionDetail, self).__init__(**kwargs) + self.script_execution_id = None + self.start_time = None + self.end_time = None + self.status = None + self.operation = None + self.execution_summary = None + self.debug_information = None + + +class ScriptAction(Model): + """Describes a script action on role on the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the script action. + :type name: str + :param uri: Required. The URI to the script. + :type uri: str + :param parameters: Required. The parameters for the script provided. + :type parameters: str + """ + + _validation = { + 'name': {'required': True}, + 'uri': {'required': True}, + 'parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ScriptAction, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.uri = kwargs.get('uri', None) + self.parameters = kwargs.get('parameters', None) + + +class ScriptActionExecutionSummary(Model): + """The execution summary of a script action. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: The status of script action execution. + :vartype status: str + :ivar instance_count: The instance count for a given script action + execution status. + :vartype instance_count: int + """ + + _validation = { + 'status': {'readonly': True}, + 'instance_count': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'instance_count': {'key': 'instanceCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ScriptActionExecutionSummary, self).__init__(**kwargs) + self.status = None + self.instance_count = None + + +class ScriptActionPersistedGetResponseSpec(Model): + """The persisted script action for cluster. + + :param name: The name of script action. + :type name: str + :param uri: The URI to the script. + :type uri: str + :param parameters: The parameters for the script provided. + :type parameters: str + :param roles: The list of roles where script will be executed. + :type roles: list[str] + :param application_name: The application name for the script action. + :type application_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'application_name': {'key': 'applicationName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ScriptActionPersistedGetResponseSpec, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.uri = kwargs.get('uri', None) + self.parameters = kwargs.get('parameters', None) + self.roles = kwargs.get('roles', None) + self.application_name = kwargs.get('application_name', None) + + +class SecurityProfile(Model): + """The security profile which contains Ssh public key for the HDInsight + cluster. + + :param directory_type: The directory type. Possible values include: + 'ActiveDirectory' + :type directory_type: str or ~azure.mgmt.hdinsight.models.DirectoryType + :param domain: The organization's active directory domain. + :type domain: str + :param organizational_unit_dn: The organizational unit within the Active + Directory to place the cluster and service accounts. + :type organizational_unit_dn: str + :param ldaps_urls: The LDAPS protocol URLs to communicate with the Active + Directory. + :type ldaps_urls: list[str] + :param domain_username: The domain user account that will have admin + privileges on the cluster. + :type domain_username: str + :param domain_user_password: The domain admin password. + :type domain_user_password: str + :param cluster_users_group_dns: Optional. The Distinguished Names for + cluster user groups + :type cluster_users_group_dns: list[str] + :param aadds_resource_id: The resource ID of the user's Azure Active + Directory Domain Service. + :type aadds_resource_id: str + :param msi_resource_id: User assigned identity that has permissions to + read and create cluster-related artifacts in the user's AADDS. + :type msi_resource_id: str + """ + + _attribute_map = { + 'directory_type': {'key': 'directoryType', 'type': 'DirectoryType'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'organizational_unit_dn': {'key': 'organizationalUnitDN', 'type': 'str'}, + 'ldaps_urls': {'key': 'ldapsUrls', 'type': '[str]'}, + 'domain_username': {'key': 'domainUsername', 'type': 'str'}, + 'domain_user_password': {'key': 'domainUserPassword', 'type': 'str'}, + 'cluster_users_group_dns': {'key': 'clusterUsersGroupDNs', 'type': '[str]'}, + 'aadds_resource_id': {'key': 'aaddsResourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecurityProfile, self).__init__(**kwargs) + self.directory_type = kwargs.get('directory_type', None) + self.domain = kwargs.get('domain', None) + self.organizational_unit_dn = kwargs.get('organizational_unit_dn', None) + self.ldaps_urls = kwargs.get('ldaps_urls', None) + self.domain_username = kwargs.get('domain_username', None) + self.domain_user_password = kwargs.get('domain_user_password', None) + self.cluster_users_group_dns = kwargs.get('cluster_users_group_dns', None) + self.aadds_resource_id = kwargs.get('aadds_resource_id', None) + self.msi_resource_id = kwargs.get('msi_resource_id', None) + + +class SshProfile(Model): + """The list of SSH public keys. + + :param public_keys: The list of SSH public keys. + :type public_keys: list[~azure.mgmt.hdinsight.models.SshPublicKey] + """ + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[SshPublicKey]'}, + } + + def __init__(self, **kwargs): + super(SshProfile, self).__init__(**kwargs) + self.public_keys = kwargs.get('public_keys', None) + + +class SshPublicKey(Model): + """The SSH public key for the cluster nodes. + + :param certificate_data: The certificate for SSH. + :type certificate_data: str + """ + + _attribute_map = { + 'certificate_data': {'key': 'certificateData', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SshPublicKey, self).__init__(**kwargs) + self.certificate_data = kwargs.get('certificate_data', None) + + +class StorageAccount(Model): + """The storage Account. + + :param name: The name of the storage account. + :type name: str + :param is_default: Whether or not the storage account is the default + storage account. + :type is_default: bool + :param container: The container in the storage account, only to be + specified for WASB storage accounts. + :type container: str + :param file_system: The filesystem, only to be specified for Azure Data + Lake Storage type Gen 2. + :type file_system: str + :param key: The storage account access key. + :type key: str + :param resource_id: The resource ID of storage account, only to be + specified for Azure Data Lake Storage Gen 2. + :type resource_id: str + :param msi_resource_id: The managed identity (MSI) that is allowed to + access the storage account, only to be specified for Azure Data Lake + Storage Gen 2. + :type msi_resource_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'container': {'key': 'container', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(StorageAccount, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.is_default = kwargs.get('is_default', None) + self.container = kwargs.get('container', None) + self.file_system = kwargs.get('file_system', None) + self.key = kwargs.get('key', None) + self.resource_id = kwargs.get('resource_id', None) + self.msi_resource_id = kwargs.get('msi_resource_id', None) + + +class StorageProfile(Model): + """The storage profile. + + :param storageaccounts: The list of storage accounts in the cluster. + :type storageaccounts: list[~azure.mgmt.hdinsight.models.StorageAccount] + """ + + _attribute_map = { + 'storageaccounts': {'key': 'storageaccounts', 'type': '[StorageAccount]'}, + } + + def __init__(self, **kwargs): + super(StorageProfile, self).__init__(**kwargs) + self.storageaccounts = kwargs.get('storageaccounts', None) + + +class UpdateGatewaySettingsParameters(Model): + """The update gateway settings request parameters. + + :param is_credential_enabled: Indicates whether or not the gateway + settings based authorization is enabled. Default value: True . + :type is_credential_enabled: bool + :param user_name: The gateway settings user name. + :type user_name: str + :param password: The gateway settings user password. + :type password: str + """ + + _attribute_map = { + 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'}, + 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, + 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UpdateGatewaySettingsParameters, self).__init__(**kwargs) + self.is_credential_enabled = kwargs.get('is_credential_enabled', True) + self.user_name = kwargs.get('user_name', None) + self.password = kwargs.get('password', None) + + +class Usage(Model): + """The details about the usage of a particular limited resource. + + :param unit: The type of measurement for usage. + :type unit: str + :param current_value: The current usage. + :type current_value: int + :param limit: The maximum allowed usage. + :type limit: int + :param name: The details about the localizable name of the used resource. + :type name: ~azure.mgmt.hdinsight.models.LocalizedName + """ + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'LocalizedName'}, + } + + def __init__(self, **kwargs): + super(Usage, self).__init__(**kwargs) + self.unit = kwargs.get('unit', None) + self.current_value = kwargs.get('current_value', None) + self.limit = kwargs.get('limit', None) + self.name = kwargs.get('name', None) + + +class UsagesListResult(Model): + """The response for the operation to get regional usages for a subscription. + + :param value: The list of usages. + :type value: list[~azure.mgmt.hdinsight.models.Usage] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Usage]'}, + } + + def __init__(self, **kwargs): + super(UsagesListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class VirtualNetworkProfile(Model): + """The virtual network properties. + + :param id: The ID of the virtual network. + :type id: str + :param subnet: The name of the subnet. + :type subnet: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subnet': {'key': 'subnet', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkProfile, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.subnet = kwargs.get('subnet', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py new file mode 100644 index 000000000000..bf2f96b1f39b --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py @@ -0,0 +1,1676 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """The core properties of ARM resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :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(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :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(ProxyResource, self).__init__(**kwargs) + + +class Application(ProxyResource): + """The HDInsight cluster application. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param etag: The ETag for the application + :type etag: str + :param tags: The tags for the application. + :type tags: dict[str, str] + :param properties: The properties of the application. + :type properties: ~azure.mgmt.hdinsight.models.ApplicationProperties + """ + + _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'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ApplicationProperties'}, + } + + def __init__(self, *, etag: str=None, tags=None, properties=None, **kwargs) -> None: + super(Application, self).__init__(**kwargs) + self.etag = etag + self.tags = tags + self.properties = properties + + +class ApplicationGetEndpoint(Model): + """Gets the application SSH endpoint. + + :param location: The location of the endpoint. + :type location: str + :param destination_port: The destination port to connect to. + :type destination_port: int + :param public_port: The public port to connect to. + :type public_port: int + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'destination_port': {'key': 'destinationPort', 'type': 'int'}, + 'public_port': {'key': 'publicPort', 'type': 'int'}, + } + + def __init__(self, *, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None: + super(ApplicationGetEndpoint, self).__init__(**kwargs) + self.location = location + self.destination_port = destination_port + self.public_port = public_port + + +class ApplicationGetHttpsEndpoint(Model): + """Gets the application HTTP endpoints. + + :param access_modes: The list of access modes for the application. + :type access_modes: list[str] + :param location: The location of the endpoint. + :type location: str + :param destination_port: The destination port to connect to. + :type destination_port: int + :param public_port: The public port to connect to. + :type public_port: int + :param sub_domain_suffix: The subDomainSuffix of the application. + :type sub_domain_suffix: str + :param disable_gateway_auth: The value indicates whether to disable + GatewayAuth. + :type disable_gateway_auth: bool + """ + + _attribute_map = { + 'access_modes': {'key': 'accessModes', 'type': '[str]'}, + 'location': {'key': 'location', 'type': 'str'}, + 'destination_port': {'key': 'destinationPort', 'type': 'int'}, + 'public_port': {'key': 'publicPort', 'type': 'int'}, + 'sub_domain_suffix': {'key': 'subDomainSuffix', 'type': 'str'}, + 'disable_gateway_auth': {'key': 'disableGatewayAuth', 'type': 'bool'}, + } + + def __init__(self, *, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, sub_domain_suffix: str=None, disable_gateway_auth: bool=None, **kwargs) -> None: + super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) + self.access_modes = access_modes + self.location = location + self.destination_port = destination_port + self.public_port = public_port + self.sub_domain_suffix = sub_domain_suffix + self.disable_gateway_auth = disable_gateway_auth + + +class ApplicationProperties(Model): + """The HDInsight cluster application GET response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param compute_profile: The list of roles in the cluster. + :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile + :param install_script_actions: The list of install script actions. + :type install_script_actions: + list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :param uninstall_script_actions: The list of uninstall script actions. + :type uninstall_script_actions: + list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :param https_endpoints: The list of application HTTPS endpoints. + :type https_endpoints: + list[~azure.mgmt.hdinsight.models.ApplicationGetHttpsEndpoint] + :param ssh_endpoints: The list of application SSH endpoints. + :type ssh_endpoints: + list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint] + :ivar provisioning_state: The provisioning state of the application. + :vartype provisioning_state: str + :param application_type: The application type. + :type application_type: str + :ivar application_state: The application state. + :vartype application_state: str + :param errors: The list of errors. + :type errors: list[~azure.mgmt.hdinsight.models.Errors] + :ivar created_date: The application create date time. + :vartype created_date: str + :ivar marketplace_identifier: The marketplace identifier. + :vartype marketplace_identifier: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'application_state': {'readonly': True}, + 'created_date': {'readonly': True}, + 'marketplace_identifier': {'readonly': True}, + } + + _attribute_map = { + 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, + 'install_script_actions': {'key': 'installScriptActions', 'type': '[RuntimeScriptAction]'}, + 'uninstall_script_actions': {'key': 'uninstallScriptActions', 'type': '[RuntimeScriptAction]'}, + 'https_endpoints': {'key': 'httpsEndpoints', 'type': '[ApplicationGetHttpsEndpoint]'}, + 'ssh_endpoints': {'key': 'sshEndpoints', 'type': '[ApplicationGetEndpoint]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'application_type': {'key': 'applicationType', 'type': 'str'}, + 'application_state': {'key': 'applicationState', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[Errors]'}, + 'created_date': {'key': 'createdDate', 'type': 'str'}, + 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, + } + + def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type: str=None, errors=None, **kwargs) -> None: + super(ApplicationProperties, self).__init__(**kwargs) + self.compute_profile = compute_profile + self.install_script_actions = install_script_actions + self.uninstall_script_actions = uninstall_script_actions + self.https_endpoints = https_endpoints + self.ssh_endpoints = ssh_endpoints + self.provisioning_state = None + self.application_type = application_type + self.application_state = None + self.errors = errors + self.created_date = None + self.marketplace_identifier = None + + +class CloudError(Model): + """CloudError. + """ + + _attribute_map = { + } + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The Azure Region where the resource lives + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.location = location + self.tags = tags + + +class Cluster(TrackedResource): + """The HDInsight cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param location: The Azure Region where the resource lives + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param etag: The ETag for the resource + :type etag: str + :param properties: The properties of the cluster. + :type properties: ~azure.mgmt.hdinsight.models.ClusterGetProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ClusterGetProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, + } + + def __init__(self, *, location: str=None, tags=None, etag: str=None, properties=None, identity=None, **kwargs) -> None: + super(Cluster, self).__init__(location=location, tags=tags, **kwargs) + self.etag = etag + self.properties = properties + self.identity = identity + + +class ClusterConfigurations(Model): + """The configuration object for the specified cluster. + + :param configurations: The configuration object for the specified + configuration for the specified cluster. + :type configurations: dict[str, dict[str, str]] + """ + + _attribute_map = { + 'configurations': {'key': 'configurations', 'type': '{{str}}'}, + } + + def __init__(self, *, configurations=None, **kwargs) -> None: + super(ClusterConfigurations, self).__init__(**kwargs) + self.configurations = configurations + + +class ClusterCreateParametersExtended(Model): + """The CreateCluster request parameters. + + :param location: The location of the cluster. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The cluster create parameters. + :type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, + } + + def __init__(self, *, location: str=None, tags=None, properties=None, identity=None, **kwargs) -> None: + super(ClusterCreateParametersExtended, self).__init__(**kwargs) + self.location = location + self.tags = tags + self.properties = properties + self.identity = identity + + +class ClusterCreateProperties(Model): + """The cluster create parameters. + + :param cluster_version: The version of the cluster. + :type cluster_version: str + :param os_type: The type of operating system. Possible values include: + 'Windows', 'Linux' + :type os_type: str or ~azure.mgmt.hdinsight.models.OSType + :param tier: The cluster tier. Possible values include: 'Standard', + 'Premium' + :type tier: str or ~azure.mgmt.hdinsight.models.Tier + :param cluster_definition: The cluster definition. + :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition + :param security_profile: The security profile. + :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile + :param compute_profile: The compute profile. + :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile + :param storage_profile: The storage profile. + :type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties + """ + + _attribute_map = { + 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'OSType'}, + 'tier': {'key': 'tier', 'type': 'Tier'}, + 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, + } + + def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluster_definition=None, security_profile=None, compute_profile=None, storage_profile=None, disk_encryption_properties=None, **kwargs) -> None: + super(ClusterCreateProperties, self).__init__(**kwargs) + self.cluster_version = cluster_version + self.os_type = os_type + self.tier = tier + self.cluster_definition = cluster_definition + self.security_profile = security_profile + self.compute_profile = compute_profile + self.storage_profile = storage_profile + self.disk_encryption_properties = disk_encryption_properties + + +class ClusterDefinition(Model): + """The cluster definition. + + :param blueprint: The link to the blueprint. + :type blueprint: str + :param kind: The type of cluster. + :type kind: str + :param component_version: The versions of different services in the + cluster. + :type component_version: dict[str, str] + :param configurations: The cluster configurations. + :type configurations: object + """ + + _attribute_map = { + 'blueprint': {'key': 'blueprint', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'component_version': {'key': 'componentVersion', 'type': '{str}'}, + 'configurations': {'key': 'configurations', 'type': 'object'}, + } + + def __init__(self, *, blueprint: str=None, kind: str=None, component_version=None, configurations=None, **kwargs) -> None: + super(ClusterDefinition, self).__init__(**kwargs) + self.blueprint = blueprint + self.kind = kind + self.component_version = component_version + self.configurations = configurations + + +class ClusterDiskEncryptionParameters(Model): + """The Disk Encryption Cluster request parameters. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + } + + def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, **kwargs) -> None: + super(ClusterDiskEncryptionParameters, self).__init__(**kwargs) + self.vault_uri = vault_uri + self.key_name = key_name + self.key_version = key_version + + +class ClusterGetProperties(Model): + """The properties of cluster. + + All required parameters must be populated in order to send to Azure. + + :param cluster_version: The version of the cluster. + :type cluster_version: str + :param os_type: The type of operating system. Possible values include: + 'Windows', 'Linux' + :type os_type: str or ~azure.mgmt.hdinsight.models.OSType + :param tier: The cluster tier. Possible values include: 'Standard', + 'Premium' + :type tier: str or ~azure.mgmt.hdinsight.models.Tier + :param cluster_definition: Required. The cluster definition. + :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition + :param security_profile: The security profile. + :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile + :param compute_profile: The compute profile. + :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile + :param provisioning_state: The provisioning state, which only appears in + the response. Possible values include: 'InProgress', 'Failed', + 'Succeeded', 'Canceled', 'Deleting' + :type provisioning_state: str or + ~azure.mgmt.hdinsight.models.HDInsightClusterProvisioningState + :param created_date: The date on which the cluster was created. + :type created_date: str + :param cluster_state: The state of the cluster. + :type cluster_state: str + :param quota_info: The quota information. + :type quota_info: ~azure.mgmt.hdinsight.models.QuotaInfo + :param errors: The list of errors. + :type errors: list[~azure.mgmt.hdinsight.models.Errors] + :param connectivity_endpoints: The list of connectivity endpoints. + :type connectivity_endpoints: + list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint] + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties + """ + + _validation = { + 'cluster_definition': {'required': True}, + } + + _attribute_map = { + 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'OSType'}, + 'tier': {'key': 'tier', 'type': 'Tier'}, + 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, + 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, + 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'}, + 'created_date': {'key': 'createdDate', 'type': 'str'}, + 'cluster_state': {'key': 'clusterState', 'type': 'str'}, + 'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'}, + 'errors': {'key': 'errors', 'type': '[Errors]'}, + 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, + } + + def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=None, tier=None, security_profile=None, compute_profile=None, provisioning_state=None, created_date: str=None, cluster_state: str=None, quota_info=None, errors=None, connectivity_endpoints=None, disk_encryption_properties=None, **kwargs) -> None: + super(ClusterGetProperties, self).__init__(**kwargs) + self.cluster_version = cluster_version + self.os_type = os_type + self.tier = tier + self.cluster_definition = cluster_definition + self.security_profile = security_profile + self.compute_profile = compute_profile + self.provisioning_state = provisioning_state + self.created_date = created_date + self.cluster_state = cluster_state + self.quota_info = quota_info + self.errors = errors + self.connectivity_endpoints = connectivity_endpoints + self.disk_encryption_properties = disk_encryption_properties + + +class ClusterIdentity(Model): + """Identity for the cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of cluster identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the cluster. This property + will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the cluster. The type + 'SystemAssigned, UserAssigned' includes both an implicitly created + identity and a set of user assigned identities. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the cluster. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: + super(ClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities + + +class ClusterIdentityUserAssignedIdentitiesValue(Model): + """ClusterIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class ClusterListPersistedScriptActionsResult(Model): + """The ListPersistedScriptActions operation response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: The list of Persisted Script Actions. + :type value: list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :ivar next_link: The link (url) to the next page of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RuntimeScriptAction]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ClusterListPersistedScriptActionsResult, self).__init__(**kwargs) + self.value = value + self.next_link = None + + +class ClusterListRuntimeScriptActionDetailResult(Model): + """The list runtime script action detail response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar value: The list of persisted script action details for the cluster. + :vartype value: + list[~azure.mgmt.hdinsight.models.RuntimeScriptActionDetail] + :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': '[RuntimeScriptActionDetail]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ClusterListRuntimeScriptActionDetailResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ClusterMonitoringRequest(Model): + """The Operations Management Suite (OMS) parameters. + + :param workspace_id: The Operations Management Suite (OMS) workspace ID. + :type workspace_id: str + :param primary_key: The Operations Management Suite (OMS) workspace key. + :type primary_key: str + """ + + _attribute_map = { + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + 'primary_key': {'key': 'primaryKey', 'type': 'str'}, + } + + def __init__(self, *, workspace_id: str=None, primary_key: str=None, **kwargs) -> None: + super(ClusterMonitoringRequest, self).__init__(**kwargs) + self.workspace_id = workspace_id + self.primary_key = primary_key + + +class ClusterMonitoringResponse(Model): + """The Operations Management Suite (OMS) status response. + + :param cluster_monitoring_enabled: The status of the Operations Management + Suite (OMS) on the HDInsight cluster. + :type cluster_monitoring_enabled: bool + :param workspace_id: The workspace ID of the Operations Management Suite + (OMS) on the HDInsight cluster. + :type workspace_id: str + """ + + _attribute_map = { + 'cluster_monitoring_enabled': {'key': 'clusterMonitoringEnabled', 'type': 'bool'}, + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + } + + def __init__(self, *, cluster_monitoring_enabled: bool=None, workspace_id: str=None, **kwargs) -> None: + super(ClusterMonitoringResponse, self).__init__(**kwargs) + self.cluster_monitoring_enabled = cluster_monitoring_enabled + self.workspace_id = workspace_id + + +class ClusterPatchParameters(Model): + """The PatchCluster request parameters. + + :param tags: The resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(ClusterPatchParameters, self).__init__(**kwargs) + self.tags = tags + + +class ClusterResizeParameters(Model): + """The Resize Cluster request parameters. + + :param target_instance_count: The target instance count for the operation. + :type target_instance_count: int + """ + + _attribute_map = { + 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, + } + + def __init__(self, *, target_instance_count: int=None, **kwargs) -> None: + super(ClusterResizeParameters, self).__init__(**kwargs) + self.target_instance_count = target_instance_count + + +class ComputeProfile(Model): + """Describes the compute profile. + + :param roles: The list of roles in the cluster. + :type roles: list[~azure.mgmt.hdinsight.models.Role] + """ + + _attribute_map = { + 'roles': {'key': 'roles', 'type': '[Role]'}, + } + + def __init__(self, *, roles=None, **kwargs) -> None: + super(ComputeProfile, self).__init__(**kwargs) + self.roles = roles + + +class ConnectivityEndpoint(Model): + """The connectivity properties. + + :param name: The name of the endpoint. + :type name: str + :param protocol: The protocol of the endpoint. + :type protocol: str + :param location: The location of the endpoint. + :type location: str + :param port: The port to connect to. + :type port: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, name: str=None, protocol: str=None, location: str=None, port: int=None, **kwargs) -> None: + super(ConnectivityEndpoint, self).__init__(**kwargs) + self.name = name + self.protocol = protocol + self.location = location + self.port = port + + +class DataDisksGroups(Model): + """The data disks groups for the role. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param disks_per_node: The number of disks per node. + :type disks_per_node: int + :ivar storage_account_type: ReadOnly. The storage account type. Do not set + this value. + :vartype storage_account_type: str + :ivar disk_size_gb: ReadOnly. The DiskSize in GB. Do not set this value. + :vartype disk_size_gb: int + """ + + _validation = { + 'storage_account_type': {'readonly': True}, + 'disk_size_gb': {'readonly': True}, + } + + _attribute_map = { + 'disks_per_node': {'key': 'disksPerNode', 'type': 'int'}, + 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, + 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, + } + + def __init__(self, *, disks_per_node: int=None, **kwargs) -> None: + super(DataDisksGroups, self).__init__(**kwargs) + self.disks_per_node = disks_per_node + self.storage_account_type = None + self.disk_size_gb = None + + +class DiskEncryptionProperties(Model): + """The disk encryption properties. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + :param encryption_algorithm: Algorithm identifier for encryption, default + RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' + :type encryption_algorithm: str or + ~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm + :param msi_resource_id: Resource ID of Managed Identity that is used to + access the key vault. + :type msi_resource_id: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, encryption_algorithm=None, msi_resource_id: str=None, **kwargs) -> None: + super(DiskEncryptionProperties, self).__init__(**kwargs) + self.vault_uri = vault_uri + self.key_name = key_name + self.key_version = key_version + self.encryption_algorithm = encryption_algorithm + self.msi_resource_id = msi_resource_id + + +class ErrorResponse(Model): + """Describes the format of Error response. + + :param code: Error code + :type code: str + :param message: Error message indicating why the operation failed. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.code = code + self.message = message + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + + +class Errors(Model): + """The error message associated with the cluster creation. + + :param code: The error code. + :type code: str + :param message: The error message. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(Errors, self).__init__(**kwargs) + self.code = code + self.message = message + + +class ExecuteScriptActionParameters(Model): + """The parameters for the script actions to execute on a running cluster. + + All required parameters must be populated in order to send to Azure. + + :param script_actions: The list of run time script actions. + :type script_actions: + list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] + :param persist_on_success: Required. Gets or sets if the scripts needs to + be persisted. + :type persist_on_success: bool + """ + + _validation = { + 'persist_on_success': {'required': True}, + } + + _attribute_map = { + 'script_actions': {'key': 'scriptActions', 'type': '[RuntimeScriptAction]'}, + 'persist_on_success': {'key': 'persistOnSuccess', 'type': 'bool'}, + } + + def __init__(self, *, persist_on_success: bool, script_actions=None, **kwargs) -> None: + super(ExecuteScriptActionParameters, self).__init__(**kwargs) + self.script_actions = script_actions + self.persist_on_success = persist_on_success + + +class Extension(Model): + """Cluster monitoring extensions. + + :param workspace_id: The workspace ID for the cluster monitoring + extension. + :type workspace_id: str + :param primary_key: The certificate for the cluster monitoring extensions. + :type primary_key: str + """ + + _attribute_map = { + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + 'primary_key': {'key': 'primaryKey', 'type': 'str'}, + } + + def __init__(self, *, workspace_id: str=None, primary_key: str=None, **kwargs) -> None: + super(Extension, self).__init__(**kwargs) + self.workspace_id = workspace_id + self.primary_key = primary_key + + +class GatewaySettings(Model): + """Gateway settings. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar is_credential_enabled: Indicates whether or not the gateway settings + based authorization is enabled. + :vartype is_credential_enabled: str + :ivar user_name: The gateway settings user name. + :vartype user_name: str + :ivar password: The gateway settings user password. + :vartype password: str + """ + + _validation = { + 'is_credential_enabled': {'readonly': True}, + 'user_name': {'readonly': True}, + 'password': {'readonly': True}, + } + + _attribute_map = { + 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'}, + 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, + 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(GatewaySettings, self).__init__(**kwargs) + self.is_credential_enabled = None + self.user_name = None + self.password = None + + +class HardwareProfile(Model): + """The hardware profile. + + :param vm_size: The size of the VM + :type vm_size: str + """ + + _attribute_map = { + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + } + + def __init__(self, *, vm_size: str=None, **kwargs) -> None: + super(HardwareProfile, self).__init__(**kwargs) + self.vm_size = vm_size + + +class LinuxOperatingSystemProfile(Model): + """The ssh username, password, and ssh public key. + + :param username: The username. + :type username: str + :param password: The password. + :type password: str + :param ssh_profile: The SSH profile. + :type ssh_profile: ~azure.mgmt.hdinsight.models.SshProfile + """ + + _attribute_map = { + 'username': {'key': 'username', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'ssh_profile': {'key': 'sshProfile', 'type': 'SshProfile'}, + } + + def __init__(self, *, username: str=None, password: str=None, ssh_profile=None, **kwargs) -> None: + super(LinuxOperatingSystemProfile, self).__init__(**kwargs) + self.username = username + self.password = password + self.ssh_profile = ssh_profile + + +class LocalizedName(Model): + """The details about the localizable name of a type of usage. + + :param value: The name of the used resource. + :type value: str + :param localized_value: The localized name of the used resource. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None: + super(LocalizedName, self).__init__(**kwargs) + self.value = value + self.localized_value = localized_value + + +class Operation(Model): + """The HDInsight REST API operation. + + :param name: The operation name: {provider}/{resource}/{operation} + :type name: str + :param display: The object that represents the operation. + :type display: ~azure.mgmt.hdinsight.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, name: str=None, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(Model): + """The object that represents the operation. + + :param provider: The service provider: Microsoft.HDInsight + :type provider: str + :param resource: The resource on which the operation is performed: + Cluster, Applications, etc. + :type resource: str + :param operation: The operation type: read, write, delete, etc. + :type operation: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + + +class OperationResource(Model): + """The azure async operation response. + + :param status: The async operation state. Possible values include: + 'InProgress', 'Succeeded', 'Failed' + :type status: str or ~azure.mgmt.hdinsight.models.AsyncOperationState + :param error: The operation error information. + :type error: ~azure.mgmt.hdinsight.models.Errors + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'AsyncOperationState'}, + 'error': {'key': 'error', 'type': 'Errors'}, + } + + def __init__(self, *, status=None, error=None, **kwargs) -> None: + super(OperationResource, self).__init__(**kwargs) + self.status = status + self.error = error + + +class OsProfile(Model): + """The Linux operation systems profile. + + :param linux_operating_system_profile: The Linux OS profile. + :type linux_operating_system_profile: + ~azure.mgmt.hdinsight.models.LinuxOperatingSystemProfile + """ + + _attribute_map = { + 'linux_operating_system_profile': {'key': 'linuxOperatingSystemProfile', 'type': 'LinuxOperatingSystemProfile'}, + } + + def __init__(self, *, linux_operating_system_profile=None, **kwargs) -> None: + super(OsProfile, self).__init__(**kwargs) + self.linux_operating_system_profile = linux_operating_system_profile + + +class QuotaInfo(Model): + """The quota properties for the cluster. + + :param cores_used: The cores used by the cluster. + :type cores_used: int + """ + + _attribute_map = { + 'cores_used': {'key': 'coresUsed', 'type': 'int'}, + } + + def __init__(self, *, cores_used: int=None, **kwargs) -> None: + super(QuotaInfo, self).__init__(**kwargs) + self.cores_used = cores_used + + +class Role(Model): + """Describes a role on the cluster. + + :param name: The name of the role. + :type name: str + :param min_instance_count: The minimum instance count of the cluster. + :type min_instance_count: int + :param target_instance_count: The instance count of the cluster. + :type target_instance_count: int + :param hardware_profile: The hardware profile. + :type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile + :param os_profile: The operating system profile. + :type os_profile: ~azure.mgmt.hdinsight.models.OsProfile + :param virtual_network_profile: The virtual network profile. + :type virtual_network_profile: + ~azure.mgmt.hdinsight.models.VirtualNetworkProfile + :param data_disks_groups: The data disks groups for the role. + :type data_disks_groups: + list[~azure.mgmt.hdinsight.models.DataDisksGroups] + :param script_actions: The list of script actions on the role. + :type script_actions: list[~azure.mgmt.hdinsight.models.ScriptAction] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, + 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, + 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, + 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'}, + 'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'}, + 'data_disks_groups': {'key': 'dataDisksGroups', 'type': '[DataDisksGroups]'}, + 'script_actions': {'key': 'scriptActions', 'type': '[ScriptAction]'}, + } + + def __init__(self, *, name: str=None, min_instance_count: int=None, target_instance_count: int=None, hardware_profile=None, os_profile=None, virtual_network_profile=None, data_disks_groups=None, script_actions=None, **kwargs) -> None: + super(Role, self).__init__(**kwargs) + self.name = name + self.min_instance_count = min_instance_count + self.target_instance_count = target_instance_count + self.hardware_profile = hardware_profile + self.os_profile = os_profile + self.virtual_network_profile = virtual_network_profile + self.data_disks_groups = data_disks_groups + self.script_actions = script_actions + + +class RuntimeScriptAction(Model): + """Describes a script action on a running cluster. + + 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 name of the script action. + :type name: str + :param uri: Required. The URI to the script. + :type uri: str + :param parameters: The parameters for the script + :type parameters: str + :param roles: Required. The list of roles where script will be executed. + :type roles: list[str] + :ivar application_name: The application name of the script action, if any. + :vartype application_name: str + """ + + _validation = { + 'name': {'required': True}, + 'uri': {'required': True}, + 'roles': {'required': True}, + 'application_name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'application_name': {'key': 'applicationName', 'type': 'str'}, + } + + def __init__(self, *, name: str, uri: str, roles, parameters: str=None, **kwargs) -> None: + super(RuntimeScriptAction, self).__init__(**kwargs) + self.name = name + self.uri = uri + self.parameters = parameters + self.roles = roles + self.application_name = None + + +class RuntimeScriptActionDetail(RuntimeScriptAction): + """The execution details of a script action. + + 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 name of the script action. + :type name: str + :param uri: Required. The URI to the script. + :type uri: str + :param parameters: The parameters for the script + :type parameters: str + :param roles: Required. The list of roles where script will be executed. + :type roles: list[str] + :ivar application_name: The application name of the script action, if any. + :vartype application_name: str + :ivar script_execution_id: The execution id of the script action. + :vartype script_execution_id: long + :ivar start_time: The start time of script action execution. + :vartype start_time: str + :ivar end_time: The end time of script action execution. + :vartype end_time: str + :ivar status: The current execution status of the script action. + :vartype status: str + :ivar operation: The reason why the script action was executed. + :vartype operation: str + :ivar execution_summary: The summary of script action execution result. + :vartype execution_summary: + list[~azure.mgmt.hdinsight.models.ScriptActionExecutionSummary] + :ivar debug_information: The script action execution debug information. + :vartype debug_information: str + """ + + _validation = { + 'name': {'required': True}, + 'uri': {'required': True}, + 'roles': {'required': True}, + 'application_name': {'readonly': True}, + 'script_execution_id': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'status': {'readonly': True}, + 'operation': {'readonly': True}, + 'execution_summary': {'readonly': True}, + 'debug_information': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'application_name': {'key': 'applicationName', 'type': 'str'}, + 'script_execution_id': {'key': 'scriptExecutionId', 'type': 'long'}, + 'start_time': {'key': 'startTime', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'execution_summary': {'key': 'executionSummary', 'type': '[ScriptActionExecutionSummary]'}, + 'debug_information': {'key': 'debugInformation', 'type': 'str'}, + } + + def __init__(self, *, name: str, uri: str, roles, parameters: str=None, **kwargs) -> None: + super(RuntimeScriptActionDetail, self).__init__(name=name, uri=uri, parameters=parameters, roles=roles, **kwargs) + self.script_execution_id = None + self.start_time = None + self.end_time = None + self.status = None + self.operation = None + self.execution_summary = None + self.debug_information = None + + +class ScriptAction(Model): + """Describes a script action on role on the cluster. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the script action. + :type name: str + :param uri: Required. The URI to the script. + :type uri: str + :param parameters: Required. The parameters for the script provided. + :type parameters: str + """ + + _validation = { + 'name': {'required': True}, + 'uri': {'required': True}, + 'parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + } + + def __init__(self, *, name: str, uri: str, parameters: str, **kwargs) -> None: + super(ScriptAction, self).__init__(**kwargs) + self.name = name + self.uri = uri + self.parameters = parameters + + +class ScriptActionExecutionSummary(Model): + """The execution summary of a script action. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: The status of script action execution. + :vartype status: str + :ivar instance_count: The instance count for a given script action + execution status. + :vartype instance_count: int + """ + + _validation = { + 'status': {'readonly': True}, + 'instance_count': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'instance_count': {'key': 'instanceCount', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(ScriptActionExecutionSummary, self).__init__(**kwargs) + self.status = None + self.instance_count = None + + +class ScriptActionPersistedGetResponseSpec(Model): + """The persisted script action for cluster. + + :param name: The name of script action. + :type name: str + :param uri: The URI to the script. + :type uri: str + :param parameters: The parameters for the script provided. + :type parameters: str + :param roles: The list of roles where script will be executed. + :type roles: list[str] + :param application_name: The application name for the script action. + :type application_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'parameters': {'key': 'parameters', 'type': 'str'}, + 'roles': {'key': 'roles', 'type': '[str]'}, + 'application_name': {'key': 'applicationName', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, uri: str=None, parameters: str=None, roles=None, application_name: str=None, **kwargs) -> None: + super(ScriptActionPersistedGetResponseSpec, self).__init__(**kwargs) + self.name = name + self.uri = uri + self.parameters = parameters + self.roles = roles + self.application_name = application_name + + +class SecurityProfile(Model): + """The security profile which contains Ssh public key for the HDInsight + cluster. + + :param directory_type: The directory type. Possible values include: + 'ActiveDirectory' + :type directory_type: str or ~azure.mgmt.hdinsight.models.DirectoryType + :param domain: The organization's active directory domain. + :type domain: str + :param organizational_unit_dn: The organizational unit within the Active + Directory to place the cluster and service accounts. + :type organizational_unit_dn: str + :param ldaps_urls: The LDAPS protocol URLs to communicate with the Active + Directory. + :type ldaps_urls: list[str] + :param domain_username: The domain user account that will have admin + privileges on the cluster. + :type domain_username: str + :param domain_user_password: The domain admin password. + :type domain_user_password: str + :param cluster_users_group_dns: Optional. The Distinguished Names for + cluster user groups + :type cluster_users_group_dns: list[str] + :param aadds_resource_id: The resource ID of the user's Azure Active + Directory Domain Service. + :type aadds_resource_id: str + :param msi_resource_id: User assigned identity that has permissions to + read and create cluster-related artifacts in the user's AADDS. + :type msi_resource_id: str + """ + + _attribute_map = { + 'directory_type': {'key': 'directoryType', 'type': 'DirectoryType'}, + 'domain': {'key': 'domain', 'type': 'str'}, + 'organizational_unit_dn': {'key': 'organizationalUnitDN', 'type': 'str'}, + 'ldaps_urls': {'key': 'ldapsUrls', 'type': '[str]'}, + 'domain_username': {'key': 'domainUsername', 'type': 'str'}, + 'domain_user_password': {'key': 'domainUserPassword', 'type': 'str'}, + 'cluster_users_group_dns': {'key': 'clusterUsersGroupDNs', 'type': '[str]'}, + 'aadds_resource_id': {'key': 'aaddsResourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, *, directory_type=None, domain: str=None, organizational_unit_dn: str=None, ldaps_urls=None, domain_username: str=None, domain_user_password: str=None, cluster_users_group_dns=None, aadds_resource_id: str=None, msi_resource_id: str=None, **kwargs) -> None: + super(SecurityProfile, self).__init__(**kwargs) + self.directory_type = directory_type + self.domain = domain + self.organizational_unit_dn = organizational_unit_dn + self.ldaps_urls = ldaps_urls + self.domain_username = domain_username + self.domain_user_password = domain_user_password + self.cluster_users_group_dns = cluster_users_group_dns + self.aadds_resource_id = aadds_resource_id + self.msi_resource_id = msi_resource_id + + +class SshProfile(Model): + """The list of SSH public keys. + + :param public_keys: The list of SSH public keys. + :type public_keys: list[~azure.mgmt.hdinsight.models.SshPublicKey] + """ + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[SshPublicKey]'}, + } + + def __init__(self, *, public_keys=None, **kwargs) -> None: + super(SshProfile, self).__init__(**kwargs) + self.public_keys = public_keys + + +class SshPublicKey(Model): + """The SSH public key for the cluster nodes. + + :param certificate_data: The certificate for SSH. + :type certificate_data: str + """ + + _attribute_map = { + 'certificate_data': {'key': 'certificateData', 'type': 'str'}, + } + + def __init__(self, *, certificate_data: str=None, **kwargs) -> None: + super(SshPublicKey, self).__init__(**kwargs) + self.certificate_data = certificate_data + + +class StorageAccount(Model): + """The storage Account. + + :param name: The name of the storage account. + :type name: str + :param is_default: Whether or not the storage account is the default + storage account. + :type is_default: bool + :param container: The container in the storage account, only to be + specified for WASB storage accounts. + :type container: str + :param file_system: The filesystem, only to be specified for Azure Data + Lake Storage type Gen 2. + :type file_system: str + :param key: The storage account access key. + :type key: str + :param resource_id: The resource ID of storage account, only to be + specified for Azure Data Lake Storage Gen 2. + :type resource_id: str + :param msi_resource_id: The managed identity (MSI) that is allowed to + access the storage account, only to be specified for Azure Data Lake + Storage Gen 2. + :type msi_resource_id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'is_default': {'key': 'isDefault', 'type': 'bool'}, + 'container': {'key': 'container', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, is_default: bool=None, container: str=None, file_system: str=None, key: str=None, resource_id: str=None, msi_resource_id: str=None, **kwargs) -> None: + super(StorageAccount, self).__init__(**kwargs) + self.name = name + self.is_default = is_default + self.container = container + self.file_system = file_system + self.key = key + self.resource_id = resource_id + self.msi_resource_id = msi_resource_id + + +class StorageProfile(Model): + """The storage profile. + + :param storageaccounts: The list of storage accounts in the cluster. + :type storageaccounts: list[~azure.mgmt.hdinsight.models.StorageAccount] + """ + + _attribute_map = { + 'storageaccounts': {'key': 'storageaccounts', 'type': '[StorageAccount]'}, + } + + def __init__(self, *, storageaccounts=None, **kwargs) -> None: + super(StorageProfile, self).__init__(**kwargs) + self.storageaccounts = storageaccounts + + +class UpdateGatewaySettingsParameters(Model): + """The update gateway settings request parameters. + + :param is_credential_enabled: Indicates whether or not the gateway + settings based authorization is enabled. Default value: True . + :type is_credential_enabled: bool + :param user_name: The gateway settings user name. + :type user_name: str + :param password: The gateway settings user password. + :type password: str + """ + + _attribute_map = { + 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'}, + 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, + 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, + } + + def __init__(self, *, is_credential_enabled: bool=True, user_name: str=None, password: str=None, **kwargs) -> None: + super(UpdateGatewaySettingsParameters, self).__init__(**kwargs) + self.is_credential_enabled = is_credential_enabled + self.user_name = user_name + self.password = password + + +class Usage(Model): + """The details about the usage of a particular limited resource. + + :param unit: The type of measurement for usage. + :type unit: str + :param current_value: The current usage. + :type current_value: int + :param limit: The maximum allowed usage. + :type limit: int + :param name: The details about the localizable name of the used resource. + :type name: ~azure.mgmt.hdinsight.models.LocalizedName + """ + + _attribute_map = { + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'LocalizedName'}, + } + + def __init__(self, *, unit: str=None, current_value: int=None, limit: int=None, name=None, **kwargs) -> None: + super(Usage, self).__init__(**kwargs) + self.unit = unit + self.current_value = current_value + self.limit = limit + self.name = name + + +class UsagesListResult(Model): + """The response for the operation to get regional usages for a subscription. + + :param value: The list of usages. + :type value: list[~azure.mgmt.hdinsight.models.Usage] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Usage]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(UsagesListResult, self).__init__(**kwargs) + self.value = value + + +class VirtualNetworkProfile(Model): + """The virtual network properties. + + :param id: The ID of the virtual network. + :type id: str + :param subnet: The name of the subnet. + :type subnet: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subnet': {'key': 'subnet', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, subnet: str=None, **kwargs) -> None: + super(VirtualNetworkProfile, self).__init__(**kwargs) + self.id = id + self.subnet = subnet diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_paged_models.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_paged_models.py new file mode 100644 index 000000000000..739bea21bf5d --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_paged_models.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ClusterPaged(Paged): + """ + A paging container for iterating over a list of :class:`Cluster ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Cluster]'} + } + + def __init__(self, *args, **kwargs): + + super(ClusterPaged, self).__init__(*args, **kwargs) +class ApplicationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Application ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Application]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationPaged, self).__init__(*args, **kwargs) +class RuntimeScriptActionDetailPaged(Paged): + """ + A paging container for iterating over a list of :class:`RuntimeScriptActionDetail ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RuntimeScriptActionDetail]'} + } + + def __init__(self, *args, **kwargs): + + super(RuntimeScriptActionDetailPaged, self).__init__(*args, **kwargs) +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application.py deleted file mode 100644 index fa0ede6700d4..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application.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 .proxy_resource import ProxyResource - - -class Application(ProxyResource): - """The HDInsight cluster application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param etag: The ETag for the application - :type etag: str - :param tags: The tags for the application. - :type tags: dict[str, str] - :param properties: The properties of the application. - :type properties: ~azure.mgmt.hdinsight.models.ApplicationProperties - """ - - _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'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'ApplicationProperties'}, - } - - def __init__(self, **kwargs): - super(Application, self).__init__(**kwargs) - self.etag = kwargs.get('etag', None) - self.tags = kwargs.get('tags', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_endpoint.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_endpoint.py deleted file mode 100644 index c4b9f5cd1be7..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_endpoint.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 ApplicationGetEndpoint(Model): - """Gets the application SSH endpoint. - - :param location: The location of the endpoint. - :type location: str - :param destination_port: The destination port to connect to. - :type destination_port: int - :param public_port: The public port to connect to. - :type public_port: int - """ - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'destination_port': {'key': 'destinationPort', 'type': 'int'}, - 'public_port': {'key': 'publicPort', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ApplicationGetEndpoint, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.destination_port = kwargs.get('destination_port', None) - self.public_port = kwargs.get('public_port', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_endpoint_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_endpoint_py3.py deleted file mode 100644 index 7496fb1c7693..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_endpoint_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 ApplicationGetEndpoint(Model): - """Gets the application SSH endpoint. - - :param location: The location of the endpoint. - :type location: str - :param destination_port: The destination port to connect to. - :type destination_port: int - :param public_port: The public port to connect to. - :type public_port: int - """ - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'destination_port': {'key': 'destinationPort', 'type': 'int'}, - 'public_port': {'key': 'publicPort', 'type': 'int'}, - } - - def __init__(self, *, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None: - super(ApplicationGetEndpoint, self).__init__(**kwargs) - self.location = location - self.destination_port = destination_port - self.public_port = public_port diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py deleted file mode 100644 index b4536fc4f42d..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.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 ApplicationGetHttpsEndpoint(Model): - """Gets the application HTTP endpoints. - - :param access_modes: The list of access modes for the application. - :type access_modes: list[str] - :param location: The location of the endpoint. - :type location: str - :param destination_port: The destination port to connect to. - :type destination_port: int - :param public_port: The public port to connect to. - :type public_port: int - """ - - _attribute_map = { - 'access_modes': {'key': 'accessModes', 'type': '[str]'}, - 'location': {'key': 'location', 'type': 'str'}, - 'destination_port': {'key': 'destinationPort', 'type': 'int'}, - 'public_port': {'key': 'publicPort', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) - self.access_modes = kwargs.get('access_modes', None) - self.location = kwargs.get('location', None) - self.destination_port = kwargs.get('destination_port', None) - self.public_port = kwargs.get('public_port', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py deleted file mode 100644 index e23d24ac3368..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_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 ApplicationGetHttpsEndpoint(Model): - """Gets the application HTTP endpoints. - - :param access_modes: The list of access modes for the application. - :type access_modes: list[str] - :param location: The location of the endpoint. - :type location: str - :param destination_port: The destination port to connect to. - :type destination_port: int - :param public_port: The public port to connect to. - :type public_port: int - """ - - _attribute_map = { - 'access_modes': {'key': 'accessModes', 'type': '[str]'}, - 'location': {'key': 'location', 'type': 'str'}, - 'destination_port': {'key': 'destinationPort', 'type': 'int'}, - 'public_port': {'key': 'publicPort', 'type': 'int'}, - } - - def __init__(self, *, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None: - super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) - self.access_modes = access_modes - self.location = location - self.destination_port = destination_port - self.public_port = public_port diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_paged.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_paged.py deleted file mode 100644 index 4d8b02340d69..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ApplicationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Application ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Application]'} - } - - def __init__(self, *args, **kwargs): - - super(ApplicationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py deleted file mode 100644 index 3318ebcc61dd..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplicationProperties(Model): - """The HDInsight cluster application GET response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param compute_profile: The list of roles in the cluster. - :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile - :param install_script_actions: The list of install script actions. - :type install_script_actions: - list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :param uninstall_script_actions: The list of uninstall script actions. - :type uninstall_script_actions: - list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :param https_endpoints: The list of application HTTPS endpoints. - :type https_endpoints: - list[~azure.mgmt.hdinsight.models.ApplicationGetHttpsEndpoint] - :param ssh_endpoints: The list of application SSH endpoints. - :type ssh_endpoints: - list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint] - :ivar provisioning_state: The provisioning state of the application. - :vartype provisioning_state: str - :param application_type: The application type. - :type application_type: str - :ivar application_state: The application state. - :vartype application_state: str - :param errors: The list of errors. - :type errors: list[~azure.mgmt.hdinsight.models.Errors] - :ivar created_date: The application create date time. - :vartype created_date: str - :ivar marketplace_identifier: The marketplace identifier. - :vartype marketplace_identifier: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'application_state': {'readonly': True}, - 'created_date': {'readonly': True}, - 'marketplace_identifier': {'readonly': True}, - } - - _attribute_map = { - 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, - 'install_script_actions': {'key': 'installScriptActions', 'type': '[RuntimeScriptAction]'}, - 'uninstall_script_actions': {'key': 'uninstallScriptActions', 'type': '[RuntimeScriptAction]'}, - 'https_endpoints': {'key': 'httpsEndpoints', 'type': '[ApplicationGetHttpsEndpoint]'}, - 'ssh_endpoints': {'key': 'sshEndpoints', 'type': '[ApplicationGetEndpoint]'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'application_type': {'key': 'applicationType', 'type': 'str'}, - 'application_state': {'key': 'applicationState', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[Errors]'}, - 'created_date': {'key': 'createdDate', 'type': 'str'}, - 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ApplicationProperties, self).__init__(**kwargs) - self.compute_profile = kwargs.get('compute_profile', None) - self.install_script_actions = kwargs.get('install_script_actions', None) - self.uninstall_script_actions = kwargs.get('uninstall_script_actions', None) - self.https_endpoints = kwargs.get('https_endpoints', None) - self.ssh_endpoints = kwargs.get('ssh_endpoints', None) - self.provisioning_state = None - self.application_type = kwargs.get('application_type', None) - self.application_state = None - self.errors = kwargs.get('errors', None) - self.created_date = None - self.marketplace_identifier = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py deleted file mode 100644 index 9c3c4e55d5d4..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py +++ /dev/null @@ -1,82 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ApplicationProperties(Model): - """The HDInsight cluster application GET response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param compute_profile: The list of roles in the cluster. - :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile - :param install_script_actions: The list of install script actions. - :type install_script_actions: - list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :param uninstall_script_actions: The list of uninstall script actions. - :type uninstall_script_actions: - list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :param https_endpoints: The list of application HTTPS endpoints. - :type https_endpoints: - list[~azure.mgmt.hdinsight.models.ApplicationGetHttpsEndpoint] - :param ssh_endpoints: The list of application SSH endpoints. - :type ssh_endpoints: - list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint] - :ivar provisioning_state: The provisioning state of the application. - :vartype provisioning_state: str - :param application_type: The application type. - :type application_type: str - :ivar application_state: The application state. - :vartype application_state: str - :param errors: The list of errors. - :type errors: list[~azure.mgmt.hdinsight.models.Errors] - :ivar created_date: The application create date time. - :vartype created_date: str - :ivar marketplace_identifier: The marketplace identifier. - :vartype marketplace_identifier: str - """ - - _validation = { - 'provisioning_state': {'readonly': True}, - 'application_state': {'readonly': True}, - 'created_date': {'readonly': True}, - 'marketplace_identifier': {'readonly': True}, - } - - _attribute_map = { - 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, - 'install_script_actions': {'key': 'installScriptActions', 'type': '[RuntimeScriptAction]'}, - 'uninstall_script_actions': {'key': 'uninstallScriptActions', 'type': '[RuntimeScriptAction]'}, - 'https_endpoints': {'key': 'httpsEndpoints', 'type': '[ApplicationGetHttpsEndpoint]'}, - 'ssh_endpoints': {'key': 'sshEndpoints', 'type': '[ApplicationGetEndpoint]'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'application_type': {'key': 'applicationType', 'type': 'str'}, - 'application_state': {'key': 'applicationState', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[Errors]'}, - 'created_date': {'key': 'createdDate', 'type': 'str'}, - 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, - } - - def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type: str=None, errors=None, **kwargs) -> None: - super(ApplicationProperties, self).__init__(**kwargs) - self.compute_profile = compute_profile - self.install_script_actions = install_script_actions - self.uninstall_script_actions = uninstall_script_actions - self.https_endpoints = https_endpoints - self.ssh_endpoints = ssh_endpoints - self.provisioning_state = None - self.application_type = application_type - self.application_state = None - self.errors = errors - self.created_date = None - self.marketplace_identifier = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_py3.py deleted file mode 100644 index f7628ebf413c..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_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 .proxy_resource_py3 import ProxyResource - - -class Application(ProxyResource): - """The HDInsight cluster application. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param etag: The ETag for the application - :type etag: str - :param tags: The tags for the application. - :type tags: dict[str, str] - :param properties: The properties of the application. - :type properties: ~azure.mgmt.hdinsight.models.ApplicationProperties - """ - - _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'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'ApplicationProperties'}, - } - - def __init__(self, *, etag: str=None, tags=None, properties=None, **kwargs) -> None: - super(Application, self).__init__(**kwargs) - self.etag = etag - self.tags = tags - self.properties = properties diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py deleted file mode 100644 index a9789d7e0561..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.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 .tracked_resource import TrackedResource - - -class Cluster(TrackedResource): - """The HDInsight cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The Azure Region where the resource lives - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param etag: The ETag for the resource - :type etag: str - :param properties: The properties of the cluster. - :type properties: ~azure.mgmt.hdinsight.models.ClusterGetProperties - :param identity: The identity of the cluster, if configured. - :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ClusterGetProperties'}, - 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, - } - - def __init__(self, **kwargs): - super(Cluster, self).__init__(**kwargs) - self.etag = kwargs.get('etag', None) - self.properties = kwargs.get('properties', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_configurations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_configurations.py deleted file mode 100644 index 15df30d5672a..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_configurations.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterConfigurations(Model): - """The configuration object for the specified cluster. - - :param configurations: The configuration object for the specified - configuration for the specified cluster. - :type configurations: dict[str, dict[str, str]] - """ - - _attribute_map = { - 'configurations': {'key': 'configurations', 'type': '{{str}}'}, - } - - def __init__(self, **kwargs): - super(ClusterConfigurations, self).__init__(**kwargs) - self.configurations = kwargs.get('configurations', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_configurations_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_configurations_py3.py deleted file mode 100644 index 9286c9554ee8..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_configurations_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterConfigurations(Model): - """The configuration object for the specified cluster. - - :param configurations: The configuration object for the specified - configuration for the specified cluster. - :type configurations: dict[str, dict[str, str]] - """ - - _attribute_map = { - 'configurations': {'key': 'configurations', 'type': '{{str}}'}, - } - - def __init__(self, *, configurations=None, **kwargs) -> None: - super(ClusterConfigurations, self).__init__(**kwargs) - self.configurations = configurations diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py deleted file mode 100644 index cf52365c9f99..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.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 ClusterCreateParametersExtended(Model): - """The CreateCluster request parameters. - - :param location: The location of the cluster. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param properties: The cluster create parameters. - :type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties - :param identity: The identity of the cluster, if configured. - :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity - """ - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'}, - 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, - } - - def __init__(self, **kwargs): - super(ClusterCreateParametersExtended, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) - self.properties = kwargs.get('properties', None) - self.identity = kwargs.get('identity', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py deleted file mode 100644 index ab3cc3ffb567..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_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 ClusterCreateParametersExtended(Model): - """The CreateCluster request parameters. - - :param location: The location of the cluster. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param properties: The cluster create parameters. - :type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties - :param identity: The identity of the cluster, if configured. - :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity - """ - - _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'}, - 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, - } - - def __init__(self, *, location: str=None, tags=None, properties=None, identity=None, **kwargs) -> None: - super(ClusterCreateParametersExtended, self).__init__(**kwargs) - self.location = location - self.tags = tags - self.properties = properties - self.identity = identity diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py deleted file mode 100644 index 1c8ded609314..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterCreateProperties(Model): - """The cluster create parameters. - - :param cluster_version: The version of the cluster. - :type cluster_version: str - :param os_type: The type of operating system. Possible values include: - 'Windows', 'Linux' - :type os_type: str or ~azure.mgmt.hdinsight.models.OSType - :param tier: The cluster tier. Possible values include: 'Standard', - 'Premium' - :type tier: str or ~azure.mgmt.hdinsight.models.Tier - :param cluster_definition: The cluster definition. - :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition - :param security_profile: The security profile. - :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile - :param compute_profile: The compute profile. - :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile - :param storage_profile: The storage profile. - :type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile - :param disk_encryption_properties: The disk encryption properties. - :type disk_encryption_properties: - ~azure.mgmt.hdinsight.models.DiskEncryptionProperties - """ - - _attribute_map = { - 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'OSType'}, - 'tier': {'key': 'tier', 'type': 'Tier'}, - 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, - 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, - 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, - 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, - 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, - } - - def __init__(self, **kwargs): - super(ClusterCreateProperties, self).__init__(**kwargs) - self.cluster_version = kwargs.get('cluster_version', None) - self.os_type = kwargs.get('os_type', None) - self.tier = kwargs.get('tier', None) - self.cluster_definition = kwargs.get('cluster_definition', None) - self.security_profile = kwargs.get('security_profile', None) - self.compute_profile = kwargs.get('compute_profile', None) - self.storage_profile = kwargs.get('storage_profile', None) - self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py deleted file mode 100644 index 4a20afc19233..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py +++ /dev/null @@ -1,59 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterCreateProperties(Model): - """The cluster create parameters. - - :param cluster_version: The version of the cluster. - :type cluster_version: str - :param os_type: The type of operating system. Possible values include: - 'Windows', 'Linux' - :type os_type: str or ~azure.mgmt.hdinsight.models.OSType - :param tier: The cluster tier. Possible values include: 'Standard', - 'Premium' - :type tier: str or ~azure.mgmt.hdinsight.models.Tier - :param cluster_definition: The cluster definition. - :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition - :param security_profile: The security profile. - :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile - :param compute_profile: The compute profile. - :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile - :param storage_profile: The storage profile. - :type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile - :param disk_encryption_properties: The disk encryption properties. - :type disk_encryption_properties: - ~azure.mgmt.hdinsight.models.DiskEncryptionProperties - """ - - _attribute_map = { - 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'OSType'}, - 'tier': {'key': 'tier', 'type': 'Tier'}, - 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, - 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, - 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, - 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, - 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, - } - - def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluster_definition=None, security_profile=None, compute_profile=None, storage_profile=None, disk_encryption_properties=None, **kwargs) -> None: - super(ClusterCreateProperties, self).__init__(**kwargs) - self.cluster_version = cluster_version - self.os_type = os_type - self.tier = tier - self.cluster_definition = cluster_definition - self.security_profile = security_profile - self.compute_profile = compute_profile - self.storage_profile = storage_profile - self.disk_encryption_properties = disk_encryption_properties diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_definition.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_definition.py deleted file mode 100644 index 7cd8bc5cb68d..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_definition.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 ClusterDefinition(Model): - """The cluster definition. - - :param blueprint: The link to the blueprint. - :type blueprint: str - :param kind: The type of cluster. - :type kind: str - :param component_version: The versions of different services in the - cluster. - :type component_version: dict[str, str] - :param configurations: The cluster configurations. - :type configurations: object - """ - - _attribute_map = { - 'blueprint': {'key': 'blueprint', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'component_version': {'key': 'componentVersion', 'type': '{str}'}, - 'configurations': {'key': 'configurations', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(ClusterDefinition, self).__init__(**kwargs) - self.blueprint = kwargs.get('blueprint', None) - self.kind = kwargs.get('kind', None) - self.component_version = kwargs.get('component_version', None) - self.configurations = kwargs.get('configurations', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_definition_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_definition_py3.py deleted file mode 100644 index 5ee220847c74..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_definition_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 ClusterDefinition(Model): - """The cluster definition. - - :param blueprint: The link to the blueprint. - :type blueprint: str - :param kind: The type of cluster. - :type kind: str - :param component_version: The versions of different services in the - cluster. - :type component_version: dict[str, str] - :param configurations: The cluster configurations. - :type configurations: object - """ - - _attribute_map = { - 'blueprint': {'key': 'blueprint', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'component_version': {'key': 'componentVersion', 'type': '{str}'}, - 'configurations': {'key': 'configurations', 'type': 'object'}, - } - - def __init__(self, *, blueprint: str=None, kind: str=None, component_version=None, configurations=None, **kwargs) -> None: - super(ClusterDefinition, self).__init__(**kwargs) - self.blueprint = blueprint - self.kind = kind - self.component_version = component_version - self.configurations = configurations diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py deleted file mode 100644 index 5be4b8a8baf4..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterDiskEncryptionParameters(Model): - """The Disk Encryption Cluster request parameters. - - :param vault_uri: Base key vault URI where the customers key is located - eg. https://myvault.vault.azure.net - :type vault_uri: str - :param key_name: Key name that is used for enabling disk encryption. - :type key_name: str - :param key_version: Specific key version that is used for enabling disk - encryption. - :type key_version: str - """ - - _attribute_map = { - 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, - 'key_name': {'key': 'keyName', 'type': 'str'}, - 'key_version': {'key': 'keyVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterDiskEncryptionParameters, self).__init__(**kwargs) - self.vault_uri = kwargs.get('vault_uri', None) - self.key_name = kwargs.get('key_name', None) - self.key_version = kwargs.get('key_version', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py deleted file mode 100644 index daca29d0db38..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterDiskEncryptionParameters(Model): - """The Disk Encryption Cluster request parameters. - - :param vault_uri: Base key vault URI where the customers key is located - eg. https://myvault.vault.azure.net - :type vault_uri: str - :param key_name: Key name that is used for enabling disk encryption. - :type key_name: str - :param key_version: Specific key version that is used for enabling disk - encryption. - :type key_version: str - """ - - _attribute_map = { - 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, - 'key_name': {'key': 'keyName', 'type': 'str'}, - 'key_version': {'key': 'keyVersion', 'type': 'str'}, - } - - def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, **kwargs) -> None: - super(ClusterDiskEncryptionParameters, self).__init__(**kwargs) - self.vault_uri = vault_uri - self.key_name = key_name - self.key_version = key_version diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py deleted file mode 100644 index 09d5d4e34216..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterGetProperties(Model): - """The properties of cluster. - - All required parameters must be populated in order to send to Azure. - - :param cluster_version: The version of the cluster. - :type cluster_version: str - :param os_type: The type of operating system. Possible values include: - 'Windows', 'Linux' - :type os_type: str or ~azure.mgmt.hdinsight.models.OSType - :param tier: The cluster tier. Possible values include: 'Standard', - 'Premium' - :type tier: str or ~azure.mgmt.hdinsight.models.Tier - :param cluster_definition: Required. The cluster definition. - :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition - :param security_profile: The security profile. - :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile - :param compute_profile: The compute profile. - :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile - :param provisioning_state: The provisioning state, which only appears in - the response. Possible values include: 'InProgress', 'Failed', - 'Succeeded', 'Canceled', 'Deleting' - :type provisioning_state: str or - ~azure.mgmt.hdinsight.models.HDInsightClusterProvisioningState - :param created_date: The date on which the cluster was created. - :type created_date: str - :param cluster_state: The state of the cluster. - :type cluster_state: str - :param quota_info: The quota information. - :type quota_info: ~azure.mgmt.hdinsight.models.QuotaInfo - :param errors: The list of errors. - :type errors: list[~azure.mgmt.hdinsight.models.Errors] - :param connectivity_endpoints: The list of connectivity endpoints. - :type connectivity_endpoints: - list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint] - :param disk_encryption_properties: The disk encryption properties. - :type disk_encryption_properties: - ~azure.mgmt.hdinsight.models.DiskEncryptionProperties - """ - - _validation = { - 'cluster_definition': {'required': True}, - } - - _attribute_map = { - 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'OSType'}, - 'tier': {'key': 'tier', 'type': 'Tier'}, - 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, - 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, - 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'}, - 'created_date': {'key': 'createdDate', 'type': 'str'}, - 'cluster_state': {'key': 'clusterState', 'type': 'str'}, - 'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'}, - 'errors': {'key': 'errors', 'type': '[Errors]'}, - 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, - 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, - } - - def __init__(self, **kwargs): - super(ClusterGetProperties, self).__init__(**kwargs) - self.cluster_version = kwargs.get('cluster_version', None) - self.os_type = kwargs.get('os_type', None) - self.tier = kwargs.get('tier', None) - self.cluster_definition = kwargs.get('cluster_definition', None) - self.security_profile = kwargs.get('security_profile', None) - self.compute_profile = kwargs.get('compute_profile', None) - self.provisioning_state = kwargs.get('provisioning_state', None) - self.created_date = kwargs.get('created_date', None) - self.cluster_state = kwargs.get('cluster_state', None) - self.quota_info = kwargs.get('quota_info', None) - self.errors = kwargs.get('errors', None) - self.connectivity_endpoints = kwargs.get('connectivity_endpoints', None) - self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py deleted file mode 100644 index 0709f53630c7..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterGetProperties(Model): - """The properties of cluster. - - All required parameters must be populated in order to send to Azure. - - :param cluster_version: The version of the cluster. - :type cluster_version: str - :param os_type: The type of operating system. Possible values include: - 'Windows', 'Linux' - :type os_type: str or ~azure.mgmt.hdinsight.models.OSType - :param tier: The cluster tier. Possible values include: 'Standard', - 'Premium' - :type tier: str or ~azure.mgmt.hdinsight.models.Tier - :param cluster_definition: Required. The cluster definition. - :type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition - :param security_profile: The security profile. - :type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile - :param compute_profile: The compute profile. - :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile - :param provisioning_state: The provisioning state, which only appears in - the response. Possible values include: 'InProgress', 'Failed', - 'Succeeded', 'Canceled', 'Deleting' - :type provisioning_state: str or - ~azure.mgmt.hdinsight.models.HDInsightClusterProvisioningState - :param created_date: The date on which the cluster was created. - :type created_date: str - :param cluster_state: The state of the cluster. - :type cluster_state: str - :param quota_info: The quota information. - :type quota_info: ~azure.mgmt.hdinsight.models.QuotaInfo - :param errors: The list of errors. - :type errors: list[~azure.mgmt.hdinsight.models.Errors] - :param connectivity_endpoints: The list of connectivity endpoints. - :type connectivity_endpoints: - list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint] - :param disk_encryption_properties: The disk encryption properties. - :type disk_encryption_properties: - ~azure.mgmt.hdinsight.models.DiskEncryptionProperties - """ - - _validation = { - 'cluster_definition': {'required': True}, - } - - _attribute_map = { - 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, - 'os_type': {'key': 'osType', 'type': 'OSType'}, - 'tier': {'key': 'tier', 'type': 'Tier'}, - 'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'}, - 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, - 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'}, - 'created_date': {'key': 'createdDate', 'type': 'str'}, - 'cluster_state': {'key': 'clusterState', 'type': 'str'}, - 'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'}, - 'errors': {'key': 'errors', 'type': '[Errors]'}, - 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, - 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, - } - - def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=None, tier=None, security_profile=None, compute_profile=None, provisioning_state=None, created_date: str=None, cluster_state: str=None, quota_info=None, errors=None, connectivity_endpoints=None, disk_encryption_properties=None, **kwargs) -> None: - super(ClusterGetProperties, self).__init__(**kwargs) - self.cluster_version = cluster_version - self.os_type = os_type - self.tier = tier - self.cluster_definition = cluster_definition - self.security_profile = security_profile - self.compute_profile = compute_profile - self.provisioning_state = provisioning_state - self.created_date = created_date - self.cluster_state = cluster_state - self.quota_info = quota_info - self.errors = errors - self.connectivity_endpoints = connectivity_endpoints - self.disk_encryption_properties = disk_encryption_properties diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py deleted file mode 100644 index faaf1bd05360..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterIdentity(Model): - """Identity for the cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of cluster identity. This property - will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the cluster. This property - will only be provided for a system assigned identity. - :vartype tenant_id: str - :param type: The type of identity used for the cluster. The type - 'SystemAssigned, UserAssigned' includes both an implicitly created - identity and a set of user assigned identities. Possible values include: - 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' - :type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType - :param user_assigned_identities: The list of user identities associated - with the cluster. The user identity dictionary key references will be ARM - resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'}, - } - - def __init__(self, **kwargs): - super(ClusterIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = kwargs.get('type', None) - self.user_assigned_identities = kwargs.get('user_assigned_identities', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py deleted file mode 100644 index 01df7592337f..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterIdentity(Model): - """Identity for the cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of cluster identity. This property - will only be provided for a system assigned identity. - :vartype principal_id: str - :ivar tenant_id: The tenant id associated with the cluster. This property - will only be provided for a system assigned identity. - :vartype tenant_id: str - :param type: The type of identity used for the cluster. The type - 'SystemAssigned, UserAssigned' includes both an implicitly created - identity and a set of user assigned identities. Possible values include: - 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' - :type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType - :param user_assigned_identities: The list of user identities associated - with the cluster. The user identity dictionary key references will be ARM - resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, - 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'}, - } - - def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: - super(ClusterIdentity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None - self.type = type - self.user_assigned_identities = user_assigned_identities diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py deleted file mode 100644 index c72247be9c88..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterIdentityUserAssignedIdentitiesValue(Model): - """ClusterIdentityUserAssignedIdentitiesValue. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py deleted file mode 100644 index 697dfdb82627..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterIdentityUserAssignedIdentitiesValue(Model): - """ClusterIdentityUserAssignedIdentitiesValue. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar principal_id: The principal id of user assigned identity. - :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. - :vartype client_id: str - """ - - _validation = { - 'principal_id': {'readonly': True}, - 'client_id': {'readonly': True}, - } - - _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'client_id': {'key': 'clientId', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) - self.principal_id = None - self.client_id = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_persisted_script_actions_result.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_persisted_script_actions_result.py deleted file mode 100644 index 861f9c41b350..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_persisted_script_actions_result.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 ClusterListPersistedScriptActionsResult(Model): - """The ListPersistedScriptActions operation response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: The list of Persisted Script Actions. - :type value: list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :ivar next_link: The link (url) to the next page of results. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[RuntimeScriptAction]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterListPersistedScriptActionsResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_persisted_script_actions_result_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_persisted_script_actions_result_py3.py deleted file mode 100644 index 4127fa03333e..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_persisted_script_actions_result_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 ClusterListPersistedScriptActionsResult(Model): - """The ListPersistedScriptActions operation response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param value: The list of Persisted Script Actions. - :type value: list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :ivar next_link: The link (url) to the next page of results. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[RuntimeScriptAction]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(ClusterListPersistedScriptActionsResult, self).__init__(**kwargs) - self.value = value - self.next_link = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_runtime_script_action_detail_result.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_runtime_script_action_detail_result.py deleted file mode 100644 index 35fa9900f8ea..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_runtime_script_action_detail_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 ClusterListRuntimeScriptActionDetailResult(Model): - """The list runtime script action detail response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar value: The list of persisted script action details for the cluster. - :vartype value: - list[~azure.mgmt.hdinsight.models.RuntimeScriptActionDetail] - :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': '[RuntimeScriptActionDetail]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterListRuntimeScriptActionDetailResult, self).__init__(**kwargs) - self.value = None - self.next_link = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_runtime_script_action_detail_result_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_runtime_script_action_detail_result_py3.py deleted file mode 100644 index 53ba6e0e8ebb..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_list_runtime_script_action_detail_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 ClusterListRuntimeScriptActionDetailResult(Model): - """The list runtime script action detail response. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar value: The list of persisted script action details for the cluster. - :vartype value: - list[~azure.mgmt.hdinsight.models.RuntimeScriptActionDetail] - :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': '[RuntimeScriptActionDetail]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ClusterListRuntimeScriptActionDetailResult, self).__init__(**kwargs) - self.value = None - self.next_link = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_request.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_request.py deleted file mode 100644 index 27e116b7d044..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_request.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterMonitoringRequest(Model): - """The Operations Management Suite (OMS) parameters. - - :param workspace_id: The Operations Management Suite (OMS) workspace ID. - :type workspace_id: str - :param primary_key: The Operations Management Suite (OMS) workspace key. - :type primary_key: str - """ - - _attribute_map = { - 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, - 'primary_key': {'key': 'primaryKey', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterMonitoringRequest, self).__init__(**kwargs) - self.workspace_id = kwargs.get('workspace_id', None) - self.primary_key = kwargs.get('primary_key', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_request_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_request_py3.py deleted file mode 100644 index c987cd545c14..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_request_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClusterMonitoringRequest(Model): - """The Operations Management Suite (OMS) parameters. - - :param workspace_id: The Operations Management Suite (OMS) workspace ID. - :type workspace_id: str - :param primary_key: The Operations Management Suite (OMS) workspace key. - :type primary_key: str - """ - - _attribute_map = { - 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, - 'primary_key': {'key': 'primaryKey', 'type': 'str'}, - } - - def __init__(self, *, workspace_id: str=None, primary_key: str=None, **kwargs) -> None: - super(ClusterMonitoringRequest, self).__init__(**kwargs) - self.workspace_id = workspace_id - self.primary_key = primary_key diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_response.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_response.py deleted file mode 100644 index f77384d2d485..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_response.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 ClusterMonitoringResponse(Model): - """The Operations Management Suite (OMS) status response. - - :param cluster_monitoring_enabled: The status of the Operations Management - Suite (OMS) on the HDInsight cluster. - :type cluster_monitoring_enabled: bool - :param workspace_id: The workspace ID of the Operations Management Suite - (OMS) on the HDInsight cluster. - :type workspace_id: str - """ - - _attribute_map = { - 'cluster_monitoring_enabled': {'key': 'clusterMonitoringEnabled', 'type': 'bool'}, - 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ClusterMonitoringResponse, self).__init__(**kwargs) - self.cluster_monitoring_enabled = kwargs.get('cluster_monitoring_enabled', None) - self.workspace_id = kwargs.get('workspace_id', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_response_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_response_py3.py deleted file mode 100644 index c9cbae2530bc..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_monitoring_response_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 ClusterMonitoringResponse(Model): - """The Operations Management Suite (OMS) status response. - - :param cluster_monitoring_enabled: The status of the Operations Management - Suite (OMS) on the HDInsight cluster. - :type cluster_monitoring_enabled: bool - :param workspace_id: The workspace ID of the Operations Management Suite - (OMS) on the HDInsight cluster. - :type workspace_id: str - """ - - _attribute_map = { - 'cluster_monitoring_enabled': {'key': 'clusterMonitoringEnabled', 'type': 'bool'}, - 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, - } - - def __init__(self, *, cluster_monitoring_enabled: bool=None, workspace_id: str=None, **kwargs) -> None: - super(ClusterMonitoringResponse, self).__init__(**kwargs) - self.cluster_monitoring_enabled = cluster_monitoring_enabled - self.workspace_id = workspace_id diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_paged.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_paged.py deleted file mode 100644 index ac485f03e31a..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_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 ClusterPaged(Paged): - """ - A paging container for iterating over a list of :class:`Cluster ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Cluster]'} - } - - def __init__(self, *args, **kwargs): - - super(ClusterPaged, self).__init__(*args, **kwargs) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_patch_parameters.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_patch_parameters.py deleted file mode 100644 index 932f65ddf95e..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_patch_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 ClusterPatchParameters(Model): - """The PatchCluster request parameters. - - :param tags: The resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(ClusterPatchParameters, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_patch_parameters_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_patch_parameters_py3.py deleted file mode 100644 index f4d55f5a33b9..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_patch_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 ClusterPatchParameters(Model): - """The PatchCluster request parameters. - - :param tags: The resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, tags=None, **kwargs) -> None: - super(ClusterPatchParameters, self).__init__(**kwargs) - self.tags = tags diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py deleted file mode 100644 index 795bea63608f..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_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 .tracked_resource_py3 import TrackedResource - - -class Cluster(TrackedResource): - """The HDInsight cluster. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The Azure Region where the resource lives - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param etag: The ETag for the resource - :type etag: str - :param properties: The properties of the cluster. - :type properties: ~azure.mgmt.hdinsight.models.ClusterGetProperties - :param identity: The identity of the cluster, if configured. - :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'ClusterGetProperties'}, - 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, - } - - def __init__(self, *, location: str=None, tags=None, etag: str=None, properties=None, identity=None, **kwargs) -> None: - super(Cluster, self).__init__(location=location, tags=tags, **kwargs) - self.etag = etag - self.properties = properties - self.identity = identity diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_resize_parameters.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_resize_parameters.py deleted file mode 100644 index f0361279c481..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_resize_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 ClusterResizeParameters(Model): - """The Resize Cluster request parameters. - - :param target_instance_count: The target instance count for the operation. - :type target_instance_count: int - """ - - _attribute_map = { - 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ClusterResizeParameters, self).__init__(**kwargs) - self.target_instance_count = kwargs.get('target_instance_count', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_resize_parameters_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_resize_parameters_py3.py deleted file mode 100644 index cb065480e2e2..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_resize_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 ClusterResizeParameters(Model): - """The Resize Cluster request parameters. - - :param target_instance_count: The target instance count for the operation. - :type target_instance_count: int - """ - - _attribute_map = { - 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, - } - - def __init__(self, *, target_instance_count: int=None, **kwargs) -> None: - super(ClusterResizeParameters, self).__init__(**kwargs) - self.target_instance_count = target_instance_count diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/compute_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/compute_profile.py deleted file mode 100644 index 1ec4e2e32c7d..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/compute_profile.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 ComputeProfile(Model): - """Describes the compute profile. - - :param roles: The list of roles in the cluster. - :type roles: list[~azure.mgmt.hdinsight.models.Role] - """ - - _attribute_map = { - 'roles': {'key': 'roles', 'type': '[Role]'}, - } - - def __init__(self, **kwargs): - super(ComputeProfile, self).__init__(**kwargs) - self.roles = kwargs.get('roles', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/compute_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/compute_profile_py3.py deleted file mode 100644 index 74e7648c9dd0..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/compute_profile_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 ComputeProfile(Model): - """Describes the compute profile. - - :param roles: The list of roles in the cluster. - :type roles: list[~azure.mgmt.hdinsight.models.Role] - """ - - _attribute_map = { - 'roles': {'key': 'roles', 'type': '[Role]'}, - } - - def __init__(self, *, roles=None, **kwargs) -> None: - super(ComputeProfile, self).__init__(**kwargs) - self.roles = roles diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/connectivity_endpoint.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/connectivity_endpoint.py deleted file mode 100644 index 4695541e6fad..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/connectivity_endpoint.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 ConnectivityEndpoint(Model): - """The connectivity properties. - - :param name: The name of the endpoint. - :type name: str - :param protocol: The protocol of the endpoint. - :type protocol: str - :param location: The location of the endpoint. - :type location: str - :param port: The port to connect to. - :type port: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'protocol': {'key': 'protocol', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'port': {'key': 'port', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ConnectivityEndpoint, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.protocol = kwargs.get('protocol', None) - self.location = kwargs.get('location', None) - self.port = kwargs.get('port', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/connectivity_endpoint_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/connectivity_endpoint_py3.py deleted file mode 100644 index 70f26074f5e8..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/connectivity_endpoint_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 ConnectivityEndpoint(Model): - """The connectivity properties. - - :param name: The name of the endpoint. - :type name: str - :param protocol: The protocol of the endpoint. - :type protocol: str - :param location: The location of the endpoint. - :type location: str - :param port: The port to connect to. - :type port: int - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'protocol': {'key': 'protocol', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'port': {'key': 'port', 'type': 'int'}, - } - - def __init__(self, *, name: str=None, protocol: str=None, location: str=None, port: int=None, **kwargs) -> None: - super(ConnectivityEndpoint, self).__init__(**kwargs) - self.name = name - self.protocol = protocol - self.location = location - self.port = port diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/data_disks_groups.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/data_disks_groups.py deleted file mode 100644 index 642a5b98cde2..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/data_disks_groups.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 DataDisksGroups(Model): - """The data disks groups for the role. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param disks_per_node: The number of disks per node. - :type disks_per_node: int - :ivar storage_account_type: ReadOnly. The storage account type. Do not set - this value. - :vartype storage_account_type: str - :ivar disk_size_gb: ReadOnly. The DiskSize in GB. Do not set this value. - :vartype disk_size_gb: int - """ - - _validation = { - 'storage_account_type': {'readonly': True}, - 'disk_size_gb': {'readonly': True}, - } - - _attribute_map = { - 'disks_per_node': {'key': 'disksPerNode', 'type': 'int'}, - 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, - 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(DataDisksGroups, self).__init__(**kwargs) - self.disks_per_node = kwargs.get('disks_per_node', None) - self.storage_account_type = None - self.disk_size_gb = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/data_disks_groups_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/data_disks_groups_py3.py deleted file mode 100644 index acdd3538dfd5..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/data_disks_groups_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 DataDisksGroups(Model): - """The data disks groups for the role. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param disks_per_node: The number of disks per node. - :type disks_per_node: int - :ivar storage_account_type: ReadOnly. The storage account type. Do not set - this value. - :vartype storage_account_type: str - :ivar disk_size_gb: ReadOnly. The DiskSize in GB. Do not set this value. - :vartype disk_size_gb: int - """ - - _validation = { - 'storage_account_type': {'readonly': True}, - 'disk_size_gb': {'readonly': True}, - } - - _attribute_map = { - 'disks_per_node': {'key': 'disksPerNode', 'type': 'int'}, - 'storage_account_type': {'key': 'storageAccountType', 'type': 'str'}, - 'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'}, - } - - def __init__(self, *, disks_per_node: int=None, **kwargs) -> None: - super(DataDisksGroups, self).__init__(**kwargs) - self.disks_per_node = disks_per_node - self.storage_account_type = None - self.disk_size_gb = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py deleted file mode 100644 index 1a18762417b0..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.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 DiskEncryptionProperties(Model): - """The disk encryption properties. - - :param vault_uri: Base key vault URI where the customers key is located - eg. https://myvault.vault.azure.net - :type vault_uri: str - :param key_name: Key name that is used for enabling disk encryption. - :type key_name: str - :param key_version: Specific key version that is used for enabling disk - encryption. - :type key_version: str - :param encryption_algorithm: Algorithm identifier for encryption, default - RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' - :type encryption_algorithm: str or - ~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm - :param msi_resource_id: Resource ID of Managed Identity that is used to - access the key vault. - :type msi_resource_id: str - """ - - _attribute_map = { - 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, - 'key_name': {'key': 'keyName', 'type': 'str'}, - 'key_version': {'key': 'keyVersion', 'type': 'str'}, - 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, - 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(DiskEncryptionProperties, self).__init__(**kwargs) - self.vault_uri = kwargs.get('vault_uri', None) - self.key_name = kwargs.get('key_name', None) - self.key_version = kwargs.get('key_version', None) - self.encryption_algorithm = kwargs.get('encryption_algorithm', None) - self.msi_resource_id = kwargs.get('msi_resource_id', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py deleted file mode 100644 index f95aa5550a6b..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_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 DiskEncryptionProperties(Model): - """The disk encryption properties. - - :param vault_uri: Base key vault URI where the customers key is located - eg. https://myvault.vault.azure.net - :type vault_uri: str - :param key_name: Key name that is used for enabling disk encryption. - :type key_name: str - :param key_version: Specific key version that is used for enabling disk - encryption. - :type key_version: str - :param encryption_algorithm: Algorithm identifier for encryption, default - RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' - :type encryption_algorithm: str or - ~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm - :param msi_resource_id: Resource ID of Managed Identity that is used to - access the key vault. - :type msi_resource_id: str - """ - - _attribute_map = { - 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, - 'key_name': {'key': 'keyName', 'type': 'str'}, - 'key_version': {'key': 'keyVersion', 'type': 'str'}, - 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, - 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, - } - - def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, encryption_algorithm=None, msi_resource_id: str=None, **kwargs) -> None: - super(DiskEncryptionProperties, self).__init__(**kwargs) - self.vault_uri = vault_uri - self.key_name = key_name - self.key_version = key_version - self.encryption_algorithm = encryption_algorithm - self.msi_resource_id = msi_resource_id diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/error_response.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/error_response.py deleted file mode 100644 index b3d490a49503..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/error_response.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 -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Describes the format of Error response. - - :param code: Error code - :type code: str - :param message: Error message indicating why the operation failed. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorResponse, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/error_response_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/error_response_py3.py deleted file mode 100644 index 5504940d6873..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/error_response_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 -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Describes the format of Error response. - - :param code: Error code - :type code: str - :param message: Error message indicating why the operation failed. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(ErrorResponse, self).__init__(**kwargs) - self.code = code - self.message = message - - -class ErrorResponseException(HttpOperationError): - """Server responsed with exception of type: 'ErrorResponse'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/errors.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/errors.py deleted file mode 100644 index 86ac51877c6f..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/errors.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Errors(Model): - """The error message associated with the cluster creation. - - :param code: The error code. - :type code: str - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Errors, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/errors_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/errors_py3.py deleted file mode 100644 index 5b81c03b7630..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/errors_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Errors(Model): - """The error message associated with the cluster creation. - - :param code: The error code. - :type code: str - :param message: The error message. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: - super(Errors, self).__init__(**kwargs) - self.code = code - self.message = message diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/execute_script_action_parameters.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/execute_script_action_parameters.py deleted file mode 100644 index c1d58cfcb6c4..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/execute_script_action_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 ExecuteScriptActionParameters(Model): - """The parameters for the script actions to execute on a running cluster. - - All required parameters must be populated in order to send to Azure. - - :param script_actions: The list of run time script actions. - :type script_actions: - list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :param persist_on_success: Required. Gets or sets if the scripts needs to - be persisted. - :type persist_on_success: bool - """ - - _validation = { - 'persist_on_success': {'required': True}, - } - - _attribute_map = { - 'script_actions': {'key': 'scriptActions', 'type': '[RuntimeScriptAction]'}, - 'persist_on_success': {'key': 'persistOnSuccess', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(ExecuteScriptActionParameters, self).__init__(**kwargs) - self.script_actions = kwargs.get('script_actions', None) - self.persist_on_success = kwargs.get('persist_on_success', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/execute_script_action_parameters_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/execute_script_action_parameters_py3.py deleted file mode 100644 index 7cdffae8852e..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/execute_script_action_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 ExecuteScriptActionParameters(Model): - """The parameters for the script actions to execute on a running cluster. - - All required parameters must be populated in order to send to Azure. - - :param script_actions: The list of run time script actions. - :type script_actions: - list[~azure.mgmt.hdinsight.models.RuntimeScriptAction] - :param persist_on_success: Required. Gets or sets if the scripts needs to - be persisted. - :type persist_on_success: bool - """ - - _validation = { - 'persist_on_success': {'required': True}, - } - - _attribute_map = { - 'script_actions': {'key': 'scriptActions', 'type': '[RuntimeScriptAction]'}, - 'persist_on_success': {'key': 'persistOnSuccess', 'type': 'bool'}, - } - - def __init__(self, *, persist_on_success: bool, script_actions=None, **kwargs) -> None: - super(ExecuteScriptActionParameters, self).__init__(**kwargs) - self.script_actions = script_actions - self.persist_on_success = persist_on_success diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/extension.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/extension.py deleted file mode 100644 index dee5628923f1..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/extension.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 Extension(Model): - """Cluster monitoring extensions. - - :param workspace_id: The workspace ID for the cluster monitoring - extension. - :type workspace_id: str - :param primary_key: The certificate for the cluster monitoring extensions. - :type primary_key: str - """ - - _attribute_map = { - 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, - 'primary_key': {'key': 'primaryKey', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Extension, self).__init__(**kwargs) - self.workspace_id = kwargs.get('workspace_id', None) - self.primary_key = kwargs.get('primary_key', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/extension_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/extension_py3.py deleted file mode 100644 index b7b21187fa01..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/extension_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 Extension(Model): - """Cluster monitoring extensions. - - :param workspace_id: The workspace ID for the cluster monitoring - extension. - :type workspace_id: str - :param primary_key: The certificate for the cluster monitoring extensions. - :type primary_key: str - """ - - _attribute_map = { - 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, - 'primary_key': {'key': 'primaryKey', 'type': 'str'}, - } - - def __init__(self, *, workspace_id: str=None, primary_key: str=None, **kwargs) -> None: - super(Extension, self).__init__(**kwargs) - self.workspace_id = workspace_id - self.primary_key = primary_key diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/gateway_settings.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/gateway_settings.py deleted file mode 100644 index 00c63a753026..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/gateway_settings.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 GatewaySettings(Model): - """Gateway settings. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar is_credential_enabled: Indicates whether or not the gateway settings - based authorization is enabled. - :vartype is_credential_enabled: str - :ivar user_name: The gateway settings user name. - :vartype user_name: str - :ivar password: The gateway settings user password. - :vartype password: str - """ - - _validation = { - 'is_credential_enabled': {'readonly': True}, - 'user_name': {'readonly': True}, - 'password': {'readonly': True}, - } - - _attribute_map = { - 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'}, - 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, - 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(GatewaySettings, self).__init__(**kwargs) - self.is_credential_enabled = None - self.user_name = None - self.password = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/gateway_settings_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/gateway_settings_py3.py deleted file mode 100644 index dc78168ba19b..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/gateway_settings_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 GatewaySettings(Model): - """Gateway settings. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar is_credential_enabled: Indicates whether or not the gateway settings - based authorization is enabled. - :vartype is_credential_enabled: str - :ivar user_name: The gateway settings user name. - :vartype user_name: str - :ivar password: The gateway settings user password. - :vartype password: str - """ - - _validation = { - 'is_credential_enabled': {'readonly': True}, - 'user_name': {'readonly': True}, - 'password': {'readonly': True}, - } - - _attribute_map = { - 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'}, - 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, - 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(GatewaySettings, self).__init__(**kwargs) - self.is_credential_enabled = None - self.user_name = None - self.password = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hardware_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hardware_profile.py deleted file mode 100644 index 50b7736f9e6a..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hardware_profile.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 HardwareProfile(Model): - """The hardware profile. - - :param vm_size: The size of the VM - :type vm_size: str - """ - - _attribute_map = { - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(HardwareProfile, self).__init__(**kwargs) - self.vm_size = kwargs.get('vm_size', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hardware_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hardware_profile_py3.py deleted file mode 100644 index cbcd0a0653d8..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hardware_profile_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 HardwareProfile(Model): - """The hardware profile. - - :param vm_size: The size of the VM - :type vm_size: str - """ - - _attribute_map = { - 'vm_size': {'key': 'vmSize', 'type': 'str'}, - } - - def __init__(self, *, vm_size: str=None, **kwargs) -> None: - super(HardwareProfile, self).__init__(**kwargs) - self.vm_size = vm_size diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/linux_operating_system_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/linux_operating_system_profile.py deleted file mode 100644 index 72a5c2f774c7..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/linux_operating_system_profile.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 LinuxOperatingSystemProfile(Model): - """The ssh username, password, and ssh public key. - - :param username: The username. - :type username: str - :param password: The password. - :type password: str - :param ssh_profile: The SSH profile. - :type ssh_profile: ~azure.mgmt.hdinsight.models.SshProfile - """ - - _attribute_map = { - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'ssh_profile': {'key': 'sshProfile', 'type': 'SshProfile'}, - } - - def __init__(self, **kwargs): - super(LinuxOperatingSystemProfile, self).__init__(**kwargs) - self.username = kwargs.get('username', None) - self.password = kwargs.get('password', None) - self.ssh_profile = kwargs.get('ssh_profile', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/linux_operating_system_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/linux_operating_system_profile_py3.py deleted file mode 100644 index 57b35deee57b..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/linux_operating_system_profile_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 LinuxOperatingSystemProfile(Model): - """The ssh username, password, and ssh public key. - - :param username: The username. - :type username: str - :param password: The password. - :type password: str - :param ssh_profile: The SSH profile. - :type ssh_profile: ~azure.mgmt.hdinsight.models.SshProfile - """ - - _attribute_map = { - 'username': {'key': 'username', 'type': 'str'}, - 'password': {'key': 'password', 'type': 'str'}, - 'ssh_profile': {'key': 'sshProfile', 'type': 'SshProfile'}, - } - - def __init__(self, *, username: str=None, password: str=None, ssh_profile=None, **kwargs) -> None: - super(LinuxOperatingSystemProfile, self).__init__(**kwargs) - self.username = username - self.password = password - self.ssh_profile = ssh_profile diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/localized_name.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/localized_name.py deleted file mode 100644 index 4a730481459c..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/localized_name.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LocalizedName(Model): - """The details about the localizable name of a type of usage. - - :param value: The name of the used resource. - :type value: str - :param localized_value: The localized name of the used resource. - :type localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(LocalizedName, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.localized_value = kwargs.get('localized_value', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/localized_name_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/localized_name_py3.py deleted file mode 100644 index 445e0c9cc294..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/localized_name_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LocalizedName(Model): - """The details about the localizable name of a type of usage. - - :param value: The name of the used resource. - :type value: str - :param localized_value: The localized name of the used resource. - :type localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None: - super(LocalizedName, self).__init__(**kwargs) - self.value = value - self.localized_value = localized_value diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation.py deleted file mode 100644 index 984a6875094a..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """The HDInsight REST API operation. - - :param name: The operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: ~azure.mgmt.hdinsight.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_display.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_display.py deleted file mode 100644 index a3c546ef0bdf..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_display.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: The service provider: Microsoft.HDInsight - :type provider: str - :param resource: The resource on which the operation is performed: - Cluster, Applications, etc. - :type resource: str - :param operation: The operation type: read, write, delete, etc. - :type operation: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_display_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_display_py3.py deleted file mode 100644 index ebccaf41a426..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_display_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDisplay(Model): - """The object that represents the operation. - - :param provider: The service provider: Microsoft.HDInsight - :type provider: str - :param resource: The resource on which the operation is performed: - Cluster, Applications, etc. - :type resource: str - :param operation: The operation type: read, write, delete, etc. - :type operation: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_paged.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_paged.py deleted file mode 100644 index 79215385687d..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_paged.py +++ /dev/null @@ -1,27 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_py3.py deleted file mode 100644 index 9d888fda108c..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """The HDInsight REST API operation. - - :param name: The operation name: {provider}/{resource}/{operation} - :type name: str - :param display: The object that represents the operation. - :type display: ~azure.mgmt.hdinsight.models.OperationDisplay - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, *, name: str=None, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_resource.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_resource.py deleted file mode 100644 index d942d89b7d18..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_resource.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 OperationResource(Model): - """The azure async operation response. - - :param status: The async operation state. Possible values include: - 'InProgress', 'Succeeded', 'Failed' - :type status: str or ~azure.mgmt.hdinsight.models.AsyncOperationState - :param error: The operation error information. - :type error: ~azure.mgmt.hdinsight.models.Errors - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'AsyncOperationState'}, - 'error': {'key': 'error', 'type': 'Errors'}, - } - - def __init__(self, **kwargs): - super(OperationResource, self).__init__(**kwargs) - self.status = kwargs.get('status', None) - self.error = kwargs.get('error', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_resource_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_resource_py3.py deleted file mode 100644 index b5be1c09332a..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/operation_resource_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 OperationResource(Model): - """The azure async operation response. - - :param status: The async operation state. Possible values include: - 'InProgress', 'Succeeded', 'Failed' - :type status: str or ~azure.mgmt.hdinsight.models.AsyncOperationState - :param error: The operation error information. - :type error: ~azure.mgmt.hdinsight.models.Errors - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'AsyncOperationState'}, - 'error': {'key': 'error', 'type': 'Errors'}, - } - - def __init__(self, *, status=None, error=None, **kwargs) -> None: - super(OperationResource, self).__init__(**kwargs) - self.status = status - self.error = error diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/os_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/os_profile.py deleted file mode 100644 index 9bcd6b66b142..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/os_profile.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OsProfile(Model): - """The Linux operation systems profile. - - :param linux_operating_system_profile: The Linux OS profile. - :type linux_operating_system_profile: - ~azure.mgmt.hdinsight.models.LinuxOperatingSystemProfile - """ - - _attribute_map = { - 'linux_operating_system_profile': {'key': 'linuxOperatingSystemProfile', 'type': 'LinuxOperatingSystemProfile'}, - } - - def __init__(self, **kwargs): - super(OsProfile, self).__init__(**kwargs) - self.linux_operating_system_profile = kwargs.get('linux_operating_system_profile', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/os_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/os_profile_py3.py deleted file mode 100644 index 2af52010b99a..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/os_profile_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OsProfile(Model): - """The Linux operation systems profile. - - :param linux_operating_system_profile: The Linux OS profile. - :type linux_operating_system_profile: - ~azure.mgmt.hdinsight.models.LinuxOperatingSystemProfile - """ - - _attribute_map = { - 'linux_operating_system_profile': {'key': 'linuxOperatingSystemProfile', 'type': 'LinuxOperatingSystemProfile'}, - } - - def __init__(self, *, linux_operating_system_profile=None, **kwargs) -> None: - super(OsProfile, self).__init__(**kwargs) - self.linux_operating_system_profile = linux_operating_system_profile diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/proxy_resource.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/proxy_resource.py deleted file mode 100644 index aecd353e9b87..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/proxy_resource.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 .resource import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :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(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/proxy_resource_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/proxy_resource_py3.py deleted file mode 100644 index 057f44c7e108..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/proxy_resource_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 .resource_py3 import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :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(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_info.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_info.py deleted file mode 100644 index f90d132a7b79..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_info.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 QuotaInfo(Model): - """The quota properties for the cluster. - - :param cores_used: The cores used by the cluster. - :type cores_used: int - """ - - _attribute_map = { - 'cores_used': {'key': 'coresUsed', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(QuotaInfo, self).__init__(**kwargs) - self.cores_used = kwargs.get('cores_used', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_info_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_info_py3.py deleted file mode 100644 index ddd13b43c9ef..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_info_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 QuotaInfo(Model): - """The quota properties for the cluster. - - :param cores_used: The cores used by the cluster. - :type cores_used: int - """ - - _attribute_map = { - 'cores_used': {'key': 'coresUsed', 'type': 'int'}, - } - - def __init__(self, *, cores_used: int=None, **kwargs) -> None: - super(QuotaInfo, self).__init__(**kwargs) - self.cores_used = cores_used diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/resource.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/resource.py deleted file mode 100644 index abc2407bbed3..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/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 Resource(Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :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(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/resource_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/resource_py3.py deleted file mode 100644 index 8604d1c4419b..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/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 Resource(Model): - """The core properties of ARM resources. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :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(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role.py deleted file mode 100644 index 51ee38b3ec0b..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Role(Model): - """Describes a role on the cluster. - - :param name: The name of the role. - :type name: str - :param min_instance_count: The minimum instance count of the cluster. - :type min_instance_count: int - :param target_instance_count: The instance count of the cluster. - :type target_instance_count: int - :param hardware_profile: The hardware profile. - :type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile - :param os_profile: The operating system profile. - :type os_profile: ~azure.mgmt.hdinsight.models.OsProfile - :param virtual_network_profile: The virtual network profile. - :type virtual_network_profile: - ~azure.mgmt.hdinsight.models.VirtualNetworkProfile - :param data_disks_groups: The data disks groups for the role. - :type data_disks_groups: - list[~azure.mgmt.hdinsight.models.DataDisksGroups] - :param script_actions: The list of script actions on the role. - :type script_actions: list[~azure.mgmt.hdinsight.models.ScriptAction] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, - 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, - 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, - 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'}, - 'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'}, - 'data_disks_groups': {'key': 'dataDisksGroups', 'type': '[DataDisksGroups]'}, - 'script_actions': {'key': 'scriptActions', 'type': '[ScriptAction]'}, - } - - def __init__(self, **kwargs): - super(Role, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.min_instance_count = kwargs.get('min_instance_count', None) - self.target_instance_count = kwargs.get('target_instance_count', None) - self.hardware_profile = kwargs.get('hardware_profile', None) - self.os_profile = kwargs.get('os_profile', None) - self.virtual_network_profile = kwargs.get('virtual_network_profile', None) - self.data_disks_groups = kwargs.get('data_disks_groups', None) - self.script_actions = kwargs.get('script_actions', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role_py3.py deleted file mode 100644 index efcc4734449b..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Role(Model): - """Describes a role on the cluster. - - :param name: The name of the role. - :type name: str - :param min_instance_count: The minimum instance count of the cluster. - :type min_instance_count: int - :param target_instance_count: The instance count of the cluster. - :type target_instance_count: int - :param hardware_profile: The hardware profile. - :type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile - :param os_profile: The operating system profile. - :type os_profile: ~azure.mgmt.hdinsight.models.OsProfile - :param virtual_network_profile: The virtual network profile. - :type virtual_network_profile: - ~azure.mgmt.hdinsight.models.VirtualNetworkProfile - :param data_disks_groups: The data disks groups for the role. - :type data_disks_groups: - list[~azure.mgmt.hdinsight.models.DataDisksGroups] - :param script_actions: The list of script actions on the role. - :type script_actions: list[~azure.mgmt.hdinsight.models.ScriptAction] - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, - 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, - 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, - 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'}, - 'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'}, - 'data_disks_groups': {'key': 'dataDisksGroups', 'type': '[DataDisksGroups]'}, - 'script_actions': {'key': 'scriptActions', 'type': '[ScriptAction]'}, - } - - def __init__(self, *, name: str=None, min_instance_count: int=None, target_instance_count: int=None, hardware_profile=None, os_profile=None, virtual_network_profile=None, data_disks_groups=None, script_actions=None, **kwargs) -> None: - super(Role, self).__init__(**kwargs) - self.name = name - self.min_instance_count = min_instance_count - self.target_instance_count = target_instance_count - self.hardware_profile = hardware_profile - self.os_profile = os_profile - self.virtual_network_profile = virtual_network_profile - self.data_disks_groups = data_disks_groups - self.script_actions = script_actions diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action.py deleted file mode 100644 index 760e1621ef60..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action.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 RuntimeScriptAction(Model): - """Describes a script action on a running cluster. - - 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 name of the script action. - :type name: str - :param uri: Required. The URI to the script. - :type uri: str - :param parameters: The parameters for the script - :type parameters: str - :param roles: Required. The list of roles where script will be executed. - :type roles: list[str] - :ivar application_name: The application name of the script action, if any. - :vartype application_name: str - """ - - _validation = { - 'name': {'required': True}, - 'uri': {'required': True}, - 'roles': {'required': True}, - 'application_name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[str]'}, - 'application_name': {'key': 'applicationName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RuntimeScriptAction, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.uri = kwargs.get('uri', None) - self.parameters = kwargs.get('parameters', None) - self.roles = kwargs.get('roles', None) - self.application_name = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail.py deleted file mode 100644 index 5d68a1bb0521..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .runtime_script_action import RuntimeScriptAction - - -class RuntimeScriptActionDetail(RuntimeScriptAction): - """The execution details of a script action. - - 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 name of the script action. - :type name: str - :param uri: Required. The URI to the script. - :type uri: str - :param parameters: The parameters for the script - :type parameters: str - :param roles: Required. The list of roles where script will be executed. - :type roles: list[str] - :ivar application_name: The application name of the script action, if any. - :vartype application_name: str - :ivar script_execution_id: The execution id of the script action. - :vartype script_execution_id: long - :ivar start_time: The start time of script action execution. - :vartype start_time: str - :ivar end_time: The end time of script action execution. - :vartype end_time: str - :ivar status: The current execution status of the script action. - :vartype status: str - :ivar operation: The reason why the script action was executed. - :vartype operation: str - :ivar execution_summary: The summary of script action execution result. - :vartype execution_summary: - list[~azure.mgmt.hdinsight.models.ScriptActionExecutionSummary] - :ivar debug_information: The script action execution debug information. - :vartype debug_information: str - """ - - _validation = { - 'name': {'required': True}, - 'uri': {'required': True}, - 'roles': {'required': True}, - 'application_name': {'readonly': True}, - 'script_execution_id': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'status': {'readonly': True}, - 'operation': {'readonly': True}, - 'execution_summary': {'readonly': True}, - 'debug_information': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[str]'}, - 'application_name': {'key': 'applicationName', 'type': 'str'}, - 'script_execution_id': {'key': 'scriptExecutionId', 'type': 'long'}, - 'start_time': {'key': 'startTime', 'type': 'str'}, - 'end_time': {'key': 'endTime', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'execution_summary': {'key': 'executionSummary', 'type': '[ScriptActionExecutionSummary]'}, - 'debug_information': {'key': 'debugInformation', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(RuntimeScriptActionDetail, self).__init__(**kwargs) - self.script_execution_id = None - self.start_time = None - self.end_time = None - self.status = None - self.operation = None - self.execution_summary = None - self.debug_information = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_paged.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_paged.py deleted file mode 100644 index 2555f4b6b584..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_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 RuntimeScriptActionDetailPaged(Paged): - """ - A paging container for iterating over a list of :class:`RuntimeScriptActionDetail ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[RuntimeScriptActionDetail]'} - } - - def __init__(self, *args, **kwargs): - - super(RuntimeScriptActionDetailPaged, self).__init__(*args, **kwargs) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_py3.py deleted file mode 100644 index 39200a35d922..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_detail_py3.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .runtime_script_action_py3 import RuntimeScriptAction - - -class RuntimeScriptActionDetail(RuntimeScriptAction): - """The execution details of a script action. - - 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 name of the script action. - :type name: str - :param uri: Required. The URI to the script. - :type uri: str - :param parameters: The parameters for the script - :type parameters: str - :param roles: Required. The list of roles where script will be executed. - :type roles: list[str] - :ivar application_name: The application name of the script action, if any. - :vartype application_name: str - :ivar script_execution_id: The execution id of the script action. - :vartype script_execution_id: long - :ivar start_time: The start time of script action execution. - :vartype start_time: str - :ivar end_time: The end time of script action execution. - :vartype end_time: str - :ivar status: The current execution status of the script action. - :vartype status: str - :ivar operation: The reason why the script action was executed. - :vartype operation: str - :ivar execution_summary: The summary of script action execution result. - :vartype execution_summary: - list[~azure.mgmt.hdinsight.models.ScriptActionExecutionSummary] - :ivar debug_information: The script action execution debug information. - :vartype debug_information: str - """ - - _validation = { - 'name': {'required': True}, - 'uri': {'required': True}, - 'roles': {'required': True}, - 'application_name': {'readonly': True}, - 'script_execution_id': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'status': {'readonly': True}, - 'operation': {'readonly': True}, - 'execution_summary': {'readonly': True}, - 'debug_information': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[str]'}, - 'application_name': {'key': 'applicationName', 'type': 'str'}, - 'script_execution_id': {'key': 'scriptExecutionId', 'type': 'long'}, - 'start_time': {'key': 'startTime', 'type': 'str'}, - 'end_time': {'key': 'endTime', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'execution_summary': {'key': 'executionSummary', 'type': '[ScriptActionExecutionSummary]'}, - 'debug_information': {'key': 'debugInformation', 'type': 'str'}, - } - - def __init__(self, *, name: str, uri: str, roles, parameters: str=None, **kwargs) -> None: - super(RuntimeScriptActionDetail, self).__init__(name=name, uri=uri, parameters=parameters, roles=roles, **kwargs) - self.script_execution_id = None - self.start_time = None - self.end_time = None - self.status = None - self.operation = None - self.execution_summary = None - self.debug_information = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_py3.py deleted file mode 100644 index 0f2088085838..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/runtime_script_action_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 RuntimeScriptAction(Model): - """Describes a script action on a running cluster. - - 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 name of the script action. - :type name: str - :param uri: Required. The URI to the script. - :type uri: str - :param parameters: The parameters for the script - :type parameters: str - :param roles: Required. The list of roles where script will be executed. - :type roles: list[str] - :ivar application_name: The application name of the script action, if any. - :vartype application_name: str - """ - - _validation = { - 'name': {'required': True}, - 'uri': {'required': True}, - 'roles': {'required': True}, - 'application_name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[str]'}, - 'application_name': {'key': 'applicationName', 'type': 'str'}, - } - - def __init__(self, *, name: str, uri: str, roles, parameters: str=None, **kwargs) -> None: - super(RuntimeScriptAction, self).__init__(**kwargs) - self.name = name - self.uri = uri - self.parameters = parameters - self.roles = roles - self.application_name = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action.py deleted file mode 100644 index 2f3d7ef356da..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ScriptAction(Model): - """Describes a script action on role on the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the script action. - :type name: str - :param uri: Required. The URI to the script. - :type uri: str - :param parameters: Required. The parameters for the script provided. - :type parameters: str - """ - - _validation = { - 'name': {'required': True}, - 'uri': {'required': True}, - 'parameters': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ScriptAction, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.uri = kwargs.get('uri', None) - self.parameters = kwargs.get('parameters', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_execution_summary.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_execution_summary.py deleted file mode 100644 index a0a561f4a440..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_execution_summary.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 ScriptActionExecutionSummary(Model): - """The execution summary of a script action. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: The status of script action execution. - :vartype status: str - :ivar instance_count: The instance count for a given script action - execution status. - :vartype instance_count: int - """ - - _validation = { - 'status': {'readonly': True}, - 'instance_count': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ScriptActionExecutionSummary, self).__init__(**kwargs) - self.status = None - self.instance_count = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_execution_summary_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_execution_summary_py3.py deleted file mode 100644 index e940e9d90c34..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_execution_summary_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 ScriptActionExecutionSummary(Model): - """The execution summary of a script action. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: The status of script action execution. - :vartype status: str - :ivar instance_count: The instance count for a given script action - execution status. - :vartype instance_count: int - """ - - _validation = { - 'status': {'readonly': True}, - 'instance_count': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'instance_count': {'key': 'instanceCount', 'type': 'int'}, - } - - def __init__(self, **kwargs) -> None: - super(ScriptActionExecutionSummary, self).__init__(**kwargs) - self.status = None - self.instance_count = None diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_persisted_get_response_spec.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_persisted_get_response_spec.py deleted file mode 100644 index 684928022db3..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_persisted_get_response_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ScriptActionPersistedGetResponseSpec(Model): - """The persisted script action for cluster. - - :param name: The name of script action. - :type name: str - :param uri: The URI to the script. - :type uri: str - :param parameters: The parameters for the script provided. - :type parameters: str - :param roles: The list of roles where script will be executed. - :type roles: list[str] - :param application_name: The application name for the script action. - :type application_name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[str]'}, - 'application_name': {'key': 'applicationName', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ScriptActionPersistedGetResponseSpec, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.uri = kwargs.get('uri', None) - self.parameters = kwargs.get('parameters', None) - self.roles = kwargs.get('roles', None) - self.application_name = kwargs.get('application_name', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_persisted_get_response_spec_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_persisted_get_response_spec_py3.py deleted file mode 100644 index e0cd9c1c9453..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_persisted_get_response_spec_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ScriptActionPersistedGetResponseSpec(Model): - """The persisted script action for cluster. - - :param name: The name of script action. - :type name: str - :param uri: The URI to the script. - :type uri: str - :param parameters: The parameters for the script provided. - :type parameters: str - :param roles: The list of roles where script will be executed. - :type roles: list[str] - :param application_name: The application name for the script action. - :type application_name: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - 'roles': {'key': 'roles', 'type': '[str]'}, - 'application_name': {'key': 'applicationName', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, uri: str=None, parameters: str=None, roles=None, application_name: str=None, **kwargs) -> None: - super(ScriptActionPersistedGetResponseSpec, self).__init__(**kwargs) - self.name = name - self.uri = uri - self.parameters = parameters - self.roles = roles - self.application_name = application_name diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_py3.py deleted file mode 100644 index b35024f9c4f6..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/script_action_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ScriptAction(Model): - """Describes a script action on role on the cluster. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the script action. - :type name: str - :param uri: Required. The URI to the script. - :type uri: str - :param parameters: Required. The parameters for the script provided. - :type parameters: str - """ - - _validation = { - 'name': {'required': True}, - 'uri': {'required': True}, - 'parameters': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'uri': {'key': 'uri', 'type': 'str'}, - 'parameters': {'key': 'parameters', 'type': 'str'}, - } - - def __init__(self, *, name: str, uri: str, parameters: str, **kwargs) -> None: - super(ScriptAction, self).__init__(**kwargs) - self.name = name - self.uri = uri - self.parameters = parameters diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py deleted file mode 100644 index ecb3c04b3289..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SecurityProfile(Model): - """The security profile which contains Ssh public key for the HDInsight - cluster. - - :param directory_type: The directory type. Possible values include: - 'ActiveDirectory' - :type directory_type: str or ~azure.mgmt.hdinsight.models.DirectoryType - :param domain: The organization's active directory domain. - :type domain: str - :param organizational_unit_dn: The organizational unit within the Active - Directory to place the cluster and service accounts. - :type organizational_unit_dn: str - :param ldaps_urls: The LDAPS protocol URLs to communicate with the Active - Directory. - :type ldaps_urls: list[str] - :param domain_username: The domain user account that will have admin - privileges on the cluster. - :type domain_username: str - :param domain_user_password: The domain admin password. - :type domain_user_password: str - :param cluster_users_group_dns: Optional. The Distinguished Names for - cluster user groups - :type cluster_users_group_dns: list[str] - :param aadds_resource_id: The resource ID of the user's Azure Active - Directory Domain Service. - :type aadds_resource_id: str - :param msi_resource_id: User assigned identity that has permissions to - read and create cluster-related artifacts in the user's AADDS. - :type msi_resource_id: str - """ - - _attribute_map = { - 'directory_type': {'key': 'directoryType', 'type': 'DirectoryType'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'organizational_unit_dn': {'key': 'organizationalUnitDN', 'type': 'str'}, - 'ldaps_urls': {'key': 'ldapsUrls', 'type': '[str]'}, - 'domain_username': {'key': 'domainUsername', 'type': 'str'}, - 'domain_user_password': {'key': 'domainUserPassword', 'type': 'str'}, - 'cluster_users_group_dns': {'key': 'clusterUsersGroupDNs', 'type': '[str]'}, - 'aadds_resource_id': {'key': 'aaddsResourceId', 'type': 'str'}, - 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SecurityProfile, self).__init__(**kwargs) - self.directory_type = kwargs.get('directory_type', None) - self.domain = kwargs.get('domain', None) - self.organizational_unit_dn = kwargs.get('organizational_unit_dn', None) - self.ldaps_urls = kwargs.get('ldaps_urls', None) - self.domain_username = kwargs.get('domain_username', None) - self.domain_user_password = kwargs.get('domain_user_password', None) - self.cluster_users_group_dns = kwargs.get('cluster_users_group_dns', None) - self.aadds_resource_id = kwargs.get('aadds_resource_id', None) - self.msi_resource_id = kwargs.get('msi_resource_id', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py deleted file mode 100644 index 44a2ad7904af..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SecurityProfile(Model): - """The security profile which contains Ssh public key for the HDInsight - cluster. - - :param directory_type: The directory type. Possible values include: - 'ActiveDirectory' - :type directory_type: str or ~azure.mgmt.hdinsight.models.DirectoryType - :param domain: The organization's active directory domain. - :type domain: str - :param organizational_unit_dn: The organizational unit within the Active - Directory to place the cluster and service accounts. - :type organizational_unit_dn: str - :param ldaps_urls: The LDAPS protocol URLs to communicate with the Active - Directory. - :type ldaps_urls: list[str] - :param domain_username: The domain user account that will have admin - privileges on the cluster. - :type domain_username: str - :param domain_user_password: The domain admin password. - :type domain_user_password: str - :param cluster_users_group_dns: Optional. The Distinguished Names for - cluster user groups - :type cluster_users_group_dns: list[str] - :param aadds_resource_id: The resource ID of the user's Azure Active - Directory Domain Service. - :type aadds_resource_id: str - :param msi_resource_id: User assigned identity that has permissions to - read and create cluster-related artifacts in the user's AADDS. - :type msi_resource_id: str - """ - - _attribute_map = { - 'directory_type': {'key': 'directoryType', 'type': 'DirectoryType'}, - 'domain': {'key': 'domain', 'type': 'str'}, - 'organizational_unit_dn': {'key': 'organizationalUnitDN', 'type': 'str'}, - 'ldaps_urls': {'key': 'ldapsUrls', 'type': '[str]'}, - 'domain_username': {'key': 'domainUsername', 'type': 'str'}, - 'domain_user_password': {'key': 'domainUserPassword', 'type': 'str'}, - 'cluster_users_group_dns': {'key': 'clusterUsersGroupDNs', 'type': '[str]'}, - 'aadds_resource_id': {'key': 'aaddsResourceId', 'type': 'str'}, - 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, - } - - def __init__(self, *, directory_type=None, domain: str=None, organizational_unit_dn: str=None, ldaps_urls=None, domain_username: str=None, domain_user_password: str=None, cluster_users_group_dns=None, aadds_resource_id: str=None, msi_resource_id: str=None, **kwargs) -> None: - super(SecurityProfile, self).__init__(**kwargs) - self.directory_type = directory_type - self.domain = domain - self.organizational_unit_dn = organizational_unit_dn - self.ldaps_urls = ldaps_urls - self.domain_username = domain_username - self.domain_user_password = domain_user_password - self.cluster_users_group_dns = cluster_users_group_dns - self.aadds_resource_id = aadds_resource_id - self.msi_resource_id = msi_resource_id diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_profile.py deleted file mode 100644 index 7921883012c0..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_profile.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 SshProfile(Model): - """The list of SSH public keys. - - :param public_keys: The list of SSH public keys. - :type public_keys: list[~azure.mgmt.hdinsight.models.SshPublicKey] - """ - - _attribute_map = { - 'public_keys': {'key': 'publicKeys', 'type': '[SshPublicKey]'}, - } - - def __init__(self, **kwargs): - super(SshProfile, self).__init__(**kwargs) - self.public_keys = kwargs.get('public_keys', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_profile_py3.py deleted file mode 100644 index 05adf2f5d14c..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_profile_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 SshProfile(Model): - """The list of SSH public keys. - - :param public_keys: The list of SSH public keys. - :type public_keys: list[~azure.mgmt.hdinsight.models.SshPublicKey] - """ - - _attribute_map = { - 'public_keys': {'key': 'publicKeys', 'type': '[SshPublicKey]'}, - } - - def __init__(self, *, public_keys=None, **kwargs) -> None: - super(SshProfile, self).__init__(**kwargs) - self.public_keys = public_keys diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_public_key.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_public_key.py deleted file mode 100644 index cf6119114b89..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_public_key.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 SshPublicKey(Model): - """The SSH public key for the cluster nodes. - - :param certificate_data: The certificate for SSH. - :type certificate_data: str - """ - - _attribute_map = { - 'certificate_data': {'key': 'certificateData', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SshPublicKey, self).__init__(**kwargs) - self.certificate_data = kwargs.get('certificate_data', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_public_key_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_public_key_py3.py deleted file mode 100644 index d57a2dbaeb38..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/ssh_public_key_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 SshPublicKey(Model): - """The SSH public key for the cluster nodes. - - :param certificate_data: The certificate for SSH. - :type certificate_data: str - """ - - _attribute_map = { - 'certificate_data': {'key': 'certificateData', 'type': 'str'}, - } - - def __init__(self, *, certificate_data: str=None, **kwargs) -> None: - super(SshPublicKey, self).__init__(**kwargs) - self.certificate_data = certificate_data diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py deleted file mode 100644 index 64f8f109a799..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageAccount(Model): - """The storage Account. - - :param name: The name of the storage account. - :type name: str - :param is_default: Whether or not the storage account is the default - storage account. - :type is_default: bool - :param container: The container in the storage account, only to be - specified for WASB storage accounts. - :type container: str - :param file_system: The filesystem, only to be specified for Azure Data - Lake Storage type Gen 2. - :type file_system: str - :param key: The storage account access key. - :type key: str - :param resource_id: The resource ID of storage account, only to be - specified for Azure Data Lake Storage Gen 2. - :type resource_id: str - :param msi_resource_id: The managed identity (MSI) that is allowed to - access the storage account, only to be specified for Azure Data Lake - Storage Gen 2. - :type msi_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'container': {'key': 'container', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'key': {'key': 'key', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(StorageAccount, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.is_default = kwargs.get('is_default', None) - self.container = kwargs.get('container', None) - self.file_system = kwargs.get('file_system', None) - self.key = kwargs.get('key', None) - self.resource_id = kwargs.get('resource_id', None) - self.msi_resource_id = kwargs.get('msi_resource_id', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py deleted file mode 100644 index 7ab3ef535a69..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageAccount(Model): - """The storage Account. - - :param name: The name of the storage account. - :type name: str - :param is_default: Whether or not the storage account is the default - storage account. - :type is_default: bool - :param container: The container in the storage account, only to be - specified for WASB storage accounts. - :type container: str - :param file_system: The filesystem, only to be specified for Azure Data - Lake Storage type Gen 2. - :type file_system: str - :param key: The storage account access key. - :type key: str - :param resource_id: The resource ID of storage account, only to be - specified for Azure Data Lake Storage Gen 2. - :type resource_id: str - :param msi_resource_id: The managed identity (MSI) that is allowed to - access the storage account, only to be specified for Azure Data Lake - Storage Gen 2. - :type msi_resource_id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'bool'}, - 'container': {'key': 'container', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'key': {'key': 'key', 'type': 'str'}, - 'resource_id': {'key': 'resourceId', 'type': 'str'}, - 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, - } - - def __init__(self, *, name: str=None, is_default: bool=None, container: str=None, file_system: str=None, key: str=None, resource_id: str=None, msi_resource_id: str=None, **kwargs) -> None: - super(StorageAccount, self).__init__(**kwargs) - self.name = name - self.is_default = is_default - self.container = container - self.file_system = file_system - self.key = key - self.resource_id = resource_id - self.msi_resource_id = msi_resource_id diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_profile.py deleted file mode 100644 index 5c38b31f7345..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_profile.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 StorageProfile(Model): - """The storage profile. - - :param storageaccounts: The list of storage accounts in the cluster. - :type storageaccounts: list[~azure.mgmt.hdinsight.models.StorageAccount] - """ - - _attribute_map = { - 'storageaccounts': {'key': 'storageaccounts', 'type': '[StorageAccount]'}, - } - - def __init__(self, **kwargs): - super(StorageProfile, self).__init__(**kwargs) - self.storageaccounts = kwargs.get('storageaccounts', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_profile_py3.py deleted file mode 100644 index ab18eb99a564..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_profile_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 StorageProfile(Model): - """The storage profile. - - :param storageaccounts: The list of storage accounts in the cluster. - :type storageaccounts: list[~azure.mgmt.hdinsight.models.StorageAccount] - """ - - _attribute_map = { - 'storageaccounts': {'key': 'storageaccounts', 'type': '[StorageAccount]'}, - } - - def __init__(self, *, storageaccounts=None, **kwargs) -> None: - super(StorageProfile, self).__init__(**kwargs) - self.storageaccounts = storageaccounts diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/tracked_resource.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/tracked_resource.py deleted file mode 100644 index 86e0a2ce4814..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/tracked_resource.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 .resource import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The Azure Region where the resource lives - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.tags = kwargs.get('tags', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/tracked_resource_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/tracked_resource_py3.py deleted file mode 100644 index aa56cc64c60e..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/tracked_resource_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 .resource_py3 import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. - :vartype type: str - :param location: The Azure Region where the resource lives - :type location: str - :param tags: Resource tags. - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.location = location - self.tags = tags diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/update_gateway_settings_parameters.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/update_gateway_settings_parameters.py deleted file mode 100644 index 44ba4c058085..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/update_gateway_settings_parameters.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateGatewaySettingsParameters(Model): - """The update gateway settings request parameters. - - :param is_credential_enabled: Indicates whether or not the gateway - settings based authorization is enabled. Default value: True . - :type is_credential_enabled: bool - :param user_name: The gateway settings user name. - :type user_name: str - :param password: The gateway settings user password. - :type password: str - """ - - _attribute_map = { - 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'}, - 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, - 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(UpdateGatewaySettingsParameters, self).__init__(**kwargs) - self.is_credential_enabled = kwargs.get('is_credential_enabled', True) - self.user_name = kwargs.get('user_name', None) - self.password = kwargs.get('password', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/update_gateway_settings_parameters_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/update_gateway_settings_parameters_py3.py deleted file mode 100644 index 4d49f95bde54..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/update_gateway_settings_parameters_py3.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UpdateGatewaySettingsParameters(Model): - """The update gateway settings request parameters. - - :param is_credential_enabled: Indicates whether or not the gateway - settings based authorization is enabled. Default value: True . - :type is_credential_enabled: bool - :param user_name: The gateway settings user name. - :type user_name: str - :param password: The gateway settings user password. - :type password: str - """ - - _attribute_map = { - 'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'}, - 'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'}, - 'password': {'key': 'restAuthCredential\\.password', 'type': 'str'}, - } - - def __init__(self, *, is_credential_enabled: bool=True, user_name: str=None, password: str=None, **kwargs) -> None: - super(UpdateGatewaySettingsParameters, self).__init__(**kwargs) - self.is_credential_enabled = is_credential_enabled - self.user_name = user_name - self.password = password diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usage.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usage.py deleted file mode 100644 index 691bb96ece5d..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usage.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 Usage(Model): - """The details about the usage of a particular limited resource. - - :param unit: The type of measurement for usage. - :type unit: str - :param current_value: The current usage. - :type current_value: int - :param limit: The maximum allowed usage. - :type limit: int - :param name: The details about the localizable name of the used resource. - :type name: ~azure.mgmt.hdinsight.models.LocalizedName - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'current_value': {'key': 'currentValue', 'type': 'int'}, - 'limit': {'key': 'limit', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'LocalizedName'}, - } - - def __init__(self, **kwargs): - super(Usage, self).__init__(**kwargs) - self.unit = kwargs.get('unit', None) - self.current_value = kwargs.get('current_value', None) - self.limit = kwargs.get('limit', None) - self.name = kwargs.get('name', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usage_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usage_py3.py deleted file mode 100644 index 7f400863cc17..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usage_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 Usage(Model): - """The details about the usage of a particular limited resource. - - :param unit: The type of measurement for usage. - :type unit: str - :param current_value: The current usage. - :type current_value: int - :param limit: The maximum allowed usage. - :type limit: int - :param name: The details about the localizable name of the used resource. - :type name: ~azure.mgmt.hdinsight.models.LocalizedName - """ - - _attribute_map = { - 'unit': {'key': 'unit', 'type': 'str'}, - 'current_value': {'key': 'currentValue', 'type': 'int'}, - 'limit': {'key': 'limit', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'LocalizedName'}, - } - - def __init__(self, *, unit: str=None, current_value: int=None, limit: int=None, name=None, **kwargs) -> None: - super(Usage, self).__init__(**kwargs) - self.unit = unit - self.current_value = current_value - self.limit = limit - self.name = name diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usages_list_result.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usages_list_result.py deleted file mode 100644 index 53610662ee09..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usages_list_result.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UsagesListResult(Model): - """The response for the operation to get regional usages for a subscription. - - :param value: The list of usages. - :type value: list[~azure.mgmt.hdinsight.models.Usage] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Usage]'}, - } - - def __init__(self, **kwargs): - super(UsagesListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usages_list_result_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usages_list_result_py3.py deleted file mode 100644 index 8b104ecb2001..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/usages_list_result_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UsagesListResult(Model): - """The response for the operation to get regional usages for a subscription. - - :param value: The list of usages. - :type value: list[~azure.mgmt.hdinsight.models.Usage] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Usage]'}, - } - - def __init__(self, *, value=None, **kwargs) -> None: - super(UsagesListResult, self).__init__(**kwargs) - self.value = value diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/virtual_network_profile.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/virtual_network_profile.py deleted file mode 100644 index 215c0db2b763..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/virtual_network_profile.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualNetworkProfile(Model): - """The virtual network properties. - - :param id: The ID of the virtual network. - :type id: str - :param subnet: The name of the subnet. - :type subnet: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subnet': {'key': 'subnet', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(VirtualNetworkProfile, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.subnet = kwargs.get('subnet', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/virtual_network_profile_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/virtual_network_profile_py3.py deleted file mode 100644 index 6687f9a6d9a4..000000000000 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/virtual_network_profile_py3.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VirtualNetworkProfile(Model): - """The virtual network properties. - - :param id: The ID of the virtual network. - :type id: str - :param subnet: The name of the subnet. - :type subnet: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'subnet': {'key': 'subnet', 'type': 'str'}, - } - - def __init__(self, *, id: str=None, subnet: str=None, **kwargs) -> None: - super(VirtualNetworkProfile, self).__init__(**kwargs) - self.id = id - self.subnet = subnet diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py index bb15f585c444..ec0d25c8216a 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py @@ -9,14 +9,14 @@ # regenerated. # -------------------------------------------------------------------------- -from .clusters_operations import ClustersOperations -from .applications_operations import ApplicationsOperations -from .locations_operations import LocationsOperations -from .configurations_operations import ConfigurationsOperations -from .extensions_operations import ExtensionsOperations -from .script_actions_operations import ScriptActionsOperations -from .script_execution_history_operations import ScriptExecutionHistoryOperations -from .operations import Operations +from ._clusters_operations import ClustersOperations +from ._applications_operations import ApplicationsOperations +from ._locations_operations import LocationsOperations +from ._configurations_operations import ConfigurationsOperations +from ._extensions_operations import ExtensionsOperations +from ._script_actions_operations import ScriptActionsOperations +from ._script_execution_history_operations import ScriptExecutionHistoryOperations +from ._operations import Operations __all__ = [ 'ClustersOperations', diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_applications_operations.py similarity index 97% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_applications_operations.py index 72a5618c5fba..343130f9ff63 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_applications_operations.py @@ -20,6 +20,8 @@ class ApplicationsOperations(object): """ApplicationsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -57,8 +59,7 @@ def list_by_cluster( :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_cluster.metadata['url'] @@ -89,6 +90,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -97,12 +103,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ApplicationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ApplicationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ApplicationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications'} @@ -160,7 +164,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Application', response) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_clusters_operations.py similarity index 98% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_clusters_operations.py index 2910ba67c293..bd5361093084 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_clusters_operations.py @@ -20,6 +20,8 @@ class ClustersOperations(object): """ClustersOperations 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. @@ -198,7 +200,6 @@ def update( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Cluster', response) @@ -337,7 +338,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Cluster', response) @@ -365,8 +365,7 @@ def list_by_resource_group( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list_by_resource_group.metadata['url'] @@ -396,6 +395,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -404,12 +408,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ClusterPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters'} @@ -518,8 +520,7 @@ def list( :raises: :class:`ErrorResponseException` """ - def internal_paging(next_link=None, raw=False): - + def prepare_request(next_link=None): if not next_link: # Construct URL url = self.list.metadata['url'] @@ -548,6 +549,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -556,12 +562,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.ClusterPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.ClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.ClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters'} @@ -702,7 +706,6 @@ def get_gateway_settings( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('GatewaySettings', response) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_configurations_operations.py similarity index 98% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_configurations_operations.py index e4dd4136d1c7..77faf1d55206 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_configurations_operations.py @@ -20,6 +20,8 @@ class ConfigurationsOperations(object): """ConfigurationsOperations 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. @@ -88,7 +90,6 @@ def list( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterConfigurations', response) @@ -244,7 +245,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('{str}', response) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_extensions_operations.py similarity index 99% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_extensions_operations.py index b7c857f73ac3..66d64685a1bc 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_extensions_operations.py @@ -20,6 +20,8 @@ class ExtensionsOperations(object): """ExtensionsOperations 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. @@ -181,7 +183,6 @@ def get_monitoring_status( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ClusterMonitoringResponse', response) @@ -421,7 +422,6 @@ def get( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Extension', response) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_locations_operations.py similarity index 96% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_locations_operations.py index a23feb791349..172ea365b2ee 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_locations_operations.py @@ -18,6 +18,8 @@ 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. @@ -83,7 +85,6 @@ def list_usages( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('UsagesListResult', response) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_operations.py similarity index 90% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_operations.py index 518df6a15b9c..20c04843ad92 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_operations.py @@ -18,6 +18,8 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -51,8 +53,7 @@ def list( :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'] @@ -77,6 +78,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -85,12 +91,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list.metadata = {'url': '/providers/Microsoft.HDInsight/operations'} diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_script_actions_operations.py similarity index 96% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_script_actions_operations.py index f69fe8b17673..87c81b4127a3 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_script_actions_operations.py @@ -18,6 +18,8 @@ class ScriptActionsOperations(object): """ScriptActionsOperations 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. @@ -110,8 +112,7 @@ def list_by_cluster( :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_cluster.metadata['url'] @@ -142,6 +143,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -150,12 +156,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.RuntimeScriptActionDetailPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.RuntimeScriptActionDetailPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.RuntimeScriptActionDetailPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions'} @@ -213,7 +217,6 @@ def get_execution_detail( raise models.ErrorResponseException(self._deserialize, response) deserialized = None - if response.status_code == 200: deserialized = self._deserialize('RuntimeScriptActionDetail', response) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_script_execution_history_operations.py similarity index 94% rename from sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py rename to sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_script_execution_history_operations.py index 36cfbb6fdb97..466f36d88eb9 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/_script_execution_history_operations.py @@ -18,6 +18,8 @@ class ScriptExecutionHistoryOperations(object): """ScriptExecutionHistoryOperations 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. @@ -55,8 +57,7 @@ def list_by_cluster( :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_cluster.metadata['url'] @@ -87,6 +88,11 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters, header_parameters) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: @@ -95,12 +101,10 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.RuntimeScriptActionDetailPaged(internal_paging, self._deserialize.dependencies) - + header_dict = None if raw: header_dict = {} - client_raw_response = models.RuntimeScriptActionDetailPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response + deserialized = models.RuntimeScriptActionDetailPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory'} diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py index 9ed7b1240a1c..24b9de3384da 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "1.1.0" +