Skip to content

Commit d7e64e1

Browse files
msyycSDK Automation
andauthored
[T1] hdinsight (Azure#14679)
* Generated from 3ee78c222827a659a7cde8bee150f32c53cd1327 * version,test,CHANGELOG * to trigger pipeline again Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
1 parent 51c048e commit d7e64e1

24 files changed

+1935
-9138
lines changed

sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Release History
22

3+
## 2.0.0 (2020-10-20)
4+
5+
**Features**
6+
7+
- Model ClusterGetProperties has a new parameter network_properties
8+
- Model ClusterGetProperties has a new parameter cluster_id
9+
- Model ClusterCreateProperties has a new parameter network_properties
10+
11+
**Breaking changes**
12+
13+
- Model ClusterGetProperties no longer has parameter network_settings
14+
- Model ClusterCreateProperties no longer has parameter network_settings
15+
316
## 1.7.0 (2020-08-13)
417

518
**Features**

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
from ._models_py3 import KafkaRestProperties
5757
from ._models_py3 import LinuxOperatingSystemProfile
5858
from ._models_py3 import LocalizedName
59-
from ._models_py3 import NetworkSettings
59+
from ._models_py3 import NetworkProperties
6060
from ._models_py3 import Operation
6161
from ._models_py3 import OperationDisplay
6262
from ._models_py3 import OperationResource
@@ -135,7 +135,7 @@
135135
from ._models import KafkaRestProperties
136136
from ._models import LinuxOperatingSystemProfile
137137
from ._models import LocalizedName
138-
from ._models import NetworkSettings
138+
from ._models import NetworkProperties
139139
from ._models import Operation
140140
from ._models import OperationDisplay
141141
from ._models import OperationResource
@@ -174,8 +174,8 @@
174174
from ._hd_insight_management_client_enums import (
175175
DirectoryType,
176176
DaysOfWeek,
177-
PublicNetworkAccess,
178-
OutboundOnlyPublicNetworkAccessType,
177+
ResourceProviderConnection,
178+
PrivateLink,
179179
OSType,
180180
Tier,
181181
JsonWebKeyEncryptionAlgorithm,
@@ -232,7 +232,7 @@
232232
'KafkaRestProperties',
233233
'LinuxOperatingSystemProfile',
234234
'LocalizedName',
235-
'NetworkSettings',
235+
'NetworkProperties',
236236
'Operation',
237237
'OperationDisplay',
238238
'OperationResource',
@@ -270,8 +270,8 @@
270270
'OperationPaged',
271271
'DirectoryType',
272272
'DaysOfWeek',
273-
'PublicNetworkAccess',
274-
'OutboundOnlyPublicNetworkAccessType',
273+
'ResourceProviderConnection',
274+
'PrivateLink',
275275
'OSType',
276276
'Tier',
277277
'JsonWebKeyEncryptionAlgorithm',

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ class DaysOfWeek(str, Enum):
2828
sunday = "Sunday"
2929

3030

31-
class PublicNetworkAccess(str, Enum):
31+
class ResourceProviderConnection(str, Enum):
3232

33-
inbound_and_outbound = "InboundAndOutbound"
34-
outbound_only = "OutboundOnly"
33+
inbound = "Inbound"
34+
outbound = "Outbound"
3535

3636

37-
class OutboundOnlyPublicNetworkAccessType(str, Enum):
37+
class PrivateLink(str, Enum):
3838

39-
public_load_balancer = "PublicLoadBalancer"
40-
udr = "UDR"
39+
disabled = "Disabled"
40+
enabled = "Enabled"
4141

4242

4343
class OSType(str, Enum):

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ class ClusterCreateProperties(Model):
679679
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
680680
:param min_supported_tls_version: The minimal supported tls version.
681681
:type min_supported_tls_version: str
682-
:param network_settings: The network settings.
683-
:type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings
682+
:param network_properties: The network properties.
683+
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
684684
"""
685685

686686
_attribute_map = {
@@ -695,7 +695,7 @@ class ClusterCreateProperties(Model):
695695
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
696696
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
697697
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
698-
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
698+
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
699699
}
700700

701701
def __init__(self, **kwargs):
@@ -711,7 +711,7 @@ def __init__(self, **kwargs):
711711
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)
712712
self.encryption_in_transit_properties = kwargs.get('encryption_in_transit_properties', None)
713713
self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None)
714-
self.network_settings = kwargs.get('network_settings', None)
714+
self.network_properties = kwargs.get('network_properties', None)
715715

716716

717717
class ClusterDefinition(Model):
@@ -782,6 +782,8 @@ class ClusterGetProperties(Model):
782782
:param tier: The cluster tier. Possible values include: 'Standard',
783783
'Premium'
784784
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
785+
:param cluster_id: The cluster id.
786+
:type cluster_id: str
785787
:param cluster_definition: Required. The cluster definition.
786788
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
787789
:param kafka_rest_properties: The cluster kafka rest proxy configuration.
@@ -816,8 +818,8 @@ class ClusterGetProperties(Model):
816818
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
817819
:param min_supported_tls_version: The minimal supported tls version.
818820
:type min_supported_tls_version: str
819-
:param network_settings: The network settings.
820-
:type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings
821+
:param network_properties: The network properties.
822+
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
821823
"""
822824

823825
_validation = {
@@ -828,6 +830,7 @@ class ClusterGetProperties(Model):
828830
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
829831
'os_type': {'key': 'osType', 'type': 'OSType'},
830832
'tier': {'key': 'tier', 'type': 'Tier'},
833+
'cluster_id': {'key': 'clusterId', 'type': 'str'},
831834
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
832835
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
833836
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
@@ -841,14 +844,15 @@ class ClusterGetProperties(Model):
841844
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
842845
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
843846
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
844-
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
847+
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
845848
}
846849

847850
def __init__(self, **kwargs):
848851
super(ClusterGetProperties, self).__init__(**kwargs)
849852
self.cluster_version = kwargs.get('cluster_version', None)
850853
self.os_type = kwargs.get('os_type', None)
851854
self.tier = kwargs.get('tier', None)
855+
self.cluster_id = kwargs.get('cluster_id', None)
852856
self.cluster_definition = kwargs.get('cluster_definition', None)
853857
self.kafka_rest_properties = kwargs.get('kafka_rest_properties', None)
854858
self.security_profile = kwargs.get('security_profile', None)
@@ -862,7 +866,7 @@ def __init__(self, **kwargs):
862866
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)
863867
self.encryption_in_transit_properties = kwargs.get('encryption_in_transit_properties', None)
864868
self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None)
865-
self.network_settings = kwargs.get('network_settings', None)
869+
self.network_properties = kwargs.get('network_properties', None)
866870

867871

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

14591463

1460-
class NetworkSettings(Model):
1461-
"""The network settings.
1464+
class NetworkProperties(Model):
1465+
"""The network properties.
14621466
1463-
:param public_network_access: Specifies whether public network access is
1464-
enabled for inbound and outbound, or outbound only. Possible values
1465-
include: 'InboundAndOutbound', 'OutboundOnly'
1466-
:type public_network_access: str or
1467-
~azure.mgmt.hdinsight.models.PublicNetworkAccess
1468-
:param outbound_only_public_network_access_type: The mechanism through
1469-
which the cluster will have outbound access to the public network.
1470-
Possible values include: 'PublicLoadBalancer', 'UDR'
1471-
:type outbound_only_public_network_access_type: str or
1472-
~azure.mgmt.hdinsight.models.OutboundOnlyPublicNetworkAccessType
1467+
:param resource_provider_connection: The direction for the resource
1468+
provider connection. Possible values include: 'Inbound', 'Outbound'
1469+
:type resource_provider_connection: str or
1470+
~azure.mgmt.hdinsight.models.ResourceProviderConnection
1471+
:param private_link: Indicates whether or not private link is enabled.
1472+
Possible values include: 'Disabled', 'Enabled'
1473+
:type private_link: str or ~azure.mgmt.hdinsight.models.PrivateLink
14731474
"""
14741475

14751476
_attribute_map = {
1476-
'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'},
1477-
'outbound_only_public_network_access_type': {'key': 'outboundOnlyPublicNetworkAccessType', 'type': 'str'},
1477+
'resource_provider_connection': {'key': 'resourceProviderConnection', 'type': 'str'},
1478+
'private_link': {'key': 'privateLink', 'type': 'str'},
14781479
}
14791480

14801481
def __init__(self, **kwargs):
1481-
super(NetworkSettings, self).__init__(**kwargs)
1482-
self.public_network_access = kwargs.get('public_network_access', None)
1483-
self.outbound_only_public_network_access_type = kwargs.get('outbound_only_public_network_access_type', None)
1482+
super(NetworkProperties, self).__init__(**kwargs)
1483+
self.resource_provider_connection = kwargs.get('resource_provider_connection', None)
1484+
self.private_link = kwargs.get('private_link', None)
14841485

14851486

14861487
class Operation(Model):

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ class ClusterCreateProperties(Model):
679679
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
680680
:param min_supported_tls_version: The minimal supported tls version.
681681
:type min_supported_tls_version: str
682-
:param network_settings: The network settings.
683-
:type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings
682+
:param network_properties: The network properties.
683+
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
684684
"""
685685

686686
_attribute_map = {
@@ -695,10 +695,10 @@ class ClusterCreateProperties(Model):
695695
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
696696
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
697697
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
698-
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
698+
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
699699
}
700700

701-
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:
701+
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:
702702
super(ClusterCreateProperties, self).__init__(**kwargs)
703703
self.cluster_version = cluster_version
704704
self.os_type = os_type
@@ -711,7 +711,7 @@ def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluste
711711
self.disk_encryption_properties = disk_encryption_properties
712712
self.encryption_in_transit_properties = encryption_in_transit_properties
713713
self.min_supported_tls_version = min_supported_tls_version
714-
self.network_settings = network_settings
714+
self.network_properties = network_properties
715715

716716

717717
class ClusterDefinition(Model):
@@ -782,6 +782,8 @@ class ClusterGetProperties(Model):
782782
:param tier: The cluster tier. Possible values include: 'Standard',
783783
'Premium'
784784
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
785+
:param cluster_id: The cluster id.
786+
:type cluster_id: str
785787
:param cluster_definition: Required. The cluster definition.
786788
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
787789
:param kafka_rest_properties: The cluster kafka rest proxy configuration.
@@ -816,8 +818,8 @@ class ClusterGetProperties(Model):
816818
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
817819
:param min_supported_tls_version: The minimal supported tls version.
818820
:type min_supported_tls_version: str
819-
:param network_settings: The network settings.
820-
:type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings
821+
:param network_properties: The network properties.
822+
:type network_properties: ~azure.mgmt.hdinsight.models.NetworkProperties
821823
"""
822824

823825
_validation = {
@@ -828,6 +830,7 @@ class ClusterGetProperties(Model):
828830
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
829831
'os_type': {'key': 'osType', 'type': 'OSType'},
830832
'tier': {'key': 'tier', 'type': 'Tier'},
833+
'cluster_id': {'key': 'clusterId', 'type': 'str'},
831834
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
832835
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
833836
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
@@ -841,14 +844,15 @@ class ClusterGetProperties(Model):
841844
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
842845
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
843846
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
844-
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
847+
'network_properties': {'key': 'networkProperties', 'type': 'NetworkProperties'},
845848
}
846849

847-
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:
850+
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:
848851
super(ClusterGetProperties, self).__init__(**kwargs)
849852
self.cluster_version = cluster_version
850853
self.os_type = os_type
851854
self.tier = tier
855+
self.cluster_id = cluster_id
852856
self.cluster_definition = cluster_definition
853857
self.kafka_rest_properties = kafka_rest_properties
854858
self.security_profile = security_profile
@@ -862,7 +866,7 @@ def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=Non
862866
self.disk_encryption_properties = disk_encryption_properties
863867
self.encryption_in_transit_properties = encryption_in_transit_properties
864868
self.min_supported_tls_version = min_supported_tls_version
865-
self.network_settings = network_settings
869+
self.network_properties = network_properties
866870

867871

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

14591463

1460-
class NetworkSettings(Model):
1461-
"""The network settings.
1464+
class NetworkProperties(Model):
1465+
"""The network properties.
14621466
1463-
:param public_network_access: Specifies whether public network access is
1464-
enabled for inbound and outbound, or outbound only. Possible values
1465-
include: 'InboundAndOutbound', 'OutboundOnly'
1466-
:type public_network_access: str or
1467-
~azure.mgmt.hdinsight.models.PublicNetworkAccess
1468-
:param outbound_only_public_network_access_type: The mechanism through
1469-
which the cluster will have outbound access to the public network.
1470-
Possible values include: 'PublicLoadBalancer', 'UDR'
1471-
:type outbound_only_public_network_access_type: str or
1472-
~azure.mgmt.hdinsight.models.OutboundOnlyPublicNetworkAccessType
1467+
:param resource_provider_connection: The direction for the resource
1468+
provider connection. Possible values include: 'Inbound', 'Outbound'
1469+
:type resource_provider_connection: str or
1470+
~azure.mgmt.hdinsight.models.ResourceProviderConnection
1471+
:param private_link: Indicates whether or not private link is enabled.
1472+
Possible values include: 'Disabled', 'Enabled'
1473+
:type private_link: str or ~azure.mgmt.hdinsight.models.PrivateLink
14731474
"""
14741475

14751476
_attribute_map = {
1476-
'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'},
1477-
'outbound_only_public_network_access_type': {'key': 'outboundOnlyPublicNetworkAccessType', 'type': 'str'},
1477+
'resource_provider_connection': {'key': 'resourceProviderConnection', 'type': 'str'},
1478+
'private_link': {'key': 'privateLink', 'type': 'str'},
14781479
}
14791480

1480-
def __init__(self, *, public_network_access=None, outbound_only_public_network_access_type=None, **kwargs) -> None:
1481-
super(NetworkSettings, self).__init__(**kwargs)
1482-
self.public_network_access = public_network_access
1483-
self.outbound_only_public_network_access_type = outbound_only_public_network_access_type
1481+
def __init__(self, *, resource_provider_connection=None, private_link=None, **kwargs) -> None:
1482+
super(NetworkProperties, self).__init__(**kwargs)
1483+
self.resource_provider_connection = resource_provider_connection
1484+
self.private_link = private_link
14841485

14851486

14861487
class Operation(Model):

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "1.7.0"
12+
VERSION = "2.0.0"
1313

sdk/hdinsight/azure-mgmt-hdinsight/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
pass
3737

3838
# Version extraction inspired from 'requests'
39-
with open(os.path.join(package_folder_path, 'version.py')
39+
with open(os.path.join(package_folder_path, 'version.py')
4040
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
4141
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
4242
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',

0 commit comments

Comments
 (0)