Skip to content

Commit

Permalink
[AutoPR] hdinsight/resource-manager (#8983)
Browse files Browse the repository at this point in the history
* Generated from 3f848eb144ae9cb92978e2f64ce0bac6e3eb6a70 (#8858)

Fix syntax error in example

* history and version
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Dec 7, 2019
1 parent a2da75f commit 94d6acf
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 5 deletions.
8 changes: 8 additions & 0 deletions sdk/hdinsight/azure-mgmt-hdinsight/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
Release History
===============

1.3.0 (2019-12-07)
++++++++++++++++++

**Features**

- Model ClusterGetProperties has a new parameter kafka_rest_properties
- Model ClusterCreateProperties has a new parameter kafka_rest_properties

1.2.0 (2019-08-06)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from ._models_py3 import BillingResources
from ._models_py3 import BillingResponseListResult
from ._models_py3 import CapabilitiesResult
from ._models_py3 import ClientGroupInfo
from ._models_py3 import Cluster
from ._models_py3 import ClusterConfigurations
from ._models_py3 import ClusterCreateParametersExtended
Expand All @@ -49,6 +50,7 @@
from ._models_py3 import Extension
from ._models_py3 import GatewaySettings
from ._models_py3 import HardwareProfile
from ._models_py3 import KafkaRestProperties
from ._models_py3 import LinuxOperatingSystemProfile
from ._models_py3 import LocalizedName
from ._models_py3 import Operation
Expand Down Expand Up @@ -96,6 +98,7 @@
from ._models import BillingResources
from ._models import BillingResponseListResult
from ._models import CapabilitiesResult
from ._models import ClientGroupInfo
from ._models import Cluster
from ._models import ClusterConfigurations
from ._models import ClusterCreateParametersExtended
Expand All @@ -122,6 +125,7 @@
from ._models import Extension
from ._models import GatewaySettings
from ._models import HardwareProfile
from ._models import KafkaRestProperties
from ._models import LinuxOperatingSystemProfile
from ._models import LocalizedName
from ._models import Operation
Expand Down Expand Up @@ -185,6 +189,7 @@
'BillingResources',
'BillingResponseListResult',
'CapabilitiesResult',
'ClientGroupInfo',
'Cluster',
'ClusterConfigurations',
'ClusterCreateParametersExtended',
Expand All @@ -211,6 +216,7 @@
'Extension',
'GatewaySettings',
'HardwareProfile',
'KafkaRestProperties',
'LinuxOperatingSystemProfile',
'LocalizedName',
'Operation',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,26 @@ def __init__(self, **kwargs):
self.quota = kwargs.get('quota', None)


class ClientGroupInfo(Model):
"""The information of AAD security group.
:param group_name: The AAD security group name.
:type group_name: str
:param group_id: The AAD security group id.
:type group_id: str
"""

_attribute_map = {
'group_name': {'key': 'groupName', 'type': 'str'},
'group_id': {'key': 'groupId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ClientGroupInfo, self).__init__(**kwargs)
self.group_name = kwargs.get('group_name', None)
self.group_id = kwargs.get('group_id', None)


class CloudError(Model):
"""CloudError.
"""
Expand Down Expand Up @@ -625,6 +645,9 @@ class ClusterCreateProperties(Model):
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
:param cluster_definition: The cluster definition.
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
:param kafka_rest_properties: The cluster kafka rest proxy configuration.
:type kafka_rest_properties:
~azure.mgmt.hdinsight.models.KafkaRestProperties
:param security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
Expand All @@ -641,6 +664,7 @@ class ClusterCreateProperties(Model):
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'},
Expand All @@ -653,6 +677,7 @@ def __init__(self, **kwargs):
self.os_type = kwargs.get('os_type', None)
self.tier = kwargs.get('tier', 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)
self.compute_profile = kwargs.get('compute_profile', None)
self.storage_profile = kwargs.get('storage_profile', None)
Expand Down Expand Up @@ -729,6 +754,9 @@ class ClusterGetProperties(Model):
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
: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.
:type kafka_rest_properties:
~azure.mgmt.hdinsight.models.KafkaRestProperties
:param security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
Expand Down Expand Up @@ -763,6 +791,7 @@ class ClusterGetProperties(Model):
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'},
Expand All @@ -780,6 +809,7 @@ def __init__(self, **kwargs):
self.os_type = kwargs.get('os_type', None)
self.tier = kwargs.get('tier', 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)
self.compute_profile = kwargs.get('compute_profile', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
Expand Down Expand Up @@ -1284,6 +1314,23 @@ def __init__(self, **kwargs):
self.vm_size = kwargs.get('vm_size', None)


class KafkaRestProperties(Model):
"""The kafka rest proxy configuration which contains AAD security group
information.
:param client_group_info: The information of AAD security group.
:type client_group_info: ~azure.mgmt.hdinsight.models.ClientGroupInfo
"""

_attribute_map = {
'client_group_info': {'key': 'clientGroupInfo', 'type': 'ClientGroupInfo'},
}

def __init__(self, **kwargs):
super(KafkaRestProperties, self).__init__(**kwargs)
self.client_group_info = kwargs.get('client_group_info', None)


class LinuxOperatingSystemProfile(Model):
"""The ssh username, password, and ssh public key.
Expand Down Expand Up @@ -1855,7 +1902,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 type Gen 2.
Lake Storage Gen 2.
:type file_system: str
:param key: The storage account access key.
:type key: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,26 @@ def __init__(self, *, versions=None, regions=None, vm_sizes=None, vm_size_filter
self.quota = quota


class ClientGroupInfo(Model):
"""The information of AAD security group.
:param group_name: The AAD security group name.
:type group_name: str
:param group_id: The AAD security group id.
:type group_id: str
"""

_attribute_map = {
'group_name': {'key': 'groupName', 'type': 'str'},
'group_id': {'key': 'groupId', 'type': 'str'},
}

def __init__(self, *, group_name: str=None, group_id: str=None, **kwargs) -> None:
super(ClientGroupInfo, self).__init__(**kwargs)
self.group_name = group_name
self.group_id = group_id


class CloudError(Model):
"""CloudError.
"""
Expand Down Expand Up @@ -625,6 +645,9 @@ class ClusterCreateProperties(Model):
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
:param cluster_definition: The cluster definition.
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
:param kafka_rest_properties: The cluster kafka rest proxy configuration.
:type kafka_rest_properties:
~azure.mgmt.hdinsight.models.KafkaRestProperties
:param security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
Expand All @@ -641,18 +664,20 @@ class ClusterCreateProperties(Model):
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
'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, disk_encryption_properties=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, **kwargs) -> None:
super(ClusterCreateProperties, self).__init__(**kwargs)
self.cluster_version = cluster_version
self.os_type = os_type
self.tier = tier
self.cluster_definition = cluster_definition
self.kafka_rest_properties = kafka_rest_properties
self.security_profile = security_profile
self.compute_profile = compute_profile
self.storage_profile = storage_profile
Expand Down Expand Up @@ -729,6 +754,9 @@ class ClusterGetProperties(Model):
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
: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.
:type kafka_rest_properties:
~azure.mgmt.hdinsight.models.KafkaRestProperties
:param security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
Expand Down Expand Up @@ -763,6 +791,7 @@ class ClusterGetProperties(Model):
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'kafka_rest_properties': {'key': 'kafkaRestProperties', 'type': 'KafkaRestProperties'},
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'},
Expand All @@ -774,12 +803,13 @@ class ClusterGetProperties(Model):
'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, disk_encryption_properties=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, **kwargs) -> None:
super(ClusterGetProperties, self).__init__(**kwargs)
self.cluster_version = cluster_version
self.os_type = os_type
self.tier = tier
self.cluster_definition = cluster_definition
self.kafka_rest_properties = kafka_rest_properties
self.security_profile = security_profile
self.compute_profile = compute_profile
self.provisioning_state = provisioning_state
Expand Down Expand Up @@ -1284,6 +1314,23 @@ def __init__(self, *, vm_size: str=None, **kwargs) -> None:
self.vm_size = vm_size


class KafkaRestProperties(Model):
"""The kafka rest proxy configuration which contains AAD security group
information.
:param client_group_info: The information of AAD security group.
:type client_group_info: ~azure.mgmt.hdinsight.models.ClientGroupInfo
"""

_attribute_map = {
'client_group_info': {'key': 'clientGroupInfo', 'type': 'ClientGroupInfo'},
}

def __init__(self, *, client_group_info=None, **kwargs) -> None:
super(KafkaRestProperties, self).__init__(**kwargs)
self.client_group_info = client_group_info


class LinuxOperatingSystemProfile(Model):
"""The ssh username, password, and ssh public key.
Expand Down Expand Up @@ -1855,7 +1902,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 type Gen 2.
Lake Storage Gen 2.
:type file_system: str
:param key: The storage account access key.
:type key: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "1.2.0"
VERSION = "1.3.0"

0 comments on commit 94d6acf

Please sign in to comment.