Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Release History

## 2.0.0 (2020-10-20)

**Features**

- Model ClusterGetProperties has a new parameter network_properties
- Model ClusterGetProperties has a new parameter cluster_id
- Model ClusterCreateProperties has a new parameter network_properties

**Breaking changes**

- Model ClusterGetProperties no longer has parameter network_settings
- Model ClusterCreateProperties no longer has parameter network_settings

## 1.7.0 (2020-08-13)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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 NetworkProperties
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationResource
Expand Down Expand Up @@ -135,7 +135,7 @@
from ._models import KafkaRestProperties
from ._models import LinuxOperatingSystemProfile
from ._models import LocalizedName
from ._models import NetworkSettings
from ._models import NetworkProperties
from ._models import Operation
from ._models import OperationDisplay
from ._models import OperationResource
Expand Down Expand Up @@ -174,8 +174,8 @@
from ._hd_insight_management_client_enums import (
DirectoryType,
DaysOfWeek,
PublicNetworkAccess,
OutboundOnlyPublicNetworkAccessType,
ResourceProviderConnection,
PrivateLink,
OSType,
Tier,
JsonWebKeyEncryptionAlgorithm,
Expand Down Expand Up @@ -232,7 +232,7 @@
'KafkaRestProperties',
'LinuxOperatingSystemProfile',
'LocalizedName',
'NetworkSettings',
'NetworkProperties',
'Operation',
'OperationDisplay',
'OperationResource',
Expand Down Expand Up @@ -270,8 +270,8 @@
'OperationPaged',
'DirectoryType',
'DaysOfWeek',
'PublicNetworkAccess',
'OutboundOnlyPublicNetworkAccessType',
'ResourceProviderConnection',
'PrivateLink',
'OSType',
'Tier',
'JsonWebKeyEncryptionAlgorithm',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ class DaysOfWeek(str, Enum):
sunday = "Sunday"


class PublicNetworkAccess(str, Enum):
class ResourceProviderConnection(str, Enum):

inbound_and_outbound = "InboundAndOutbound"
outbound_only = "OutboundOnly"
inbound = "Inbound"
outbound = "Outbound"


class OutboundOnlyPublicNetworkAccessType(str, Enum):
class PrivateLink(str, Enum):

public_load_balancer = "PublicLoadBalancer"
udr = "UDR"
disabled = "Disabled"
enabled = "Enabled"


class OSType(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ class ClusterCreateProperties(Model):
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
: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
:param network_properties: The network properties.
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
"""

_attribute_map = {
Expand All @@ -695,7 +695,7 @@ class ClusterCreateProperties(Model):
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
}

def __init__(self, **kwargs):
Expand All @@ -711,7 +711,7 @@ def __init__(self, **kwargs):
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)
self.encryption_in_transit_properties = kwargs.get('encryption_in_transit_properties', None)
self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None)
self.network_settings = kwargs.get('network_settings', None)
self.network_properties = kwargs.get('network_properties', None)


class ClusterDefinition(Model):
Expand Down Expand Up @@ -782,6 +782,8 @@ class ClusterGetProperties(Model):
:param tier: The cluster tier. Possible values include: 'Standard',
'Premium'
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
:param cluster_id: The cluster id.
:type cluster_id: str
:param cluster_definition: Required. The cluster definition.
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
:param kafka_rest_properties: The cluster kafka rest proxy configuration.
Expand Down Expand Up @@ -816,8 +818,8 @@ class ClusterGetProperties(Model):
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
: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
:param network_properties: The network properties.
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
"""

_validation = {
Expand All @@ -828,6 +830,7 @@ class ClusterGetProperties(Model):
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_id': {'key': 'clusterId', 'type': 'str'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
Expand All @@ -841,14 +844,15 @@ class ClusterGetProperties(Model):
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
}

def __init__(self, **kwargs):
super(ClusterGetProperties, self).__init__(**kwargs)
self.cluster_version = kwargs.get('cluster_version', None)
self.os_type = kwargs.get('os_type', None)
self.tier = kwargs.get('tier', None)
self.cluster_id = kwargs.get('cluster_id', None)
self.cluster_definition = kwargs.get('cluster_definition', None)
self.kafka_rest_properties = kwargs.get('kafka_rest_properties', None)
self.security_profile = kwargs.get('security_profile', None)
Expand All @@ -862,7 +866,7 @@ def __init__(self, **kwargs):
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)
self.encryption_in_transit_properties = kwargs.get('encryption_in_transit_properties', None)
self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None)
self.network_settings = kwargs.get('network_settings', None)
self.network_properties = kwargs.get('network_properties', None)


class ClusterIdentity(Model):
Expand Down Expand Up @@ -1457,30 +1461,27 @@ def __init__(self, **kwargs):
self.localized_value = kwargs.get('localized_value', None)


class NetworkSettings(Model):
"""The network settings.
class NetworkProperties(Model):
"""The network properties.

: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
:param resource_provider_connection: The direction for the resource
provider connection. Possible values include: 'Inbound', 'Outbound'
:type resource_provider_connection: str or
~azure.mgmt.hdinsight.models.ResourceProviderConnection
:param private_link: Indicates whether or not private link is enabled.
Possible values include: 'Disabled', 'Enabled'
:type private_link: str or ~azure.mgmt.hdinsight.models.PrivateLink
"""

_attribute_map = {
'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'},
'outbound_only_public_network_access_type': {'key': 'outboundOnlyPublicNetworkAccessType', 'type': 'str'},
'resource_provider_connection': {'key': 'resourceProviderConnection', 'type': 'str'},
'private_link': {'key': 'privateLink', '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)
super(NetworkProperties, self).__init__(**kwargs)
self.resource_provider_connection = kwargs.get('resource_provider_connection', None)
self.private_link = kwargs.get('private_link', None)


class Operation(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ class ClusterCreateProperties(Model):
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
: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
:param network_properties: The network properties.
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
"""

_attribute_map = {
Expand All @@ -695,10 +695,10 @@ class ClusterCreateProperties(Model):
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
}

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, encryption_in_transit_properties=None, min_supported_tls_version: str=None, network_settings=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, encryption_in_transit_properties=None, min_supported_tls_version: str=None, network_properties=None, **kwargs) -> None:
super(ClusterCreateProperties, self).__init__(**kwargs)
self.cluster_version = cluster_version
self.os_type = os_type
Expand All @@ -711,7 +711,7 @@ def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluste
self.disk_encryption_properties = disk_encryption_properties
self.encryption_in_transit_properties = encryption_in_transit_properties
self.min_supported_tls_version = min_supported_tls_version
self.network_settings = network_settings
self.network_properties = network_properties


class ClusterDefinition(Model):
Expand Down Expand Up @@ -782,6 +782,8 @@ class ClusterGetProperties(Model):
:param tier: The cluster tier. Possible values include: 'Standard',
'Premium'
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
:param cluster_id: The cluster id.
:type cluster_id: str
:param cluster_definition: Required. The cluster definition.
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
:param kafka_rest_properties: The cluster kafka rest proxy configuration.
Expand Down Expand Up @@ -816,8 +818,8 @@ class ClusterGetProperties(Model):
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
: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
:param network_properties: The network properties.
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
"""

_validation = {
Expand All @@ -828,6 +830,7 @@ class ClusterGetProperties(Model):
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_id': {'key': 'clusterId', 'type': 'str'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
Expand All @@ -841,14 +844,15 @@ class ClusterGetProperties(Model):
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
}

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, encryption_in_transit_properties=None, min_supported_tls_version: str=None, network_settings=None, **kwargs) -> None:
def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=None, tier=None, cluster_id: str=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, encryption_in_transit_properties=None, min_supported_tls_version: str=None, network_properties=None, **kwargs) -> None:
super(ClusterGetProperties, self).__init__(**kwargs)
self.cluster_version = cluster_version
self.os_type = os_type
self.tier = tier
self.cluster_id = cluster_id
self.cluster_definition = cluster_definition
self.kafka_rest_properties = kafka_rest_properties
self.security_profile = security_profile
Expand All @@ -862,7 +866,7 @@ def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=Non
self.disk_encryption_properties = disk_encryption_properties
self.encryption_in_transit_properties = encryption_in_transit_properties
self.min_supported_tls_version = min_supported_tls_version
self.network_settings = network_settings
self.network_properties = network_properties


class ClusterIdentity(Model):
Expand Down Expand Up @@ -1457,30 +1461,27 @@ def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> N
self.localized_value = localized_value


class NetworkSettings(Model):
"""The network settings.
class NetworkProperties(Model):
"""The network properties.

: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
:param resource_provider_connection: The direction for the resource
provider connection. Possible values include: 'Inbound', 'Outbound'
:type resource_provider_connection: str or
~azure.mgmt.hdinsight.models.ResourceProviderConnection
:param private_link: Indicates whether or not private link is enabled.
Possible values include: 'Disabled', 'Enabled'
:type private_link: str or ~azure.mgmt.hdinsight.models.PrivateLink
"""

_attribute_map = {
'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'},
'outbound_only_public_network_access_type': {'key': 'outboundOnlyPublicNetworkAccessType', 'type': 'str'},
'resource_provider_connection': {'key': 'resourceProviderConnection', 'type': 'str'},
'private_link': {'key': 'privateLink', '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
def __init__(self, *, resource_provider_connection=None, private_link=None, **kwargs) -> None:
super(NetworkProperties, self).__init__(**kwargs)
self.resource_provider_connection = resource_provider_connection
self.private_link = private_link


class Operation(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "1.7.0"
VERSION = "2.0.0"

2 changes: 1 addition & 1 deletion sdk/hdinsight/azure-mgmt-hdinsight/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py')
with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
Expand Down
Loading