Skip to content

Commit c7ed469

Browse files
changlong-liuSDK Automation
andauthored
Sdk automation/azure mgmt hdinsight (Azure#12636)
* Generated from 4cf3687caa714d84113febd6c157cc2e91dbf8f0 Add autoscale api to allow customer to update autoscale configuration * version 1.6.0 * run test Co-authored-by: SDK Automation <[email protected]>
1 parent f64a10b commit c7ed469

18 files changed

+4343
-823
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
# Release History
22

3+
## 1.6.0 (2020-07-17)
4+
5+
**Features**
6+
7+
- Added operation group VirtualMachinesOperations
8+
39
## 1.5.1 (2020-06-11)
410

511
**Bugfixes**
6-
- Fix the List Response
712

13+
- Fix the List Response
814

915
## 1.5.0 (2020-05-29)
1016

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ._models_py3 import ApplicationProperties
1717
from ._models_py3 import Autoscale
1818
from ._models_py3 import AutoscaleCapacity
19+
from ._models_py3 import AutoscaleConfigurationUpdateParameter
1920
from ._models_py3 import AutoscaleRecurrence
2021
from ._models_py3 import AutoscaleSchedule
2122
from ._models_py3 import AutoscaleTimeAndCapacity
@@ -44,6 +45,7 @@
4445
from ._models_py3 import DataDisksGroups
4546
from ._models_py3 import DiskBillingMeters
4647
from ._models_py3 import DiskEncryptionProperties
48+
from ._models_py3 import EncryptionInTransitProperties
4749
from ._models_py3 import ErrorResponse, ErrorResponseException
4850
from ._models_py3 import Errors
4951
from ._models_py3 import ExecuteScriptActionParameters
@@ -54,6 +56,7 @@
5456
from ._models_py3 import KafkaRestProperties
5557
from ._models_py3 import LinuxOperatingSystemProfile
5658
from ._models_py3 import LocalizedName
59+
from ._models_py3 import NetworkSettings
5760
from ._models_py3 import Operation
5861
from ._models_py3 import OperationDisplay
5962
from ._models_py3 import OperationResource
@@ -92,6 +95,7 @@
9295
from ._models import ApplicationProperties
9396
from ._models import Autoscale
9497
from ._models import AutoscaleCapacity
98+
from ._models import AutoscaleConfigurationUpdateParameter
9599
from ._models import AutoscaleRecurrence
96100
from ._models import AutoscaleSchedule
97101
from ._models import AutoscaleTimeAndCapacity
@@ -120,6 +124,7 @@
120124
from ._models import DataDisksGroups
121125
from ._models import DiskBillingMeters
122126
from ._models import DiskEncryptionProperties
127+
from ._models import EncryptionInTransitProperties
123128
from ._models import ErrorResponse, ErrorResponseException
124129
from ._models import Errors
125130
from ._models import ExecuteScriptActionParameters
@@ -130,6 +135,7 @@
130135
from ._models import KafkaRestProperties
131136
from ._models import LinuxOperatingSystemProfile
132137
from ._models import LocalizedName
138+
from ._models import NetworkSettings
133139
from ._models import Operation
134140
from ._models import OperationDisplay
135141
from ._models import OperationResource
@@ -168,6 +174,8 @@
168174
from ._hd_insight_management_client_enums import (
169175
DirectoryType,
170176
DaysOfWeek,
177+
PublicNetworkAccess,
178+
OutboundOnlyPublicNetworkAccessType,
171179
OSType,
172180
Tier,
173181
JsonWebKeyEncryptionAlgorithm,
@@ -184,6 +192,7 @@
184192
'ApplicationProperties',
185193
'Autoscale',
186194
'AutoscaleCapacity',
195+
'AutoscaleConfigurationUpdateParameter',
187196
'AutoscaleRecurrence',
188197
'AutoscaleSchedule',
189198
'AutoscaleTimeAndCapacity',
@@ -212,6 +221,7 @@
212221
'DataDisksGroups',
213222
'DiskBillingMeters',
214223
'DiskEncryptionProperties',
224+
'EncryptionInTransitProperties',
215225
'ErrorResponse', 'ErrorResponseException',
216226
'Errors',
217227
'ExecuteScriptActionParameters',
@@ -222,6 +232,7 @@
222232
'KafkaRestProperties',
223233
'LinuxOperatingSystemProfile',
224234
'LocalizedName',
235+
'NetworkSettings',
225236
'Operation',
226237
'OperationDisplay',
227238
'OperationResource',
@@ -259,6 +270,8 @@
259270
'OperationPaged',
260271
'DirectoryType',
261272
'DaysOfWeek',
273+
'PublicNetworkAccess',
274+
'OutboundOnlyPublicNetworkAccessType',
262275
'OSType',
263276
'Tier',
264277
'JsonWebKeyEncryptionAlgorithm',

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

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

3030

31+
class PublicNetworkAccess(str, Enum):
32+
33+
inbound_and_outbound = "InboundAndOutbound"
34+
outbound_only = "OutboundOnly"
35+
36+
37+
class OutboundOnlyPublicNetworkAccessType(str, Enum):
38+
39+
public_load_balancer = "PublicLoadBalancer"
40+
udr = "UDR"
41+
42+
3143
class OSType(str, Enum):
3244

3345
windows = "Windows"

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

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,22 @@ def __init__(self, **kwargs):
290290
self.max_instance_count = kwargs.get('max_instance_count', None)
291291

292292

293+
class AutoscaleConfigurationUpdateParameter(Model):
294+
"""The autoscale configuration update parameter.
295+
296+
:param autoscale: The autoscale configuration.
297+
:type autoscale: ~azure.mgmt.hdinsight.models.Autoscale
298+
"""
299+
300+
_attribute_map = {
301+
'autoscale': {'key': 'autoscale', 'type': 'Autoscale'},
302+
}
303+
304+
def __init__(self, **kwargs):
305+
super(AutoscaleConfigurationUpdateParameter, self).__init__(**kwargs)
306+
self.autoscale = kwargs.get('autoscale', None)
307+
308+
293309
class AutoscaleRecurrence(Model):
294310
"""Schedule-based autoscale request parameters.
295311
@@ -657,8 +673,14 @@ class ClusterCreateProperties(Model):
657673
:param disk_encryption_properties: The disk encryption properties.
658674
:type disk_encryption_properties:
659675
~azure.mgmt.hdinsight.models.DiskEncryptionProperties
676+
:param encryption_in_transit_properties: The encryption-in-transit
677+
properties.
678+
:type encryption_in_transit_properties:
679+
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
660680
:param min_supported_tls_version: The minimal supported tls version.
661681
:type min_supported_tls_version: str
682+
:param network_settings: The network settings.
683+
:type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings
662684
"""
663685

664686
_attribute_map = {
@@ -671,7 +693,9 @@ class ClusterCreateProperties(Model):
671693
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
672694
'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'},
673695
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
696+
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
674697
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
698+
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
675699
}
676700

677701
def __init__(self, **kwargs):
@@ -685,7 +709,9 @@ def __init__(self, **kwargs):
685709
self.compute_profile = kwargs.get('compute_profile', None)
686710
self.storage_profile = kwargs.get('storage_profile', None)
687711
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)
712+
self.encryption_in_transit_properties = kwargs.get('encryption_in_transit_properties', None)
688713
self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None)
714+
self.network_settings = kwargs.get('network_settings', None)
689715

690716

691717
class ClusterDefinition(Model):
@@ -784,8 +810,14 @@ class ClusterGetProperties(Model):
784810
:param disk_encryption_properties: The disk encryption properties.
785811
:type disk_encryption_properties:
786812
~azure.mgmt.hdinsight.models.DiskEncryptionProperties
813+
:param encryption_in_transit_properties: The encryption-in-transit
814+
properties.
815+
:type encryption_in_transit_properties:
816+
~azure.mgmt.hdinsight.models.EncryptionInTransitProperties
787817
:param min_supported_tls_version: The minimal supported tls version.
788818
:type min_supported_tls_version: str
819+
:param network_settings: The network settings.
820+
:type network_settings: ~azure.mgmt.hdinsight.models.NetworkSettings
789821
"""
790822

791823
_validation = {
@@ -807,7 +839,9 @@ class ClusterGetProperties(Model):
807839
'errors': {'key': 'errors', 'type': '[Errors]'},
808840
'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'},
809841
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
842+
'encryption_in_transit_properties': {'key': 'encryptionInTransitProperties', 'type': 'EncryptionInTransitProperties'},
810843
'min_supported_tls_version': {'key': 'minSupportedTlsVersion', 'type': 'str'},
844+
'network_settings': {'key': 'networkSettings', 'type': 'NetworkSettings'},
811845
}
812846

813847
def __init__(self, **kwargs):
@@ -826,7 +860,9 @@ def __init__(self, **kwargs):
826860
self.errors = kwargs.get('errors', None)
827861
self.connectivity_endpoints = kwargs.get('connectivity_endpoints', None)
828862
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)
863+
self.encryption_in_transit_properties = kwargs.get('encryption_in_transit_properties', None)
829864
self.min_supported_tls_version = kwargs.get('min_supported_tls_version', None)
865+
self.network_settings = kwargs.get('network_settings', None)
830866

831867

832868
class ClusterIdentity(Model):
@@ -1171,6 +1207,23 @@ def __init__(self, **kwargs):
11711207
self.msi_resource_id = kwargs.get('msi_resource_id', None)
11721208

11731209

1210+
class EncryptionInTransitProperties(Model):
1211+
"""The encryption-in-transit properties.
1212+
1213+
:param is_encryption_in_transit_enabled: Indicates whether or not inter
1214+
cluster node communication is encrypted in transit. Default value: False .
1215+
:type is_encryption_in_transit_enabled: bool
1216+
"""
1217+
1218+
_attribute_map = {
1219+
'is_encryption_in_transit_enabled': {'key': 'isEncryptionInTransitEnabled', 'type': 'bool'},
1220+
}
1221+
1222+
def __init__(self, **kwargs):
1223+
super(EncryptionInTransitProperties, self).__init__(**kwargs)
1224+
self.is_encryption_in_transit_enabled = kwargs.get('is_encryption_in_transit_enabled', False)
1225+
1226+
11741227
class ErrorResponse(Model):
11751228
"""Describes the format of Error response.
11761229
@@ -1399,6 +1452,32 @@ def __init__(self, **kwargs):
13991452
self.localized_value = kwargs.get('localized_value', None)
14001453

14011454

1455+
class NetworkSettings(Model):
1456+
"""The network settings.
1457+
1458+
:param public_network_access: Specifies whether public network access is
1459+
enabled for inbound and outbound, or outbound only. Possible values
1460+
include: 'InboundAndOutbound', 'OutboundOnly'
1461+
:type public_network_access: str or
1462+
~azure.mgmt.hdinsight.models.PublicNetworkAccess
1463+
:param outbound_only_public_network_access_type: The mechanism through
1464+
which the cluster will have outbound access to the public network.
1465+
Possible values include: 'PublicLoadBalancer', 'UDR'
1466+
:type outbound_only_public_network_access_type: str or
1467+
~azure.mgmt.hdinsight.models.OutboundOnlyPublicNetworkAccessType
1468+
"""
1469+
1470+
_attribute_map = {
1471+
'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'},
1472+
'outbound_only_public_network_access_type': {'key': 'outboundOnlyPublicNetworkAccessType', 'type': 'str'},
1473+
}
1474+
1475+
def __init__(self, **kwargs):
1476+
super(NetworkSettings, self).__init__(**kwargs)
1477+
self.public_network_access = kwargs.get('public_network_access', None)
1478+
self.outbound_only_public_network_access_type = kwargs.get('outbound_only_public_network_access_type', None)
1479+
1480+
14021481
class Operation(Model):
14031482
"""The HDInsight REST API operation.
14041483

0 commit comments

Comments
 (0)