diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 90cfff5147be..9f849066d399 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -18,7 +18,7 @@ /azure-mgmt-datalake-store/ @ro-joowan /azure-mgmt-datamigration/ @vchske /azure-mgmt-eventgrid/ @kalyanaj -/azure-mgmt-hdinsight/ @wawon-msft +/azure-mgmt-hdinsight/ @idear1203 /azure-mgmt-keyvault/ @schaabs /azure-mgmt-machinelearningcompute/ @shutchings /azure-mgmt-recoveryservices/ @DheerendraRathor diff --git a/azure-mgmt-hdinsight/HISTORY.rst b/azure-mgmt-hdinsight/HISTORY.rst index e67398f65bb4..fadd54d6fbc2 100644 --- a/azure-mgmt-hdinsight/HISTORY.rst +++ b/azure-mgmt-hdinsight/HISTORY.rst @@ -3,6 +3,35 @@ Release History =============== +0.2.0 (2018-12-11) +++++++++++++++++++ + +**Features** + +- Model SecurityProfile has a new parameter msi_resource_id +- Model SecurityProfile has a new parameter aadds_resource_id +- Model ClusterCreateProperties has a new parameter disk_encryption_properties +- Model ClusterGetProperties has a new parameter disk_encryption_properties +- Model Cluster has a new parameter identity +- Model ClusterCreateParametersExtended has a new parameter identity +- Added operation ClustersOperations.rotate_disk_encryption_key +- Added operation ScriptActionsOperations.list_by_cluster +- Added operation ScriptExecutionHistoryOperations.list_by_cluster +- Added operation ConfigurationsOperations.update +- Added operation ApplicationsOperations.list_by_cluster +- Added operation group ExtensionsOperations + +**Breaking changes** + +- Model ApplicationProperties no longer has parameter additional_properties +- Model ApplicationGetHttpsEndpoint no longer has parameter additional_properties +- Removed operation ScriptActionsOperations.list_persisted_scripts +- Removed operation ScriptExecutionHistoryOperations.list +- Removed operation ConfigurationsOperations.update_http_settings +- Removed operation ApplicationsOperations.list +- Removed operation LocationsOperations.get_capabilities +- Removed operation group ExtensionOperations + 0.1.0 (2018-08-08) ++++++++++++++++++ diff --git a/azure-mgmt-hdinsight/MANIFEST.in b/azure-mgmt-hdinsight/MANIFEST.in index bb37a2723dae..6ceb27f7a96e 100644 --- a/azure-mgmt-hdinsight/MANIFEST.in +++ b/azure-mgmt-hdinsight/MANIFEST.in @@ -1 +1,4 @@ include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py index 43afe47bc32b..817668024088 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py @@ -17,7 +17,7 @@ from .operations.applications_operations import ApplicationsOperations from .operations.locations_operations import LocationsOperations from .operations.configurations_operations import ConfigurationsOperations -from .operations.extension_operations import ExtensionOperations +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 @@ -72,8 +72,8 @@ class HDInsightManagementClient(SDKClient): :vartype locations: azure.mgmt.hdinsight.operations.LocationsOperations :ivar configurations: Configurations operations :vartype configurations: azure.mgmt.hdinsight.operations.ConfigurationsOperations - :ivar extension: Extension operations - :vartype extension: azure.mgmt.hdinsight.operations.ExtensionOperations + :ivar extensions: Extensions operations + :vartype extensions: azure.mgmt.hdinsight.operations.ExtensionsOperations :ivar script_actions: ScriptActions operations :vartype script_actions: azure.mgmt.hdinsight.operations.ScriptActionsOperations :ivar script_execution_history: ScriptExecutionHistory operations @@ -98,7 +98,7 @@ def __init__( super(HDInsightManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2015-03-01-preview' + self.api_version = '2018-06-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -110,7 +110,7 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.configurations = ConfigurationsOperations( self._client, self.config, self._serialize, self._deserialize) - self.extension = ExtensionOperations( + self.extensions = ExtensionsOperations( self._client, self.config, self._serialize, self._deserialize) self.script_actions = ScriptActionsOperations( self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py index 20db57166905..a99d4b7ecd87 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py @@ -24,7 +24,10 @@ 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 @@ -39,6 +42,7 @@ 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 .operation_resource_py3 import OperationResource from .resource_py3 import Resource from .tracked_resource_py3 import TrackedResource @@ -48,14 +52,6 @@ from .application_get_endpoint_py3 import ApplicationGetEndpoint from .application_properties_py3 import ApplicationProperties from .application_py3 import Application - from .version_spec_py3 import VersionSpec - from .versions_capability_py3 import VersionsCapability - from .regions_capability_py3 import RegionsCapability - from .vm_sizes_capability_py3 import VmSizesCapability - from .vm_size_compatibility_filter_py3 import VmSizeCompatibilityFilter - from .regional_quota_capability_py3 import RegionalQuotaCapability - from .quota_capability_py3 import QuotaCapability - from .capabilities_result_py3 import CapabilitiesResult from .localized_name_py3 import LocalizedName from .usage_py3 import Usage from .usages_list_result_py3 import UsagesListResult @@ -80,7 +76,10 @@ 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 @@ -95,6 +94,7 @@ 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 .operation_resource import OperationResource from .resource import Resource from .tracked_resource import TrackedResource @@ -104,14 +104,6 @@ from .application_get_endpoint import ApplicationGetEndpoint from .application_properties import ApplicationProperties from .application import Application - from .version_spec import VersionSpec - from .versions_capability import VersionsCapability - from .regions_capability import RegionsCapability - from .vm_sizes_capability import VmSizesCapability - from .vm_size_compatibility_filter import VmSizeCompatibilityFilter - from .regional_quota_capability import RegionalQuotaCapability - from .quota_capability import QuotaCapability - from .capabilities_result import CapabilitiesResult from .localized_name import LocalizedName from .usage import Usage from .usages_list_result import UsagesListResult @@ -129,6 +121,8 @@ DirectoryType, OSType, Tier, + JsonWebKeyEncryptionAlgorithm, + ResourceIdentityType, HDInsightClusterProvisioningState, AsyncOperationState, ) @@ -148,7 +142,10 @@ 'ComputeProfile', 'StorageAccount', 'StorageProfile', + 'DiskEncryptionProperties', 'ClusterCreateProperties', + 'ClusterIdentityUserAssignedIdentitiesValue', + 'ClusterIdentity', 'ClusterCreateParametersExtended', 'ClusterPatchParameters', 'QuotaInfo', @@ -163,6 +160,7 @@ 'RuntimeScriptActionDetail', 'ClusterListRuntimeScriptActionDetailResult', 'ClusterResizeParameters', + 'ClusterDiskEncryptionParameters', 'OperationResource', 'Resource', 'TrackedResource', @@ -172,14 +170,6 @@ 'ApplicationGetEndpoint', 'ApplicationProperties', 'Application', - 'VersionSpec', - 'VersionsCapability', - 'RegionsCapability', - 'VmSizesCapability', - 'VmSizeCompatibilityFilter', - 'RegionalQuotaCapability', - 'QuotaCapability', - 'CapabilitiesResult', 'LocalizedName', 'Usage', 'UsagesListResult', @@ -196,6 +186,8 @@ 'DirectoryType', 'OSType', 'Tier', + 'JsonWebKeyEncryptionAlgorithm', + 'ResourceIdentityType', 'HDInsightClusterProvisioningState', 'AsyncOperationState', ] diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py index b8f265d5e4d4..b4536fc4f42d 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py @@ -15,9 +15,6 @@ class ApplicationGetHttpsEndpoint(Model): """Gets the application HTTP endpoints. - :param additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, str] :param access_modes: The list of access modes for the application. :type access_modes: list[str] :param location: The location of the endpoint. @@ -29,7 +26,6 @@ class ApplicationGetHttpsEndpoint(Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, 'access_modes': {'key': 'accessModes', 'type': '[str]'}, 'location': {'key': 'location', 'type': 'str'}, 'destination_port': {'key': 'destinationPort', 'type': 'int'}, @@ -38,7 +34,6 @@ class ApplicationGetHttpsEndpoint(Model): def __init__(self, **kwargs): super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) - self.additional_properties = kwargs.get('additional_properties', None) self.access_modes = kwargs.get('access_modes', None) self.location = kwargs.get('location', None) self.destination_port = kwargs.get('destination_port', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py index 48942687a50a..e23d24ac3368 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py @@ -15,9 +15,6 @@ class ApplicationGetHttpsEndpoint(Model): """Gets the application HTTP endpoints. - :param additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, str] :param access_modes: The list of access modes for the application. :type access_modes: list[str] :param location: The location of the endpoint. @@ -29,16 +26,14 @@ class ApplicationGetHttpsEndpoint(Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, '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, *, additional_properties=None, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None: + 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.additional_properties = additional_properties self.access_modes = access_modes self.location = location self.destination_port = destination_port diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py index 5f5e67ca6d47..3318ebcc61dd 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py @@ -44,8 +44,6 @@ class ApplicationProperties(Model): :vartype created_date: str :ivar marketplace_identifier: The marketplace identifier. :vartype marketplace_identifier: str - :param additional_properties: The additional properties for application. - :type additional_properties: str """ _validation = { @@ -67,7 +65,6 @@ class ApplicationProperties(Model): 'errors': {'key': 'errors', 'type': '[Errors]'}, 'created_date': {'key': 'createdDate', 'type': 'str'}, 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, - 'additional_properties': {'key': 'additionalProperties', 'type': 'str'}, } def __init__(self, **kwargs): @@ -83,4 +80,3 @@ def __init__(self, **kwargs): self.errors = kwargs.get('errors', None) self.created_date = None self.marketplace_identifier = None - self.additional_properties = kwargs.get('additional_properties', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py index 81d958ec3648..9c3c4e55d5d4 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py @@ -44,8 +44,6 @@ class ApplicationProperties(Model): :vartype created_date: str :ivar marketplace_identifier: The marketplace identifier. :vartype marketplace_identifier: str - :param additional_properties: The additional properties for application. - :type additional_properties: str """ _validation = { @@ -67,10 +65,9 @@ class ApplicationProperties(Model): 'errors': {'key': 'errors', 'type': '[Errors]'}, 'created_date': {'key': 'createdDate', 'type': 'str'}, 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, - 'additional_properties': {'key': 'additionalProperties', '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, additional_properties: str=None, **kwargs) -> None: + 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 @@ -83,4 +80,3 @@ def __init__(self, *, compute_profile=None, install_script_actions=None, uninsta self.errors = errors self.created_date = None self.marketplace_identifier = None - self.additional_properties = additional_properties diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result.py deleted file mode 100644 index cbb4cd877acc..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result.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 CapabilitiesResult(Model): - """The Get Capabilities operation response. - - :param versions: The version capability. - :type versions: dict[str, ~azure.mgmt.hdinsight.models.VersionsCapability] - :param regions: The virtual machine size compatibilty features. - :type regions: dict[str, ~azure.mgmt.hdinsight.models.RegionsCapability] - :param vm_sizes: The virtual machine sizes. - :type vm_sizes: dict[str, ~azure.mgmt.hdinsight.models.VmSizesCapability] - :param vm_size_filters: The virtual machine size compatibilty filters. - :type vm_size_filters: - list[~azure.mgmt.hdinsight.models.VmSizeCompatibilityFilter] - :param features: The capabilty features. - :type features: list[str] - :param quota: The quota capability. - :type quota: ~azure.mgmt.hdinsight.models.QuotaCapability - """ - - _attribute_map = { - 'versions': {'key': 'versions', 'type': '{VersionsCapability}'}, - 'regions': {'key': 'regions', 'type': '{RegionsCapability}'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '{VmSizesCapability}'}, - 'vm_size_filters': {'key': 'vmSize_filters', 'type': '[VmSizeCompatibilityFilter]'}, - 'features': {'key': 'features', 'type': '[str]'}, - 'quota': {'key': 'quota', 'type': 'QuotaCapability'}, - } - - def __init__(self, **kwargs): - super(CapabilitiesResult, self).__init__(**kwargs) - self.versions = kwargs.get('versions', None) - self.regions = kwargs.get('regions', None) - self.vm_sizes = kwargs.get('vm_sizes', None) - self.vm_size_filters = kwargs.get('vm_size_filters', None) - self.features = kwargs.get('features', None) - self.quota = kwargs.get('quota', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result_py3.py deleted file mode 100644 index e057697f9f3f..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result_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 CapabilitiesResult(Model): - """The Get Capabilities operation response. - - :param versions: The version capability. - :type versions: dict[str, ~azure.mgmt.hdinsight.models.VersionsCapability] - :param regions: The virtual machine size compatibilty features. - :type regions: dict[str, ~azure.mgmt.hdinsight.models.RegionsCapability] - :param vm_sizes: The virtual machine sizes. - :type vm_sizes: dict[str, ~azure.mgmt.hdinsight.models.VmSizesCapability] - :param vm_size_filters: The virtual machine size compatibilty filters. - :type vm_size_filters: - list[~azure.mgmt.hdinsight.models.VmSizeCompatibilityFilter] - :param features: The capabilty features. - :type features: list[str] - :param quota: The quota capability. - :type quota: ~azure.mgmt.hdinsight.models.QuotaCapability - """ - - _attribute_map = { - 'versions': {'key': 'versions', 'type': '{VersionsCapability}'}, - 'regions': {'key': 'regions', 'type': '{RegionsCapability}'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '{VmSizesCapability}'}, - 'vm_size_filters': {'key': 'vmSize_filters', 'type': '[VmSizeCompatibilityFilter]'}, - 'features': {'key': 'features', 'type': '[str]'}, - 'quota': {'key': 'quota', 'type': 'QuotaCapability'}, - } - - def __init__(self, *, versions=None, regions=None, vm_sizes=None, vm_size_filters=None, features=None, quota=None, **kwargs) -> None: - super(CapabilitiesResult, self).__init__(**kwargs) - self.versions = versions - self.regions = regions - self.vm_sizes = vm_sizes - self.vm_size_filters = vm_size_filters - self.features = features - self.quota = quota diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py index cff55f384b0c..a9789d7e0561 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py @@ -32,6 +32,8 @@ class Cluster(TrackedResource): :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 = { @@ -48,9 +50,11 @@ class Cluster(TrackedResource): '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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py index 898754c65466..cf52365c9f99 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py @@ -21,12 +21,15 @@ class ClusterCreateParametersExtended(Model): :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): @@ -34,3 +37,4 @@ def __init__(self, **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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py index 31dfb47324d2..ab3cc3ffb567 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py @@ -21,16 +21,20 @@ class ClusterCreateParametersExtended(Model): :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, **kwargs) -> None: + 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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py index 2a3d9d82b770..1c8ded609314 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py @@ -31,6 +31,9 @@ class ClusterCreateProperties(Model): :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 = { @@ -41,6 +44,7 @@ class ClusterCreateProperties(Model): '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): @@ -52,3 +56,4 @@ def __init__(self, **kwargs): 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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py index 116d6af0eb95..4a20afc19233 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py @@ -31,6 +31,9 @@ class ClusterCreateProperties(Model): :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 = { @@ -41,9 +44,10 @@ class ClusterCreateProperties(Model): '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, **kwargs) -> None: + 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 @@ -52,3 +56,4 @@ def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluste 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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py new file mode 100644 index 000000000000..5be4b8a8baf4 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py new file mode 100644 index 000000000000..daca29d0db38 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py index 988d03dbf1a7..09d5d4e34216 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py @@ -47,6 +47,9 @@ class ClusterGetProperties(Model): :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 = { @@ -66,6 +69,7 @@ class ClusterGetProperties(Model): '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): @@ -82,3 +86,4 @@ def __init__(self, **kwargs): 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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py index 1c9024117dab..0709f53630c7 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py @@ -47,6 +47,9 @@ class ClusterGetProperties(Model): :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 = { @@ -66,9 +69,10 @@ class ClusterGetProperties(Model): '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, **kwargs) -> None: + 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 @@ -82,3 +86,4 @@ def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=Non self.quota_info = quota_info self.errors = errors self.connectivity_endpoints = connectivity_endpoints + self.disk_encryption_properties = disk_encryption_properties diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py new file mode 100644 index 000000000000..faaf1bd05360 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py new file mode 100644 index 000000000000..01df7592337f --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py new file mode 100644 index 000000000000..c72247be9c88 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py new file mode 100644 index 000000000000..697dfdb82627 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py index c73049d9c383..795bea63608f 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py @@ -32,6 +32,8 @@ class Cluster(TrackedResource): :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 = { @@ -48,9 +50,11 @@ class Cluster(TrackedResource): '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, **kwargs) -> None: + 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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py new file mode 100644 index 000000000000..1a18762417b0 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py new file mode 100644 index 000000000000..f95aa5550a6b --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py index 5c9779b9846e..34fee1d526d2 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py @@ -29,6 +29,21 @@ class Tier(str, Enum): premium = "Premium" +class JsonWebKeyEncryptionAlgorithm(str, Enum): + + rsa_oaep = "RSA-OAEP" + rsa_oaep_256 = "RSA-OAEP-256" + rsa1_5 = "RSA1_5" + + +class ResourceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + user_assigned = "UserAssigned" + system_assigned_user_assigned = "SystemAssigned, UserAssigned" + none = "None" + + class HDInsightClusterProvisioningState(str, Enum): in_progress = "InProgress" diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability.py deleted file mode 100644 index 49e7fae6b6d5..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability.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 QuotaCapability(Model): - """The regional quota capability. - - :param regional_quotas: The list of region quota capabilities. - :type regional_quotas: - list[~azure.mgmt.hdinsight.models.RegionalQuotaCapability] - """ - - _attribute_map = { - 'regional_quotas': {'key': 'regionalQuotas', 'type': '[RegionalQuotaCapability]'}, - } - - def __init__(self, **kwargs): - super(QuotaCapability, self).__init__(**kwargs) - self.regional_quotas = kwargs.get('regional_quotas', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability_py3.py deleted file mode 100644 index 486c9832fd7d..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability_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 QuotaCapability(Model): - """The regional quota capability. - - :param regional_quotas: The list of region quota capabilities. - :type regional_quotas: - list[~azure.mgmt.hdinsight.models.RegionalQuotaCapability] - """ - - _attribute_map = { - 'regional_quotas': {'key': 'regionalQuotas', 'type': '[RegionalQuotaCapability]'}, - } - - def __init__(self, *, regional_quotas=None, **kwargs) -> None: - super(QuotaCapability, self).__init__(**kwargs) - self.regional_quotas = regional_quotas diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability.py deleted file mode 100644 index 4e8819bbfeb0..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability.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 RegionalQuotaCapability(Model): - """The regional quota capacity. - - :param region_name: The region name. - :type region_name: str - :param cores_used: The number of cores used in the region. - :type cores_used: long - :param cores_available: The number of courses available in the region. - :type cores_available: long - """ - - _attribute_map = { - 'region_name': {'key': 'region_name', 'type': 'str'}, - 'cores_used': {'key': 'cores_used', 'type': 'long'}, - 'cores_available': {'key': 'cores_available', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(RegionalQuotaCapability, self).__init__(**kwargs) - self.region_name = kwargs.get('region_name', None) - self.cores_used = kwargs.get('cores_used', None) - self.cores_available = kwargs.get('cores_available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability_py3.py deleted file mode 100644 index 70ce7a01fa75..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability_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 RegionalQuotaCapability(Model): - """The regional quota capacity. - - :param region_name: The region name. - :type region_name: str - :param cores_used: The number of cores used in the region. - :type cores_used: long - :param cores_available: The number of courses available in the region. - :type cores_available: long - """ - - _attribute_map = { - 'region_name': {'key': 'region_name', 'type': 'str'}, - 'cores_used': {'key': 'cores_used', 'type': 'long'}, - 'cores_available': {'key': 'cores_available', 'type': 'long'}, - } - - def __init__(self, *, region_name: str=None, cores_used: int=None, cores_available: int=None, **kwargs) -> None: - super(RegionalQuotaCapability, self).__init__(**kwargs) - self.region_name = region_name - self.cores_used = cores_used - self.cores_available = cores_available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability.py deleted file mode 100644 index d6fa51ff1f94..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability.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 RegionsCapability(Model): - """The regions capability. - - :param available: The list of region capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(RegionsCapability, self).__init__(**kwargs) - self.available = kwargs.get('available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability_py3.py deleted file mode 100644 index aa424b372b14..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability_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 RegionsCapability(Model): - """The regions capability. - - :param available: The list of region capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, *, available=None, **kwargs) -> None: - super(RegionsCapability, self).__init__(**kwargs) - self.available = available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py index 8b75c890167d..ecb3c04b3289 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py @@ -35,6 +35,12 @@ class SecurityProfile(Model): :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 = { @@ -45,6 +51,8 @@ class SecurityProfile(Model): '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): @@ -56,3 +64,5 @@ def __init__(self, **kwargs): 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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py index 08abec9760cb..44a2ad7904af 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py @@ -35,6 +35,12 @@ class SecurityProfile(Model): :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 = { @@ -45,9 +51,11 @@ class SecurityProfile(Model): '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, **kwargs) -> None: + 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 @@ -56,3 +64,5 @@ def __init__(self, *, directory_type=None, domain: str=None, organizational_unit 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/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py index d5bde1b626bb..c65f5dc49529 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py @@ -24,7 +24,7 @@ class StorageAccount(Model): specified for WASB storage accounts. :type container: str :param file_system: The filesystem, only to be specified for Azure Data - Lake Storage Gen 2. + Lake Storage type Gen 2. :type file_system: str :param key: The storage account access key. :type key: str diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py index 544b49927dde..41f9ea602657 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py @@ -24,7 +24,7 @@ class StorageAccount(Model): specified for WASB storage accounts. :type container: str :param file_system: The filesystem, only to be specified for Azure Data - Lake Storage Gen 2. + Lake Storage type Gen 2. :type file_system: str :param key: The storage account access key. :type key: str diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec.py deleted file mode 100644 index d3d95d985f43..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec.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 VersionSpec(Model): - """The version properties. - - :param friendly_name: The friendly name - :type friendly_name: str - :param display_name: The display name - :type display_name: str - :param is_default: Whether or not the version is the default version. - :type is_default: str - :param component_versions: The component version property. - :type component_versions: dict[str, str] - """ - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'str'}, - 'component_versions': {'key': 'componentVersions', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(VersionSpec, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.display_name = kwargs.get('display_name', None) - self.is_default = kwargs.get('is_default', None) - self.component_versions = kwargs.get('component_versions', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec_py3.py deleted file mode 100644 index a993e923a313..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec_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 VersionSpec(Model): - """The version properties. - - :param friendly_name: The friendly name - :type friendly_name: str - :param display_name: The display name - :type display_name: str - :param is_default: Whether or not the version is the default version. - :type is_default: str - :param component_versions: The component version property. - :type component_versions: dict[str, str] - """ - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'str'}, - 'component_versions': {'key': 'componentVersions', 'type': '{str}'}, - } - - def __init__(self, *, friendly_name: str=None, display_name: str=None, is_default: str=None, component_versions=None, **kwargs) -> None: - super(VersionSpec, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.display_name = display_name - self.is_default = is_default - self.component_versions = component_versions diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability.py deleted file mode 100644 index 9b059cd8058f..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability.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 VersionsCapability(Model): - """The version capability. - - :param available: The list of version capabilities. - :type available: list[~azure.mgmt.hdinsight.models.VersionSpec] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[VersionSpec]'}, - } - - def __init__(self, **kwargs): - super(VersionsCapability, self).__init__(**kwargs) - self.available = kwargs.get('available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability_py3.py deleted file mode 100644 index 869811057316..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability_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 VersionsCapability(Model): - """The version capability. - - :param available: The list of version capabilities. - :type available: list[~azure.mgmt.hdinsight.models.VersionSpec] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[VersionSpec]'}, - } - - def __init__(self, *, available=None, **kwargs) -> None: - super(VersionsCapability, self).__init__(**kwargs) - self.available = available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter.py deleted file mode 100644 index de0164b831e6..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VmSizeCompatibilityFilter(Model): - """The virtual machine type compatibility filter. - - :param filter_mode: The mode for the filter. - :type filter_mode: str - :param regions: The list of regions. - :type regions: list[str] - :param cluster_flavors: The list of cluster types available. - :type cluster_flavors: list[str] - :param node_types: The list of node types. - :type node_types: list[str] - :param cluster_versions: The list of cluster versions. - :type cluster_versions: list[str] - :param vmsizes: The list of virtual machine sizes. - :type vmsizes: list[str] - """ - - _attribute_map = { - 'filter_mode': {'key': 'FilterMode', 'type': 'str'}, - 'regions': {'key': 'Regions', 'type': '[str]'}, - 'cluster_flavors': {'key': 'ClusterFlavors', 'type': '[str]'}, - 'node_types': {'key': 'NodeTypes', 'type': '[str]'}, - 'cluster_versions': {'key': 'ClusterVersions', 'type': '[str]'}, - 'vmsizes': {'key': 'vmsizes', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(VmSizeCompatibilityFilter, self).__init__(**kwargs) - self.filter_mode = kwargs.get('filter_mode', None) - self.regions = kwargs.get('regions', None) - self.cluster_flavors = kwargs.get('cluster_flavors', None) - self.node_types = kwargs.get('node_types', None) - self.cluster_versions = kwargs.get('cluster_versions', None) - self.vmsizes = kwargs.get('vmsizes', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter_py3.py deleted file mode 100644 index 0e1e15cdf30b..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VmSizeCompatibilityFilter(Model): - """The virtual machine type compatibility filter. - - :param filter_mode: The mode for the filter. - :type filter_mode: str - :param regions: The list of regions. - :type regions: list[str] - :param cluster_flavors: The list of cluster types available. - :type cluster_flavors: list[str] - :param node_types: The list of node types. - :type node_types: list[str] - :param cluster_versions: The list of cluster versions. - :type cluster_versions: list[str] - :param vmsizes: The list of virtual machine sizes. - :type vmsizes: list[str] - """ - - _attribute_map = { - 'filter_mode': {'key': 'FilterMode', 'type': 'str'}, - 'regions': {'key': 'Regions', 'type': '[str]'}, - 'cluster_flavors': {'key': 'ClusterFlavors', 'type': '[str]'}, - 'node_types': {'key': 'NodeTypes', 'type': '[str]'}, - 'cluster_versions': {'key': 'ClusterVersions', 'type': '[str]'}, - 'vmsizes': {'key': 'vmsizes', 'type': '[str]'}, - } - - def __init__(self, *, filter_mode: str=None, regions=None, cluster_flavors=None, node_types=None, cluster_versions=None, vmsizes=None, **kwargs) -> None: - super(VmSizeCompatibilityFilter, self).__init__(**kwargs) - self.filter_mode = filter_mode - self.regions = regions - self.cluster_flavors = cluster_flavors - self.node_types = node_types - self.cluster_versions = cluster_versions - self.vmsizes = vmsizes diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability.py deleted file mode 100644 index 4ea9c0b45ae5..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability.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 VmSizesCapability(Model): - """The virtual machine sizes capability. - - :param available: The list of virtual machine size capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(VmSizesCapability, self).__init__(**kwargs) - self.available = kwargs.get('available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability_py3.py deleted file mode 100644 index eb83370cbc7c..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability_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 VmSizesCapability(Model): - """The virtual machine sizes capability. - - :param available: The list of virtual machine size capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, *, available=None, **kwargs) -> None: - super(VmSizesCapability, self).__init__(**kwargs) - self.available = available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py index 4775164d2e41..bb15f585c444 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py @@ -13,7 +13,7 @@ from .applications_operations import ApplicationsOperations from .locations_operations import LocationsOperations from .configurations_operations import ConfigurationsOperations -from .extension_operations import ExtensionOperations +from .extensions_operations import ExtensionsOperations from .script_actions_operations import ScriptActionsOperations from .script_execution_history_operations import ScriptExecutionHistoryOperations from .operations import Operations @@ -23,7 +23,7 @@ 'ApplicationsOperations', 'LocationsOperations', 'ConfigurationsOperations', - 'ExtensionOperations', + 'ExtensionsOperations', 'ScriptActionsOperations', 'ScriptExecutionHistoryOperations', 'Operations', diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py index ac32a4c915fb..72a5618c5fba 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py @@ -24,7 +24,7 @@ class ApplicationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -34,11 +34,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def list( + def list_by_cluster( self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): """Lists all of the applications for the HDInsight cluster. @@ -61,7 +61,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list_by_cluster.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -105,11 +105,11 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications'} + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications'} def get( self, resource_group_name, cluster_name, application_name, custom_headers=None, raw=False, **operation_config): - """Lists properties of the specified application. + """Gets properties of the specified application. :param resource_group_name: The name of the resource group. :type resource_group_name: str diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py index fd2103ccfcbb..7b8df20b343d 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py @@ -24,7 +24,7 @@ class ClustersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". :ivar role_name: The constant value for the roleName. Constant value: "workernode". """ @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.role_name = "workernode" self.config = config @@ -567,6 +567,92 @@ def internal_paging(next_link=None, raw=False): list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters'} + def _rotate_disk_encryption_key_initial( + self, resource_group_name, cluster_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.rotate_disk_encryption_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ClusterDiskEncryptionParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def rotate_disk_encryption_key( + self, resource_group_name, cluster_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Rotate disk encryption key of the specified HDInsight cluster. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param parameters: The parameters for the disk encryption operation. + :type parameters: + ~azure.mgmt.hdinsight.models.ClusterDiskEncryptionParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._rotate_disk_encryption_key_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + rotate_disk_encryption_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey'} + + def _execute_script_actions_initial( self, resource_group_name, cluster_name, persist_on_success, script_actions=None, custom_headers=None, raw=False, **operation_config): parameters = models.ExecuteScriptActionParameters(script_actions=script_actions, persist_on_success=persist_on_success) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py index c34316103990..c0b9a95c02f9 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py @@ -24,7 +24,7 @@ class ConfigurationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -34,15 +34,15 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def _update_http_settings_initial( + def _update_initial( self, resource_group_name, cluster_name, configuration_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.update_http_settings.metadata['url'] + url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -79,9 +79,9 @@ def _update_http_settings_initial( client_raw_response = ClientRawResponse(None, response) return client_raw_response - def update_http_settings( + def update( self, resource_group_name, cluster_name, configuration_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Configures the HTTP settings on the specified cluster. + """Configures the configuration on the specified cluster. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -103,7 +103,7 @@ def update_http_settings( :raises: :class:`ErrorResponseException` """ - raw_result = self._update_http_settings_initial( + raw_result = self._update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, configuration_name=configuration_name, @@ -125,7 +125,7 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update_http_settings.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}'} + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}'} def get( self, resource_group_name, cluster_name, configuration_name, custom_headers=None, raw=False, **operation_config): diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extension_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py similarity index 86% rename from azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extension_operations.py rename to azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py index a9296779ebed..b7c857f73ac3 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extension_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py @@ -17,14 +17,14 @@ from .. import models -class ExtensionOperations(object): - """ExtensionOperations operations. +class ExtensionsOperations(object): + """ExtensionsOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config @@ -271,32 +271,9 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) disable_monitoring.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring'} - def create( - self, resource_group_name, cluster_name, extension_name, workspace_id=None, primary_key=None, custom_headers=None, raw=False, **operation_config): - """Creates an HDInsight cluster extension. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param extension_name: The name of the cluster extension. - :type extension_name: str - :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 - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ + def _create_initial( + self, resource_group_name, cluster_name, extension_name, workspace_id=None, primary_key=None, custom_headers=None, raw=False, **operation_config): parameters = models.Extension(workspace_id=workspace_id, primary_key=primary_key) # Construct URL @@ -336,6 +313,58 @@ def create( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + + def create( + self, resource_group_name, cluster_name, extension_name, workspace_id=None, primary_key=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates an HDInsight cluster extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param extension_name: The name of the cluster extension. + :type extension_name: str + :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 + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + extension_name=extension_name, + workspace_id=workspace_id, + primary_key=primary_key, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}'} def get( @@ -403,26 +432,9 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}'} - def delete( - self, resource_group_name, cluster_name, extension_name, custom_headers=None, raw=False, **operation_config): - """Deletes the specified extension for HDInsight cluster. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param extension_name: The name of the cluster extension. - :type extension_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ + def _delete_initial( + self, resource_group_name, cluster_name, extension_name, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.delete.metadata['url'] path_format_arguments = { @@ -456,4 +468,48 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + + def delete( + self, resource_group_name, cluster_name, extension_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified extension for HDInsight cluster. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param extension_name: The name of the cluster extension. + :type extension_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + extension_name=extension_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}'} diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py index fddc5bd6cbd8..a23feb791349 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py @@ -22,7 +22,7 @@ class LocationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,73 +32,15 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def get_capabilities( - self, location, custom_headers=None, raw=False, **operation_config): - """Gets the capabilities for the specified location. - - :param location: The location. - :type location: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: CapabilitiesResult or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.hdinsight.models.CapabilitiesResult or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get_capabilities.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('CapabilitiesResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_capabilities.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities'} - def list_usages( self, location, custom_headers=None, raw=False, **operation_config): """Lists the usages for the specified location. - :param location: The location. + :param location: The location to get capabilities for. :type location: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py index 8978d9d1a856..518df6a15b9c 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py @@ -22,7 +22,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py index 23b9d13e4e60..f69fe8b17673 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py @@ -22,7 +22,7 @@ class ScriptActionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config @@ -91,7 +91,7 @@ def delete( return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}'} - def list_persisted_scripts( + def list_by_cluster( self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): """Lists all the persisted script actions for the specified cluster. @@ -114,7 +114,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_persisted_scripts.metadata['url'] + url = self.list_by_cluster.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -158,7 +158,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_persisted_scripts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions'} + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions'} def get_execution_detail( self, resource_group_name, cluster_name, script_execution_id, custom_headers=None, raw=False, **operation_config): diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py index 1deb836e4bbb..36cfbb6fdb97 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py @@ -22,7 +22,7 @@ class ScriptExecutionHistoryOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,11 +32,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def list( + def list_by_cluster( self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): """Lists all scripts' execution history for the specified cluster. @@ -59,7 +59,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list_by_cluster.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -103,7 +103,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory'} + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory'} def promote( self, resource_group_name, cluster_name, script_execution_id, custom_headers=None, raw=False, **operation_config): diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py index e0ec669828cb..9bd1dfac7ecb 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "0.2.0" diff --git a/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml b/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml index 81678ca067be..39754e01cef5 100644 --- a/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml +++ b/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml @@ -1,45 +1,44 @@ interactions: - request: - body: !!python/unicode '{"tags": {}, "properties": {"computeProfile": {"roles": - [{"hardwareProfile": {"vmSize": "Large"}, "osProfile": {"linuxOperatingSystemProfile": - {"username": "sshuser", "password": "Password1!"}}, "targetInstanceCount": 2, - "name": "headnode"}, {"hardwareProfile": {"vmSize": "Large"}, "osProfile": {"linuxOperatingSystemProfile": - {"username": "sshuser", "password": "Password1!"}}, "targetInstanceCount": 1, - "name": "workernode"}]}, "tier": "Standard", "clusterVersion": "3.6", "clusterDefinition": - {"kind": "hadoop", "configurations": {"gateway": {"restAuthCredential.enabled_credential": + body: '{"location": "North Central US", "tags": {}, "properties": {"clusterVersion": + "3.6", "osType": "Linux", "tier": "Standard", "clusterDefinition": {"kind": + "hadoop", "configurations": {"gateway": {"restAuthCredential.enabled_credential": "True", "restAuthCredential.username": "admin", "restAuthCredential.password": - "Password1!"}}}, "storageProfile": {"storageaccounts": [{"key": "E9Rz4cwkow1pdAXMEheSehexmUM2gqO455grmiK48TwgBqbAbBfUKLF78MRdkhBPo69qc4UX+BDUHpeJffHLOA==", - "container": "hdisdk-py-humboldt42fd1018", "name": "wawonsdkncentralus.blob.core.windows.net", - "isDefault": true}]}, "osType": "Linux"}, "location": "North Central US"}' + "Password1!"}}}, "computeProfile": {"roles": [{"name": "headnode", "targetInstanceCount": + 2, "hardwareProfile": {"vmSize": "Large"}, "osProfile": {"linuxOperatingSystemProfile": + {"username": "sshuser", "password": "Password1!"}}}, {"name": "workernode", + "targetInstanceCount": 1, "hardwareProfile": {"vmSize": "Large"}, "osProfile": + {"linuxOperatingSystemProfile": {"username": "sshuser", "password": "Password1!"}}}]}, + "storageProfile": {"storageaccounts": [{"name": "hdipy42fd1018.blob.core.windows.net", + "isDefault": true, "container": "hdisdk-py-humboldt42fd1018", "key": "Qt30F256o/9CBXlI63MPOhBI7aGSem+1Ub1hivqizOAjynp7hEgKrJN/+7pUZKy+KRuUS46SSYV5ztQvXWP+oQ=="}]}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['991'] + Content-Length: ['986'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North - Central US","etag":"32e11f66-c84d-4f5f-b65a-b4c10f79be41","tags":{},"properties":{"clusterVersion":"3.6.1000.65","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.65.1807162004.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"InProgress","clusterState":"Accepted","createdDate":"2018-08-07T03:02:48.57","quotaInfo":{"coresUsed":12},"tier":"standard"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North + Central US","etag":"9ed0dec5-36b8-44ba-ad50-047ca398114f","tags":{},"properties":{"clusterVersion":"3.6.1000.67","clusterHdpVersion":"","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.1812021626.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"InProgress","clusterState":"Accepted","createdDate":"2018-12-11T09:41:55.573","quotaInfo":{"coresUsed":12},"tier":"standard"}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview'] cache-control: [no-cache] - content-length: ['1095'] + content-length: ['1119'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:02:48 GMT'] - etag: ['"32e11f66-c84d-4f5f-b65a-b4c10f79be41"'] + date: ['Tue, 11 Dec 2018 09:41:56 GMT'] + etag: ['"9ed0dec5-36b8-44ba-ad50-047ca398114f"'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-hdi-clusteruri: ['https://management.azure.com/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview'] + x-ms-hdi-clusteruri: ['https://management.azure.com/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview'] x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] x-ms-hdi-routed-to: [RegionalRp] x-ms-hdi-served-by: [northcentralus] @@ -51,18 +50,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:03:19 GMT'] + date: ['Tue, 11 Dec 2018 09:42:26 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -79,18 +77,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:03:50 GMT'] + date: ['Tue, 11 Dec 2018 09:42:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -107,18 +104,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:04:21 GMT'] + date: ['Tue, 11 Dec 2018 09:43:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -135,18 +131,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:04:51 GMT'] + date: ['Tue, 11 Dec 2018 09:44:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -163,18 +158,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:05:22 GMT'] + date: ['Tue, 11 Dec 2018 09:44:30 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -191,18 +185,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:05:53 GMT'] + date: ['Tue, 11 Dec 2018 09:45:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -219,18 +212,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:06:24 GMT'] + date: ['Tue, 11 Dec 2018 09:45:32 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -247,18 +239,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:06:54 GMT'] + date: ['Tue, 11 Dec 2018 09:46:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -275,18 +266,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:07:25 GMT'] + date: ['Tue, 11 Dec 2018 09:46:34 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -303,18 +293,43 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not + receive a response from ''Microsoft.HDInsight'' within the specified time + period."}}'} + headers: + cache-control: [no-cache] + connection: [close] + content-length: ['147'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 09:47:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-failure-cause: [service] + status: {code: 504, message: Gateway Timeout} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:07:56 GMT'] + date: ['Tue, 11 Dec 2018 09:47:26 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -331,18 +346,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:08:26 GMT'] + date: ['Tue, 11 Dec 2018 09:47:56 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -359,18 +373,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:08:57 GMT'] + date: ['Tue, 11 Dec 2018 09:48:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -387,18 +400,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:09:27 GMT'] + date: ['Tue, 11 Dec 2018 09:48:58 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -415,18 +427,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:09:59 GMT'] + date: ['Tue, 11 Dec 2018 09:49:30 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -443,18 +454,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:10:30 GMT'] + date: ['Tue, 11 Dec 2018 09:50:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -471,18 +481,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:11:01 GMT'] + date: ['Tue, 11 Dec 2018 09:50:31 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -499,18 +508,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:11:32 GMT'] + date: ['Tue, 11 Dec 2018 09:51:02 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -527,18 +535,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:12:02 GMT'] + date: ['Tue, 11 Dec 2018 09:51:33 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -555,18 +562,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:12:33 GMT'] + date: ['Tue, 11 Dec 2018 09:52:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -583,18 +589,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:13:03 GMT'] + date: ['Tue, 11 Dec 2018 09:52:35 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -611,18 +616,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:13:35 GMT'] + date: ['Tue, 11 Dec 2018 09:53:06 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -639,18 +643,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:14:06 GMT'] + date: ['Tue, 11 Dec 2018 09:53:37 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -667,18 +670,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:14:36 GMT'] + date: ['Tue, 11 Dec 2018 09:54:07 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -695,18 +697,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:15:07 GMT'] + date: ['Tue, 11 Dec 2018 09:54:39 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -723,18 +724,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:15:37 GMT'] + date: ['Tue, 11 Dec 2018 09:55:10 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -751,18 +751,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:16:08 GMT'] + date: ['Tue, 11 Dec 2018 09:55:41 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -779,18 +778,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:16:38 GMT'] + date: ['Tue, 11 Dec 2018 09:56:11 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -807,18 +805,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:17:09 GMT'] + date: ['Tue, 11 Dec 2018 09:56:42 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -835,18 +832,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] - content-length: ['22'] + content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:17:40 GMT'] + date: ['Tue, 11 Dec 2018 09:57:13 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -863,19 +859,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North - Central US","etag":"32e11f66-c84d-4f5f-b65a-b4c10f79be41","tags":{},"properties":{"clusterVersion":"3.6.1000.65","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.65.1807162004.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"zookeepernode","targetInstanceCount":3,"hardwareProfile":{"vmSize":"Medium"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"Succeeded","clusterState":"Running","createdDate":"2018-08-07T03:02:48.57","quotaInfo":{"coresUsed":12},"connectivityEndpoints":[{"name":"SSH","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018-ssh.azurehdinsight.net","port":22},{"name":"HTTPS","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018.azurehdinsight.net","port":443}],"tier":"standard"}}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] - content-length: ['1507'] + content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:17:41 GMT'] + date: ['Tue, 11 Dec 2018 09:57:44 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -887,54 +881,49 @@ interactions: x-ms-hdi-served-by: [northcentralus] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"targetInstanceCount": 2}' + body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['26'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/roles/workernode/resize?api-version=2015-03-01-preview + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode ''} + body: {string: '{"status":"InProgress"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview'] cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 07 Aug 2018 03:17:42 GMT'] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 09:58:15 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/operationresults/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] x-ms-hdi-routed-to: [RegionalRp] x-ms-hdi-served-by: [northcentralus] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:18:43 GMT'] + date: ['Tue, 11 Dec 2018 09:58:47 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -951,18 +940,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:19:14 GMT'] + date: ['Tue, 11 Dec 2018 09:59:18 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -979,18 +967,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:19:45 GMT'] + date: ['Tue, 11 Dec 2018 09:59:49 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1007,18 +994,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:20:15 GMT'] + date: ['Tue, 11 Dec 2018 10:00:19 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1035,18 +1021,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:20:46 GMT'] + date: ['Tue, 11 Dec 2018 10:00:51 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1063,18 +1048,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:21:17 GMT'] + date: ['Tue, 11 Dec 2018 10:01:21 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1091,18 +1075,71 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:21:47 GMT'] + date: ['Tue, 11 Dec 2018 10:01:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:02:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:02:54 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1119,18 +1156,75 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North + Central US","etag":"9ed0dec5-36b8-44ba-ad50-047ca398114f","tags":{},"properties":{"clusterVersion":"3.6.1000.67","clusterHdpVersion":"2.6.5.3005-23","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.1812021626.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"zookeepernode","targetInstanceCount":3,"hardwareProfile":{"vmSize":"Medium"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"Succeeded","clusterState":"Running","createdDate":"2018-12-11T09:41:55.573","quotaInfo":{"coresUsed":12},"connectivityEndpoints":[{"name":"SSH","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018-ssh.azurehdinsight.net","port":22},{"name":"HTTPS","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018.azurehdinsight.net","port":443}],"tier":"standard"}}'} + headers: + cache-control: [no-cache] + content-length: ['1544'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:02:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: '{"targetInstanceCount": 2}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['26'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/roles/workernode/resize?api-version=2018-06-01-preview + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 11 Dec 2018 10:02:57 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/operationresults/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:22:17 GMT'] + date: ['Tue, 11 Dec 2018 10:03:58 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1147,18 +1241,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:22:48 GMT'] + date: ['Tue, 11 Dec 2018 10:04:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1175,18 +1268,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:23:20 GMT'] + date: ['Tue, 11 Dec 2018 10:05:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1203,18 +1295,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:23:49 GMT'] + date: ['Tue, 11 Dec 2018 10:05:30 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1231,18 +1322,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:24:20 GMT'] + date: ['Tue, 11 Dec 2018 10:06:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1259,18 +1349,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:24:50 GMT'] + date: ['Tue, 11 Dec 2018 10:06:31 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1287,18 +1376,152 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:07:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:07:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:08:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:08:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:09:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:25:21 GMT'] + date: ['Tue, 11 Dec 2018 10:09:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1317,21 +1540,20 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview response: - body: {string: !!python/unicode ''} + body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 07 Aug 2018 03:25:23 GMT'] + date: ['Tue, 11 Dec 2018 10:09:38 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/operationresults/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/operationresults/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -1346,18 +1568,44 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:10:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [AsyncOperationsWithRegionalSuffix] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:26:24 GMT'] + date: ['Tue, 11 Dec 2018 10:11:09 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1374,18 +1622,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} + body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:26:54 GMT'] + date: ['Tue, 11 Dec 2018 10:11:40 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1396,4 +1643,4 @@ interactions: x-ms-hdi-routed-to: [RegionalRp] x-ms-hdi-served-by: [northcentralus] status: {code: 200, message: OK} -version: 1 +version: 1 \ No newline at end of file diff --git a/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py b/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py index 5896b748f483..0d76464b8587 100644 --- a/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py +++ b/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py @@ -9,7 +9,7 @@ from azure.mgmt.hdinsight import HDInsightManagementClient from azure.mgmt.hdinsight.models import * -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer, StorageAccountPreparer, FakeStorageAccount class HDInsightTestConfig: @@ -19,11 +19,12 @@ class HDInsightTestConfig: cluster_password = "Password1!" ssh_username = "sshuser" ssh_password = "Password1!" - storage_account = "wawonsdkncentralus.blob.core.windows.net" - - # Sensitive test configs - storage_account_key = "" + storage_account_suffix = ".blob.core.windows.net" + FAKE_STORAGE = FakeStorageAccount( + name='pyhdi', + id='', + ) class MgmtHDInsightTest(AzureMgmtTestCase): @@ -34,10 +35,22 @@ def setUp(self): ) @ResourceGroupPreparer(location=HDInsightTestConfig.location) - def test_cluster_create(self, resource_group, location): + @StorageAccountPreparer(name_prefix='hdipy', location=HDInsightTestConfig.location, playback_fake_resource=HDInsightTestConfig.FAKE_STORAGE) + def test_cluster_create(self, resource_group, location, storage_account, storage_account_key): cluster_name = self.get_resource_name('hdisdk-py-humboldt') + create_params = self.get_extended_create_params(location, cluster_name, storage_account.name, storage_account_key) + create_poller = self.hdinsight_client.clusters.create(resource_group.name, cluster_name, create_params) + cluster = create_poller.result() + self.validate_cluster(create_params, cluster) + + scale_poller = self.hdinsight_client.clusters.resize(resource_group.name, cluster_name, target_instance_count=2) + scale_poller.wait() + + delete_poller = self.hdinsight_client.clusters.delete(resource_group.name, cluster_name) + delete_poller.wait() - create_params = ClusterCreateParametersExtended( + def get_extended_create_params(self, location, cluster_name, storage_account_name, storage_account_key): + return ClusterCreateParametersExtended( location=location, tags={}, properties=ClusterCreateProperties( @@ -82,8 +95,8 @@ def test_cluster_create(self, resource_group, location): ), storage_profile=StorageProfile( storageaccounts=[StorageAccount( - name=HDInsightTestConfig.storage_account, - key=HDInsightTestConfig.storage_account_key, + name=storage_account_name + HDInsightTestConfig.storage_account_suffix, + key=storage_account_key, container=cluster_name.lower(), is_default=True )] @@ -91,16 +104,6 @@ def test_cluster_create(self, resource_group, location): ) ) - create_poller = self.hdinsight_client.clusters.create(resource_group.name, cluster_name, create_params) - cluster = create_poller.result() - self.validate_cluster(create_params, cluster) - - scale_poller = self.hdinsight_client.clusters.resize(resource_group.name, cluster_name, target_instance_count=2) - scale_poller.wait() - - delete_poller = self.hdinsight_client.clusters.delete(resource_group.name, cluster_name) - delete_poller.wait() - def validate_cluster(self, create_parameters, cluster_response): self.assertEqual(create_parameters.properties.tier, cluster_response.properties.tier) self.assertEqual("Running", cluster_response.properties.cluster_state)