diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md b/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md index 20ddf781cf1a..f8ac9179200a 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md +++ b/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.5.1 (2020-06-11) + +**Bugfixes** + - Fix the List Response + + ## 1.5.0 (2020-05-29) **Features** diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py index 0560366b70b7..105062a36711 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py @@ -54,6 +54,7 @@ from ._models_py3 import KafkaRestProperties from ._models_py3 import LinuxOperatingSystemProfile from ._models_py3 import LocalizedName + from ._models_py3 import NetworkSettings from ._models_py3 import Operation from ._models_py3 import OperationDisplay from ._models_py3 import OperationResource @@ -130,6 +131,7 @@ from ._models import KafkaRestProperties from ._models import LinuxOperatingSystemProfile from ._models import LocalizedName + from ._models import NetworkSettings from ._models import Operation from ._models import OperationDisplay from ._models import OperationResource @@ -168,6 +170,8 @@ from ._hd_insight_management_client_enums import ( DirectoryType, DaysOfWeek, + PublicNetworkAccess, + OutboundOnlyPublicNetworkAccessType, OSType, Tier, JsonWebKeyEncryptionAlgorithm, @@ -222,6 +226,7 @@ 'KafkaRestProperties', 'LinuxOperatingSystemProfile', 'LocalizedName', + 'NetworkSettings', 'Operation', 'OperationDisplay', 'OperationResource', @@ -259,6 +264,8 @@ 'OperationPaged', 'DirectoryType', 'DaysOfWeek', + 'PublicNetworkAccess', + 'OutboundOnlyPublicNetworkAccessType', 'OSType', 'Tier', 'JsonWebKeyEncryptionAlgorithm', diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py index 94a5c11f6993..271ee0bd61b8 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py @@ -28,6 +28,18 @@ class DaysOfWeek(str, Enum): sunday = "Sunday" +class PublicNetworkAccess(str, Enum): + + inbound_and_outbound = "InboundAndOutbound" + outbound_only = "OutboundOnly" + + +class OutboundOnlyPublicNetworkAccessType(str, Enum): + + public_load_balancer = "PublicLoadBalancer" + udr = "UDR" + + class OSType(str, Enum): windows = "Windows" diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py index fb6176bb2a45..feca36e74c5f 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py @@ -659,6 +659,8 @@ class ClusterCreateProperties(Model): ~azure.mgmt.hdinsight.models.DiskEncryptionProperties :param min_supported_tls_version: The minimal supported tls version. :type min_supported_tls_version: str + :param network_settings: The network settings. + :type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings """ _attribute_map = { @@ -672,6 +674,7 @@ class ClusterCreateProperties(Model): 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, 'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'}, + 'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'}, } def __init__(self, **kwargs): @@ -686,6 +689,7 @@ def __init__(self, **kwargs): self.storage_profile = kwargs.get('storage_profile', None) self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None) + self.network_settings = kwargs.get('network_settings', None) class ClusterDefinition(Model): @@ -786,6 +790,8 @@ class ClusterGetProperties(Model): ~azure.mgmt.hdinsight.models.DiskEncryptionProperties :param min_supported_tls_version: The minimal supported tls version. :type min_supported_tls_version: str + :param network_settings: The network settings. + :type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings """ _validation = { @@ -808,6 +814,7 @@ class ClusterGetProperties(Model): 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, 'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'}, + 'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'}, } def __init__(self, **kwargs): @@ -827,6 +834,7 @@ def __init__(self, **kwargs): self.connectivity_endpoints = kwargs.get('connectivity_endpoints', None) self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None) + self.network_settings = kwargs.get('network_settings', None) class ClusterIdentity(Model): @@ -1399,6 +1407,32 @@ def __init__(self, **kwargs): self.localized_value = kwargs.get('localized_value', None) +class NetworkSettings(Model): + """The network settings. + + :param public_network_access: Specifies whether public network access is + enabled for inbound and outbound, or outbound only. Possible values + include: 'InboundAndOutbound', 'OutboundOnly' + :type public_network_access: str or + ~azure.mgmt.hdinsight.models.PublicNetworkAccess + :param outbound_only_public_network_access_type: The mechanism through + which the cluster will have outbound access to the public network. + Possible values include: 'PublicLoadBalancer', 'UDR' + :type outbound_only_public_network_access_type: str or + ~azure.mgmt.hdinsight.models.OutboundOnlyPublicNetworkAccessType + """ + + _attribute_map = { + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'outbound_only_public_network_access_type': {'key': 'outboundOnlyPublicNetworkAccessType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkSettings, self).__init__(**kwargs) + self.public_network_access = kwargs.get('public_network_access', None) + self.outbound_only_public_network_access_type = kwargs.get('outbound_only_public_network_access_type', None) + + class Operation(Model): """The HDInsight REST API operation. diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py index 26a331f4ba50..071e05022297 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py @@ -659,6 +659,8 @@ class ClusterCreateProperties(Model): ~azure.mgmt.hdinsight.models.DiskEncryptionProperties :param min_supported_tls_version: The minimal supported tls version. :type min_supported_tls_version: str + :param network_settings: The network settings. + :type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings """ _attribute_map = { @@ -672,9 +674,10 @@ class ClusterCreateProperties(Model): 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, 'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'}, + 'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'}, } - def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluster_definition=None, kafka_rest_properties=None, security_profile=None, compute_profile=None, storage_profile=None, disk_encryption_properties=None, min_supported_tls_version: str=None, **kwargs) -> None: + def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluster_definition=None, kafka_rest_properties=None, security_profile=None, compute_profile=None, storage_profile=None, disk_encryption_properties=None, min_supported_tls_version: str=None, network_settings=None, **kwargs) -> None: super(ClusterCreateProperties, self).__init__(**kwargs) self.cluster_version = cluster_version self.os_type = os_type @@ -686,6 +689,7 @@ def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluste self.storage_profile = storage_profile self.disk_encryption_properties = disk_encryption_properties self.min_supported_tls_version = min_supported_tls_version + self.network_settings = network_settings class ClusterDefinition(Model): @@ -786,6 +790,8 @@ class ClusterGetProperties(Model): ~azure.mgmt.hdinsight.models.DiskEncryptionProperties :param min_supported_tls_version: The minimal supported tls version. :type min_supported_tls_version: str + :param network_settings: The network settings. + :type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings """ _validation = { @@ -808,9 +814,10 @@ class ClusterGetProperties(Model): 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, 'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'}, + 'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'}, } - def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=None, tier=None, kafka_rest_properties=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, min_supported_tls_version: str=None, **kwargs) -> None: + def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=None, tier=None, kafka_rest_properties=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, min_supported_tls_version: str=None, network_settings=None, **kwargs) -> None: super(ClusterGetProperties, self).__init__(**kwargs) self.cluster_version = cluster_version self.os_type = os_type @@ -827,6 +834,7 @@ def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=Non self.connectivity_endpoints = connectivity_endpoints self.disk_encryption_properties = disk_encryption_properties self.min_supported_tls_version = min_supported_tls_version + self.network_settings = network_settings class ClusterIdentity(Model): @@ -1399,6 +1407,32 @@ def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> N self.localized_value = localized_value +class NetworkSettings(Model): + """The network settings. + + :param public_network_access: Specifies whether public network access is + enabled for inbound and outbound, or outbound only. Possible values + include: 'InboundAndOutbound', 'OutboundOnly' + :type public_network_access: str or + ~azure.mgmt.hdinsight.models.PublicNetworkAccess + :param outbound_only_public_network_access_type: The mechanism through + which the cluster will have outbound access to the public network. + Possible values include: 'PublicLoadBalancer', 'UDR' + :type outbound_only_public_network_access_type: str or + ~azure.mgmt.hdinsight.models.OutboundOnlyPublicNetworkAccessType + """ + + _attribute_map = { + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'outbound_only_public_network_access_type': {'key': 'outboundOnlyPublicNetworkAccessType', 'type': 'str'}, + } + + def __init__(self, *, public_network_access=None, outbound_only_public_network_access_type=None, **kwargs) -> None: + super(NetworkSettings, self).__init__(**kwargs) + self.public_network_access = public_network_access + self.outbound_only_public_network_access_type = outbound_only_public_network_access_type + + class Operation(Model): """The HDInsight REST API operation. diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py index 3729c927f0aa..4cc9573effe2 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.5.0" +VERSION = "1.5.1"