Skip to content

Commit

Permalink
[HDInsight] - Generate code for API version package-2018-06-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongwei Wang committed Dec 11, 2018
1 parent ec18d0b commit 1dd4980
Show file tree
Hide file tree
Showing 55 changed files with 1,375 additions and 1,182 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/azure-mgmt-datalake-store/ @ro-joowan
/azure-mgmt-datamigration/ @vchske
/azure-mgmt-eventgrid/ @kalyanaj
/azure-mgmt-hdinsight/ @wawon-msft
/azure-mgmt-hdinsight/ @idear1203
/azure-mgmt-keyvault/ @schaabs
/azure-mgmt-machinelearningcompute/ @shutchings
/azure-mgmt-recoveryservices/ @DheerendraRathor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .operations.applications_operations import ApplicationsOperations
from .operations.locations_operations import LocationsOperations
from .operations.configurations_operations import ConfigurationsOperations
from .operations.extension_operations import ExtensionOperations
from .operations.extensions_operations import ExtensionsOperations
from .operations.script_actions_operations import ScriptActionsOperations
from .operations.script_execution_history_operations import ScriptExecutionHistoryOperations
from .operations.operations import Operations
Expand Down Expand Up @@ -72,8 +72,8 @@ class HDInsightManagementClient(SDKClient):
:vartype locations: azure.mgmt.hdinsight.operations.LocationsOperations
:ivar configurations: Configurations operations
:vartype configurations: azure.mgmt.hdinsight.operations.ConfigurationsOperations
:ivar extension: Extension operations
:vartype extension: azure.mgmt.hdinsight.operations.ExtensionOperations
:ivar extensions: Extensions operations
:vartype extensions: azure.mgmt.hdinsight.operations.ExtensionsOperations
:ivar script_actions: ScriptActions operations
:vartype script_actions: azure.mgmt.hdinsight.operations.ScriptActionsOperations
:ivar script_execution_history: ScriptExecutionHistory operations
Expand All @@ -98,7 +98,7 @@ def __init__(
super(HDInsightManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2015-03-01-preview'
self.api_version = '2018-06-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -110,7 +110,7 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.configurations = ConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.extension = ExtensionOperations(
self.extensions = ExtensionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.script_actions = ScriptActionsOperations(
self._client, self.config, self._serialize, self._deserialize)
Expand Down
40 changes: 16 additions & 24 deletions azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
from .compute_profile_py3 import ComputeProfile
from .storage_account_py3 import StorageAccount
from .storage_profile_py3 import StorageProfile
from .disk_encryption_properties_py3 import DiskEncryptionProperties
from .cluster_create_properties_py3 import ClusterCreateProperties
from .cluster_identity_user_assigned_identities_value_py3 import ClusterIdentityUserAssignedIdentitiesValue
from .cluster_identity_py3 import ClusterIdentity
from .cluster_create_parameters_extended_py3 import ClusterCreateParametersExtended
from .cluster_patch_parameters_py3 import ClusterPatchParameters
from .quota_info_py3 import QuotaInfo
Expand All @@ -39,6 +42,7 @@
from .runtime_script_action_detail_py3 import RuntimeScriptActionDetail
from .cluster_list_runtime_script_action_detail_result_py3 import ClusterListRuntimeScriptActionDetailResult
from .cluster_resize_parameters_py3 import ClusterResizeParameters
from .cluster_disk_encryption_parameters_py3 import ClusterDiskEncryptionParameters
from .operation_resource_py3 import OperationResource
from .resource_py3 import Resource
from .tracked_resource_py3 import TrackedResource
Expand All @@ -48,14 +52,6 @@
from .application_get_endpoint_py3 import ApplicationGetEndpoint
from .application_properties_py3 import ApplicationProperties
from .application_py3 import Application
from .version_spec_py3 import VersionSpec
from .versions_capability_py3 import VersionsCapability
from .regions_capability_py3 import RegionsCapability
from .vm_sizes_capability_py3 import VmSizesCapability
from .vm_size_compatibility_filter_py3 import VmSizeCompatibilityFilter
from .regional_quota_capability_py3 import RegionalQuotaCapability
from .quota_capability_py3 import QuotaCapability
from .capabilities_result_py3 import CapabilitiesResult
from .localized_name_py3 import LocalizedName
from .usage_py3 import Usage
from .usages_list_result_py3 import UsagesListResult
Expand All @@ -80,7 +76,10 @@
from .compute_profile import ComputeProfile
from .storage_account import StorageAccount
from .storage_profile import StorageProfile
from .disk_encryption_properties import DiskEncryptionProperties
from .cluster_create_properties import ClusterCreateProperties
from .cluster_identity_user_assigned_identities_value import ClusterIdentityUserAssignedIdentitiesValue
from .cluster_identity import ClusterIdentity
from .cluster_create_parameters_extended import ClusterCreateParametersExtended
from .cluster_patch_parameters import ClusterPatchParameters
from .quota_info import QuotaInfo
Expand All @@ -95,6 +94,7 @@
from .runtime_script_action_detail import RuntimeScriptActionDetail
from .cluster_list_runtime_script_action_detail_result import ClusterListRuntimeScriptActionDetailResult
from .cluster_resize_parameters import ClusterResizeParameters
from .cluster_disk_encryption_parameters import ClusterDiskEncryptionParameters
from .operation_resource import OperationResource
from .resource import Resource
from .tracked_resource import TrackedResource
Expand All @@ -104,14 +104,6 @@
from .application_get_endpoint import ApplicationGetEndpoint
from .application_properties import ApplicationProperties
from .application import Application
from .version_spec import VersionSpec
from .versions_capability import VersionsCapability
from .regions_capability import RegionsCapability
from .vm_sizes_capability import VmSizesCapability
from .vm_size_compatibility_filter import VmSizeCompatibilityFilter
from .regional_quota_capability import RegionalQuotaCapability
from .quota_capability import QuotaCapability
from .capabilities_result import CapabilitiesResult
from .localized_name import LocalizedName
from .usage import Usage
from .usages_list_result import UsagesListResult
Expand All @@ -129,6 +121,8 @@
DirectoryType,
OSType,
Tier,
JsonWebKeyEncryptionAlgorithm,
ResourceIdentityType,
HDInsightClusterProvisioningState,
AsyncOperationState,
)
Expand All @@ -148,7 +142,10 @@
'ComputeProfile',
'StorageAccount',
'StorageProfile',
'DiskEncryptionProperties',
'ClusterCreateProperties',
'ClusterIdentityUserAssignedIdentitiesValue',
'ClusterIdentity',
'ClusterCreateParametersExtended',
'ClusterPatchParameters',
'QuotaInfo',
Expand All @@ -163,6 +160,7 @@
'RuntimeScriptActionDetail',
'ClusterListRuntimeScriptActionDetailResult',
'ClusterResizeParameters',
'ClusterDiskEncryptionParameters',
'OperationResource',
'Resource',
'TrackedResource',
Expand All @@ -172,14 +170,6 @@
'ApplicationGetEndpoint',
'ApplicationProperties',
'Application',
'VersionSpec',
'VersionsCapability',
'RegionsCapability',
'VmSizesCapability',
'VmSizeCompatibilityFilter',
'RegionalQuotaCapability',
'QuotaCapability',
'CapabilitiesResult',
'LocalizedName',
'Usage',
'UsagesListResult',
Expand All @@ -196,6 +186,8 @@
'DirectoryType',
'OSType',
'Tier',
'JsonWebKeyEncryptionAlgorithm',
'ResourceIdentityType',
'HDInsightClusterProvisioningState',
'AsyncOperationState',
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
class ApplicationGetHttpsEndpoint(Model):
"""Gets the application HTTP endpoints.
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, str]
:param access_modes: The list of access modes for the application.
:type access_modes: list[str]
:param location: The location of the endpoint.
Expand All @@ -29,7 +26,6 @@ class ApplicationGetHttpsEndpoint(Model):
"""

_attribute_map = {
'additional_properties': {'key': '', 'type': '{str}'},
'access_modes': {'key': 'accessModes', 'type': '[str]'},
'location': {'key': 'location', 'type': 'str'},
'destination_port': {'key': 'destinationPort', 'type': 'int'},
Expand All @@ -38,7 +34,6 @@ class ApplicationGetHttpsEndpoint(Model):

def __init__(self, **kwargs):
super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs)
self.additional_properties = kwargs.get('additional_properties', None)
self.access_modes = kwargs.get('access_modes', None)
self.location = kwargs.get('location', None)
self.destination_port = kwargs.get('destination_port', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
class ApplicationGetHttpsEndpoint(Model):
"""Gets the application HTTP endpoints.
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, str]
:param access_modes: The list of access modes for the application.
:type access_modes: list[str]
:param location: The location of the endpoint.
Expand All @@ -29,16 +26,14 @@ class ApplicationGetHttpsEndpoint(Model):
"""

_attribute_map = {
'additional_properties': {'key': '', 'type': '{str}'},
'access_modes': {'key': 'accessModes', 'type': '[str]'},
'location': {'key': 'location', 'type': 'str'},
'destination_port': {'key': 'destinationPort', 'type': 'int'},
'public_port': {'key': 'publicPort', 'type': 'int'},
}

def __init__(self, *, additional_properties=None, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None:
def __init__(self, *, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None:
super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs)
self.additional_properties = additional_properties
self.access_modes = access_modes
self.location = location
self.destination_port = destination_port
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class ApplicationProperties(Model):
:vartype created_date: str
:ivar marketplace_identifier: The marketplace identifier.
:vartype marketplace_identifier: str
:param additional_properties: The additional properties for application.
:type additional_properties: str
"""

_validation = {
Expand All @@ -67,7 +65,6 @@ class ApplicationProperties(Model):
'errors': {'key': 'errors', 'type': '[Errors]'},
'created_date': {'key': 'createdDate', 'type': 'str'},
'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'},
'additional_properties': {'key': 'additionalProperties', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -83,4 +80,3 @@ def __init__(self, **kwargs):
self.errors = kwargs.get('errors', None)
self.created_date = None
self.marketplace_identifier = None
self.additional_properties = kwargs.get('additional_properties', None)
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class ApplicationProperties(Model):
:vartype created_date: str
:ivar marketplace_identifier: The marketplace identifier.
:vartype marketplace_identifier: str
:param additional_properties: The additional properties for application.
:type additional_properties: str
"""

_validation = {
Expand All @@ -67,10 +65,9 @@ class ApplicationProperties(Model):
'errors': {'key': 'errors', 'type': '[Errors]'},
'created_date': {'key': 'createdDate', 'type': 'str'},
'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'},
'additional_properties': {'key': 'additionalProperties', 'type': 'str'},
}

def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type: str=None, errors=None, additional_properties: str=None, **kwargs) -> None:
def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type: str=None, errors=None, **kwargs) -> None:
super(ApplicationProperties, self).__init__(**kwargs)
self.compute_profile = compute_profile
self.install_script_actions = install_script_actions
Expand All @@ -83,4 +80,3 @@ def __init__(self, *, compute_profile=None, install_script_actions=None, uninsta
self.errors = errors
self.created_date = None
self.marketplace_identifier = None
self.additional_properties = additional_properties

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class Cluster(TrackedResource):
:type etag: str
:param properties: The properties of the cluster.
:type properties: ~azure.mgmt.hdinsight.models.ClusterGetProperties
:param identity: The identity of the cluster, if configured.
:type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity
"""

_validation = {
Expand All @@ -48,9 +50,11 @@ class Cluster(TrackedResource):
'tags': {'key': 'tags', 'type': '{str}'},
'etag': {'key': 'etag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'ClusterGetProperties'},
'identity': {'key': 'identity', 'type': 'ClusterIdentity'},
}

def __init__(self, **kwargs):
super(Cluster, self).__init__(**kwargs)
self.etag = kwargs.get('etag', None)
self.properties = kwargs.get('properties', None)
self.identity = kwargs.get('identity', None)
Loading

0 comments on commit 1dd4980

Please sign in to comment.