зеркало из
1
0
Форкнуть 0

[AutoPR] hdinsight/resource-manager (#5576)

* Generated from ac743f1dd8f0e67de1c5132910705c7cf2c49268 (#5539)

support subdomainsuffix

* [AutoPR hdinsight/resource-manager] [HDInsight] Fix syntax error in description of subDomainSuffix parameter (#5794)

* Generated from a5dd8b7763c01cdceb9e1332fb0a57051c9c7423

Modify syntax error in description of subDomainSuffix parameter

* Generated from cee83a7e58509526a61ec26af886f6ef755576ae

Modify the description of subDomainSuffix parameter

* Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/5576

* ChangeLog
This commit is contained in:
Azure SDK for Python bot 2019-06-17 14:17:51 -07:00 коммит произвёл Laurent Mazuel
Родитель 63b5a12d56
Коммит a721837647
131 изменённых файлов: 3724 добавлений и 4960 удалений

Просмотреть файл

@ -3,6 +3,14 @@
Release History
===============
1.1.0 (2019-06-17)
++++++++++++++++++
**Features**
- Model ApplicationGetHttpsEndpoint has a new parameter disable_gateway_auth
- Model ApplicationGetHttpsEndpoint has a new parameter sub_domain_suffix
1.0.0 (2019-04-08)
++++++++++++++++++

Просмотреть файл

@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------
from .hd_insight_management_client import HDInsightManagementClient
from .version import VERSION
from ._configuration import HDInsightManagementClientConfiguration
from ._hd_insight_management_client import HDInsightManagementClient
__all__ = ['HDInsightManagementClient', 'HDInsightManagementClientConfiguration']
__all__ = ['HDInsightManagementClient']
from .version import VERSION
__version__ = VERSION

Просмотреть файл

@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration
from .version import VERSION
class HDInsightManagementClientConfiguration(AzureConfiguration):
"""Configuration for HDInsightManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""
def __init__(
self, credentials, subscription_id, base_url=None):
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'
super(HDInsightManagementClientConfiguration, self).__init__(base_url)
# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True
self.add_user_agent('azure-mgmt-hdinsight/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')
self.credentials = credentials
self.subscription_id = subscription_id

Просмотреть файл

@ -11,53 +11,19 @@
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.clusters_operations import ClustersOperations
from .operations.applications_operations import ApplicationsOperations
from .operations.locations_operations import LocationsOperations
from .operations.configurations_operations import ConfigurationsOperations
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
from ._configuration import HDInsightManagementClientConfiguration
from .operations import ClustersOperations
from .operations import ApplicationsOperations
from .operations import LocationsOperations
from .operations import ConfigurationsOperations
from .operations import ExtensionsOperations
from .operations import ScriptActionsOperations
from .operations import ScriptExecutionHistoryOperations
from .operations import Operations
from . import models
class HDInsightManagementClientConfiguration(AzureConfiguration):
"""Configuration for HDInsightManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""
def __init__(
self, credentials, subscription_id, base_url=None):
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'
super(HDInsightManagementClientConfiguration, self).__init__(base_url)
self.add_user_agent('azure-mgmt-hdinsight/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')
self.credentials = credentials
self.subscription_id = subscription_id
class HDInsightManagementClient(SDKClient):
"""HDInsight Management Client

Просмотреть файл

@ -10,120 +10,120 @@
# --------------------------------------------------------------------------
try:
from .cluster_definition_py3 import ClusterDefinition
from .security_profile_py3 import SecurityProfile
from .hardware_profile_py3 import HardwareProfile
from .virtual_network_profile_py3 import VirtualNetworkProfile
from .data_disks_groups_py3 import DataDisksGroups
from .ssh_public_key_py3 import SshPublicKey
from .ssh_profile_py3 import SshProfile
from .linux_operating_system_profile_py3 import LinuxOperatingSystemProfile
from .os_profile_py3 import OsProfile
from .script_action_py3 import ScriptAction
from .role_py3 import Role
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
from .errors_py3 import Errors
from .connectivity_endpoint_py3 import ConnectivityEndpoint
from .cluster_get_properties_py3 import ClusterGetProperties
from .cluster_py3 import Cluster
from .runtime_script_action_py3 import RuntimeScriptAction
from .execute_script_action_parameters_py3 import ExecuteScriptActionParameters
from .cluster_list_persisted_script_actions_result_py3 import ClusterListPersistedScriptActionsResult
from .script_action_execution_summary_py3 import ScriptActionExecutionSummary
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 .update_gateway_settings_parameters_py3 import UpdateGatewaySettingsParameters
from .gateway_settings_py3 import GatewaySettings
from .operation_resource_py3 import OperationResource
from .resource_py3 import Resource
from .tracked_resource_py3 import TrackedResource
from .proxy_resource_py3 import ProxyResource
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .application_get_https_endpoint_py3 import ApplicationGetHttpsEndpoint
from .application_get_endpoint_py3 import ApplicationGetEndpoint
from .application_properties_py3 import ApplicationProperties
from .application_py3 import Application
from .localized_name_py3 import LocalizedName
from .usage_py3 import Usage
from .usages_list_result_py3 import UsagesListResult
from .cluster_configurations_py3 import ClusterConfigurations
from .extension_py3 import Extension
from .cluster_monitoring_response_py3 import ClusterMonitoringResponse
from .cluster_monitoring_request_py3 import ClusterMonitoringRequest
from .script_action_persisted_get_response_spec_py3 import ScriptActionPersistedGetResponseSpec
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from ._models_py3 import Application
from ._models_py3 import ApplicationGetEndpoint
from ._models_py3 import ApplicationGetHttpsEndpoint
from ._models_py3 import ApplicationProperties
from ._models_py3 import Cluster
from ._models_py3 import ClusterConfigurations
from ._models_py3 import ClusterCreateParametersExtended
from ._models_py3 import ClusterCreateProperties
from ._models_py3 import ClusterDefinition
from ._models_py3 import ClusterDiskEncryptionParameters
from ._models_py3 import ClusterGetProperties
from ._models_py3 import ClusterIdentity
from ._models_py3 import ClusterIdentityUserAssignedIdentitiesValue
from ._models_py3 import ClusterListPersistedScriptActionsResult
from ._models_py3 import ClusterListRuntimeScriptActionDetailResult
from ._models_py3 import ClusterMonitoringRequest
from ._models_py3 import ClusterMonitoringResponse
from ._models_py3 import ClusterPatchParameters
from ._models_py3 import ClusterResizeParameters
from ._models_py3 import ComputeProfile
from ._models_py3 import ConnectivityEndpoint
from ._models_py3 import DataDisksGroups
from ._models_py3 import DiskEncryptionProperties
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import Errors
from ._models_py3 import ExecuteScriptActionParameters
from ._models_py3 import Extension
from ._models_py3 import GatewaySettings
from ._models_py3 import HardwareProfile
from ._models_py3 import LinuxOperatingSystemProfile
from ._models_py3 import LocalizedName
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationResource
from ._models_py3 import OsProfile
from ._models_py3 import ProxyResource
from ._models_py3 import QuotaInfo
from ._models_py3 import Resource
from ._models_py3 import Role
from ._models_py3 import RuntimeScriptAction
from ._models_py3 import RuntimeScriptActionDetail
from ._models_py3 import ScriptAction
from ._models_py3 import ScriptActionExecutionSummary
from ._models_py3 import ScriptActionPersistedGetResponseSpec
from ._models_py3 import SecurityProfile
from ._models_py3 import SshProfile
from ._models_py3 import SshPublicKey
from ._models_py3 import StorageAccount
from ._models_py3 import StorageProfile
from ._models_py3 import TrackedResource
from ._models_py3 import UpdateGatewaySettingsParameters
from ._models_py3 import Usage
from ._models_py3 import UsagesListResult
from ._models_py3 import VirtualNetworkProfile
except (SyntaxError, ImportError):
from .cluster_definition import ClusterDefinition
from .security_profile import SecurityProfile
from .hardware_profile import HardwareProfile
from .virtual_network_profile import VirtualNetworkProfile
from .data_disks_groups import DataDisksGroups
from .ssh_public_key import SshPublicKey
from .ssh_profile import SshProfile
from .linux_operating_system_profile import LinuxOperatingSystemProfile
from .os_profile import OsProfile
from .script_action import ScriptAction
from .role import Role
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
from .errors import Errors
from .connectivity_endpoint import ConnectivityEndpoint
from .cluster_get_properties import ClusterGetProperties
from .cluster import Cluster
from .runtime_script_action import RuntimeScriptAction
from .execute_script_action_parameters import ExecuteScriptActionParameters
from .cluster_list_persisted_script_actions_result import ClusterListPersistedScriptActionsResult
from .script_action_execution_summary import ScriptActionExecutionSummary
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 .update_gateway_settings_parameters import UpdateGatewaySettingsParameters
from .gateway_settings import GatewaySettings
from .operation_resource import OperationResource
from .resource import Resource
from .tracked_resource import TrackedResource
from .proxy_resource import ProxyResource
from .error_response import ErrorResponse, ErrorResponseException
from .application_get_https_endpoint import ApplicationGetHttpsEndpoint
from .application_get_endpoint import ApplicationGetEndpoint
from .application_properties import ApplicationProperties
from .application import Application
from .localized_name import LocalizedName
from .usage import Usage
from .usages_list_result import UsagesListResult
from .cluster_configurations import ClusterConfigurations
from .extension import Extension
from .cluster_monitoring_response import ClusterMonitoringResponse
from .cluster_monitoring_request import ClusterMonitoringRequest
from .script_action_persisted_get_response_spec import ScriptActionPersistedGetResponseSpec
from .operation_display import OperationDisplay
from .operation import Operation
from .cluster_paged import ClusterPaged
from .application_paged import ApplicationPaged
from .runtime_script_action_detail_paged import RuntimeScriptActionDetailPaged
from .operation_paged import OperationPaged
from .hd_insight_management_client_enums import (
from ._models import Application
from ._models import ApplicationGetEndpoint
from ._models import ApplicationGetHttpsEndpoint
from ._models import ApplicationProperties
from ._models import Cluster
from ._models import ClusterConfigurations
from ._models import ClusterCreateParametersExtended
from ._models import ClusterCreateProperties
from ._models import ClusterDefinition
from ._models import ClusterDiskEncryptionParameters
from ._models import ClusterGetProperties
from ._models import ClusterIdentity
from ._models import ClusterIdentityUserAssignedIdentitiesValue
from ._models import ClusterListPersistedScriptActionsResult
from ._models import ClusterListRuntimeScriptActionDetailResult
from ._models import ClusterMonitoringRequest
from ._models import ClusterMonitoringResponse
from ._models import ClusterPatchParameters
from ._models import ClusterResizeParameters
from ._models import ComputeProfile
from ._models import ConnectivityEndpoint
from ._models import DataDisksGroups
from ._models import DiskEncryptionProperties
from ._models import ErrorResponse, ErrorResponseException
from ._models import Errors
from ._models import ExecuteScriptActionParameters
from ._models import Extension
from ._models import GatewaySettings
from ._models import HardwareProfile
from ._models import LinuxOperatingSystemProfile
from ._models import LocalizedName
from ._models import Operation
from ._models import OperationDisplay
from ._models import OperationResource
from ._models import OsProfile
from ._models import ProxyResource
from ._models import QuotaInfo
from ._models import Resource
from ._models import Role
from ._models import RuntimeScriptAction
from ._models import RuntimeScriptActionDetail
from ._models import ScriptAction
from ._models import ScriptActionExecutionSummary
from ._models import ScriptActionPersistedGetResponseSpec
from ._models import SecurityProfile
from ._models import SshProfile
from ._models import SshPublicKey
from ._models import StorageAccount
from ._models import StorageProfile
from ._models import TrackedResource
from ._models import UpdateGatewaySettingsParameters
from ._models import Usage
from ._models import UsagesListResult
from ._models import VirtualNetworkProfile
from ._paged_models import ApplicationPaged
from ._paged_models import ClusterPaged
from ._paged_models import OperationPaged
from ._paged_models import RuntimeScriptActionDetailPaged
from ._hd_insight_management_client_enums import (
DirectoryType,
OSType,
Tier,
@ -134,60 +134,60 @@ from .hd_insight_management_client_enums import (
)
__all__ = [
'Application',
'ApplicationGetEndpoint',
'ApplicationGetHttpsEndpoint',
'ApplicationProperties',
'Cluster',
'ClusterConfigurations',
'ClusterCreateParametersExtended',
'ClusterCreateProperties',
'ClusterDefinition',
'SecurityProfile',
'HardwareProfile',
'VirtualNetworkProfile',
'DataDisksGroups',
'SshPublicKey',
'SshProfile',
'LinuxOperatingSystemProfile',
'OsProfile',
'ScriptAction',
'Role',
'ClusterDiskEncryptionParameters',
'ClusterGetProperties',
'ClusterIdentity',
'ClusterIdentityUserAssignedIdentitiesValue',
'ClusterListPersistedScriptActionsResult',
'ClusterListRuntimeScriptActionDetailResult',
'ClusterMonitoringRequest',
'ClusterMonitoringResponse',
'ClusterPatchParameters',
'ClusterResizeParameters',
'ComputeProfile',
'ConnectivityEndpoint',
'DataDisksGroups',
'DiskEncryptionProperties',
'ErrorResponse', 'ErrorResponseException',
'Errors',
'ExecuteScriptActionParameters',
'Extension',
'GatewaySettings',
'HardwareProfile',
'LinuxOperatingSystemProfile',
'LocalizedName',
'Operation',
'OperationDisplay',
'OperationResource',
'OsProfile',
'ProxyResource',
'QuotaInfo',
'Resource',
'Role',
'RuntimeScriptAction',
'RuntimeScriptActionDetail',
'ScriptAction',
'ScriptActionExecutionSummary',
'ScriptActionPersistedGetResponseSpec',
'SecurityProfile',
'SshProfile',
'SshPublicKey',
'StorageAccount',
'StorageProfile',
'DiskEncryptionProperties',
'ClusterCreateProperties',
'ClusterIdentityUserAssignedIdentitiesValue',
'ClusterIdentity',
'ClusterCreateParametersExtended',
'ClusterPatchParameters',
'QuotaInfo',
'Errors',
'ConnectivityEndpoint',
'ClusterGetProperties',
'Cluster',
'RuntimeScriptAction',
'ExecuteScriptActionParameters',
'ClusterListPersistedScriptActionsResult',
'ScriptActionExecutionSummary',
'RuntimeScriptActionDetail',
'ClusterListRuntimeScriptActionDetailResult',
'ClusterResizeParameters',
'ClusterDiskEncryptionParameters',
'UpdateGatewaySettingsParameters',
'GatewaySettings',
'OperationResource',
'Resource',
'TrackedResource',
'ProxyResource',
'ErrorResponse', 'ErrorResponseException',
'ApplicationGetHttpsEndpoint',
'ApplicationGetEndpoint',
'ApplicationProperties',
'Application',
'LocalizedName',
'UpdateGatewaySettingsParameters',
'Usage',
'UsagesListResult',
'ClusterConfigurations',
'Extension',
'ClusterMonitoringResponse',
'ClusterMonitoringRequest',
'ScriptActionPersistedGetResponseSpec',
'OperationDisplay',
'Operation',
'VirtualNetworkProfile',
'ClusterPaged',
'ApplicationPaged',
'RuntimeScriptActionDetailPaged',

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -0,0 +1,66 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.paging import Paged
class ClusterPaged(Paged):
"""
A paging container for iterating over a list of :class:`Cluster <azure.mgmt.hdinsight.models.Cluster>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Cluster]'}
}
def __init__(self, *args, **kwargs):
super(ClusterPaged, self).__init__(*args, **kwargs)
class ApplicationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Application <azure.mgmt.hdinsight.models.Application>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Application]'}
}
def __init__(self, *args, **kwargs):
super(ApplicationPaged, self).__init__(*args, **kwargs)
class RuntimeScriptActionDetailPaged(Paged):
"""
A paging container for iterating over a list of :class:`RuntimeScriptActionDetail <azure.mgmt.hdinsight.models.RuntimeScriptActionDetail>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[RuntimeScriptActionDetail]'}
}
def __init__(self, *args, **kwargs):
super(RuntimeScriptActionDetailPaged, self).__init__(*args, **kwargs)
class OperationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Operation <azure.mgmt.hdinsight.models.Operation>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Operation]'}
}
def __init__(self, *args, **kwargs):
super(OperationPaged, self).__init__(*args, **kwargs)

Просмотреть файл

@ -1,54 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .proxy_resource import ProxyResource
class Application(ProxyResource):
"""The HDInsight cluster application.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param etag: The ETag for the application
:type etag: str
:param tags: The tags for the application.
:type tags: dict[str, str]
:param properties: The properties of the application.
:type properties: ~azure.mgmt.hdinsight.models.ApplicationProperties
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'properties': {'key': 'properties', 'type': 'ApplicationProperties'},
}
def __init__(self, **kwargs):
super(Application, self).__init__(**kwargs)
self.etag = kwargs.get('etag', None)
self.tags = kwargs.get('tags', None)
self.properties = kwargs.get('properties', None)

Просмотреть файл

@ -1,36 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationGetEndpoint(Model):
"""Gets the application SSH endpoint.
:param location: The location of the endpoint.
:type location: str
:param destination_port: The destination port to connect to.
:type destination_port: int
:param public_port: The public port to connect to.
:type public_port: int
"""
_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'destination_port': {'key': 'destinationPort', 'type': 'int'},
'public_port': {'key': 'publicPort', 'type': 'int'},
}
def __init__(self, **kwargs):
super(ApplicationGetEndpoint, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.destination_port = kwargs.get('destination_port', None)
self.public_port = kwargs.get('public_port', None)

Просмотреть файл

@ -1,36 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationGetEndpoint(Model):
"""Gets the application SSH endpoint.
:param location: The location of the endpoint.
:type location: str
:param destination_port: The destination port to connect to.
:type destination_port: int
:param public_port: The public port to connect to.
:type public_port: int
"""
_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'destination_port': {'key': 'destinationPort', 'type': 'int'},
'public_port': {'key': 'publicPort', 'type': 'int'},
}
def __init__(self, *, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None:
super(ApplicationGetEndpoint, self).__init__(**kwargs)
self.location = location
self.destination_port = destination_port
self.public_port = public_port

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationGetHttpsEndpoint(Model):
"""Gets the application HTTP endpoints.
:param access_modes: The list of access modes for the application.
:type access_modes: list[str]
:param location: The location of the endpoint.
:type location: str
:param destination_port: The destination port to connect to.
:type destination_port: int
:param public_port: The public port to connect to.
:type public_port: int
"""
_attribute_map = {
'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, **kwargs):
super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs)
self.access_modes = kwargs.get('access_modes', None)
self.location = kwargs.get('location', None)
self.destination_port = kwargs.get('destination_port', None)
self.public_port = kwargs.get('public_port', None)

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationGetHttpsEndpoint(Model):
"""Gets the application HTTP endpoints.
:param access_modes: The list of access modes for the application.
:type access_modes: list[str]
:param location: The location of the endpoint.
:type location: str
:param destination_port: The destination port to connect to.
:type destination_port: int
:param public_port: The public port to connect to.
:type public_port: int
"""
_attribute_map = {
'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, *, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None:
super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs)
self.access_modes = access_modes
self.location = location
self.destination_port = destination_port
self.public_port = public_port

Просмотреть файл

@ -1,27 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.paging import Paged
class ApplicationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Application <azure.mgmt.hdinsight.models.Application>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Application]'}
}
def __init__(self, *args, **kwargs):
super(ApplicationPaged, self).__init__(*args, **kwargs)

Просмотреть файл

@ -1,82 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationProperties(Model):
"""The HDInsight cluster application GET response.
Variables are only populated by the server, and will be ignored when
sending a request.
:param compute_profile: The list of roles in the cluster.
:type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile
:param install_script_actions: The list of install script actions.
:type install_script_actions:
list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:param uninstall_script_actions: The list of uninstall script actions.
:type uninstall_script_actions:
list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:param https_endpoints: The list of application HTTPS endpoints.
:type https_endpoints:
list[~azure.mgmt.hdinsight.models.ApplicationGetHttpsEndpoint]
:param ssh_endpoints: The list of application SSH endpoints.
:type ssh_endpoints:
list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint]
:ivar provisioning_state: The provisioning state of the application.
:vartype provisioning_state: str
:param application_type: The application type.
:type application_type: str
:ivar application_state: The application state.
:vartype application_state: str
:param errors: The list of errors.
:type errors: list[~azure.mgmt.hdinsight.models.Errors]
:ivar created_date: The application create date time.
:vartype created_date: str
:ivar marketplace_identifier: The marketplace identifier.
:vartype marketplace_identifier: str
"""
_validation = {
'provisioning_state': {'readonly': True},
'application_state': {'readonly': True},
'created_date': {'readonly': True},
'marketplace_identifier': {'readonly': True},
}
_attribute_map = {
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
'install_script_actions': {'key': 'installScriptActions', 'type': '[RuntimeScriptAction]'},
'uninstall_script_actions': {'key': 'uninstallScriptActions', 'type': '[RuntimeScriptAction]'},
'https_endpoints': {'key': 'httpsEndpoints', 'type': '[ApplicationGetHttpsEndpoint]'},
'ssh_endpoints': {'key': 'sshEndpoints', 'type': '[ApplicationGetEndpoint]'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'application_type': {'key': 'applicationType', 'type': 'str'},
'application_state': {'key': 'applicationState', 'type': 'str'},
'errors': {'key': 'errors', 'type': '[Errors]'},
'created_date': {'key': 'createdDate', 'type': 'str'},
'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ApplicationProperties, self).__init__(**kwargs)
self.compute_profile = kwargs.get('compute_profile', None)
self.install_script_actions = kwargs.get('install_script_actions', None)
self.uninstall_script_actions = kwargs.get('uninstall_script_actions', None)
self.https_endpoints = kwargs.get('https_endpoints', None)
self.ssh_endpoints = kwargs.get('ssh_endpoints', None)
self.provisioning_state = None
self.application_type = kwargs.get('application_type', None)
self.application_state = None
self.errors = kwargs.get('errors', None)
self.created_date = None
self.marketplace_identifier = None

Просмотреть файл

@ -1,82 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ApplicationProperties(Model):
"""The HDInsight cluster application GET response.
Variables are only populated by the server, and will be ignored when
sending a request.
:param compute_profile: The list of roles in the cluster.
:type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile
:param install_script_actions: The list of install script actions.
:type install_script_actions:
list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:param uninstall_script_actions: The list of uninstall script actions.
:type uninstall_script_actions:
list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:param https_endpoints: The list of application HTTPS endpoints.
:type https_endpoints:
list[~azure.mgmt.hdinsight.models.ApplicationGetHttpsEndpoint]
:param ssh_endpoints: The list of application SSH endpoints.
:type ssh_endpoints:
list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint]
:ivar provisioning_state: The provisioning state of the application.
:vartype provisioning_state: str
:param application_type: The application type.
:type application_type: str
:ivar application_state: The application state.
:vartype application_state: str
:param errors: The list of errors.
:type errors: list[~azure.mgmt.hdinsight.models.Errors]
:ivar created_date: The application create date time.
:vartype created_date: str
:ivar marketplace_identifier: The marketplace identifier.
:vartype marketplace_identifier: str
"""
_validation = {
'provisioning_state': {'readonly': True},
'application_state': {'readonly': True},
'created_date': {'readonly': True},
'marketplace_identifier': {'readonly': True},
}
_attribute_map = {
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
'install_script_actions': {'key': 'installScriptActions', 'type': '[RuntimeScriptAction]'},
'uninstall_script_actions': {'key': 'uninstallScriptActions', 'type': '[RuntimeScriptAction]'},
'https_endpoints': {'key': 'httpsEndpoints', 'type': '[ApplicationGetHttpsEndpoint]'},
'ssh_endpoints': {'key': 'sshEndpoints', 'type': '[ApplicationGetEndpoint]'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'application_type': {'key': 'applicationType', 'type': 'str'},
'application_state': {'key': 'applicationState', 'type': 'str'},
'errors': {'key': 'errors', 'type': '[Errors]'},
'created_date': {'key': 'createdDate', 'type': 'str'},
'marketplace_identifier': {'key': 'marketplaceIdentifier', '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, **kwargs) -> None:
super(ApplicationProperties, self).__init__(**kwargs)
self.compute_profile = compute_profile
self.install_script_actions = install_script_actions
self.uninstall_script_actions = uninstall_script_actions
self.https_endpoints = https_endpoints
self.ssh_endpoints = ssh_endpoints
self.provisioning_state = None
self.application_type = application_type
self.application_state = None
self.errors = errors
self.created_date = None
self.marketplace_identifier = None

Просмотреть файл

@ -1,54 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .proxy_resource_py3 import ProxyResource
class Application(ProxyResource):
"""The HDInsight cluster application.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param etag: The ETag for the application
:type etag: str
:param tags: The tags for the application.
:type tags: dict[str, str]
:param properties: The properties of the application.
:type properties: ~azure.mgmt.hdinsight.models.ApplicationProperties
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'properties': {'key': 'properties', 'type': 'ApplicationProperties'},
}
def __init__(self, *, etag: str=None, tags=None, properties=None, **kwargs) -> None:
super(Application, self).__init__(**kwargs)
self.etag = etag
self.tags = tags
self.properties = properties

Просмотреть файл

@ -1,60 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .tracked_resource import TrackedResource
class Cluster(TrackedResource):
"""The HDInsight cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param location: The Azure Region where the resource lives
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param etag: The ETag for the resource
: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 = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'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)

Просмотреть файл

@ -1,29 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterConfigurations(Model):
"""The configuration object for the specified cluster.
:param configurations: The configuration object for the specified
configuration for the specified cluster.
:type configurations: dict[str, dict[str, str]]
"""
_attribute_map = {
'configurations': {'key': 'configurations', 'type': '{{str}}'},
}
def __init__(self, **kwargs):
super(ClusterConfigurations, self).__init__(**kwargs)
self.configurations = kwargs.get('configurations', None)

Просмотреть файл

@ -1,29 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterConfigurations(Model):
"""The configuration object for the specified cluster.
:param configurations: The configuration object for the specified
configuration for the specified cluster.
:type configurations: dict[str, dict[str, str]]
"""
_attribute_map = {
'configurations': {'key': 'configurations', 'type': '{{str}}'},
}
def __init__(self, *, configurations=None, **kwargs) -> None:
super(ClusterConfigurations, self).__init__(**kwargs)
self.configurations = configurations

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterCreateParametersExtended(Model):
"""The CreateCluster request parameters.
:param location: The location of the cluster.
:type location: str
:param tags: The resource tags.
:type tags: dict[str, str]
:param properties: The cluster create parameters.
:type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties
:param identity: The identity of the cluster, if configured.
:type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity
"""
_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'},
'identity': {'key': 'identity', 'type': 'ClusterIdentity'},
}
def __init__(self, **kwargs):
super(ClusterCreateParametersExtended, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
self.properties = kwargs.get('properties', None)
self.identity = kwargs.get('identity', None)

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterCreateParametersExtended(Model):
"""The CreateCluster request parameters.
:param location: The location of the cluster.
:type location: str
:param tags: The resource tags.
:type tags: dict[str, str]
:param properties: The cluster create parameters.
:type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties
:param identity: The identity of the cluster, if configured.
:type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity
"""
_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'},
'identity': {'key': 'identity', 'type': 'ClusterIdentity'},
}
def __init__(self, *, location: str=None, tags=None, properties=None, identity=None, **kwargs) -> None:
super(ClusterCreateParametersExtended, self).__init__(**kwargs)
self.location = location
self.tags = tags
self.properties = properties
self.identity = identity

Просмотреть файл

@ -1,59 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterCreateProperties(Model):
"""The cluster create parameters.
:param cluster_version: The version of the cluster.
:type cluster_version: str
:param os_type: The type of operating system. Possible values include:
'Windows', 'Linux'
:type os_type: str or ~azure.mgmt.hdinsight.models.OSType
:param tier: The cluster tier. Possible values include: 'Standard',
'Premium'
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
:param cluster_definition: The cluster definition.
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
:param security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
:type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile
:param storage_profile: The storage profile.
:type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile
:param disk_encryption_properties: The disk encryption properties.
:type disk_encryption_properties:
~azure.mgmt.hdinsight.models.DiskEncryptionProperties
"""
_attribute_map = {
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'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, **kwargs):
super(ClusterCreateProperties, 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_definition = kwargs.get('cluster_definition', 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)
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)

Просмотреть файл

@ -1,59 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterCreateProperties(Model):
"""The cluster create parameters.
:param cluster_version: The version of the cluster.
:type cluster_version: str
:param os_type: The type of operating system. Possible values include:
'Windows', 'Linux'
:type os_type: str or ~azure.mgmt.hdinsight.models.OSType
:param tier: The cluster tier. Possible values include: 'Standard',
'Premium'
:type tier: str or ~azure.mgmt.hdinsight.models.Tier
:param cluster_definition: The cluster definition.
:type cluster_definition: ~azure.mgmt.hdinsight.models.ClusterDefinition
:param security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
:type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile
:param storage_profile: The storage profile.
:type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile
:param disk_encryption_properties: The disk encryption properties.
:type disk_encryption_properties:
~azure.mgmt.hdinsight.models.DiskEncryptionProperties
"""
_attribute_map = {
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'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:
super(ClusterCreateProperties, self).__init__(**kwargs)
self.cluster_version = cluster_version
self.os_type = os_type
self.tier = tier
self.cluster_definition = cluster_definition
self.security_profile = security_profile
self.compute_profile = compute_profile
self.storage_profile = storage_profile
self.disk_encryption_properties = disk_encryption_properties

Просмотреть файл

@ -1,41 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterDefinition(Model):
"""The cluster definition.
:param blueprint: The link to the blueprint.
:type blueprint: str
:param kind: The type of cluster.
:type kind: str
:param component_version: The versions of different services in the
cluster.
:type component_version: dict[str, str]
:param configurations: The cluster configurations.
:type configurations: object
"""
_attribute_map = {
'blueprint': {'key': 'blueprint', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'component_version': {'key': 'componentVersion', 'type': '{str}'},
'configurations': {'key': 'configurations', 'type': 'object'},
}
def __init__(self, **kwargs):
super(ClusterDefinition, self).__init__(**kwargs)
self.blueprint = kwargs.get('blueprint', None)
self.kind = kwargs.get('kind', None)
self.component_version = kwargs.get('component_version', None)
self.configurations = kwargs.get('configurations', None)

Просмотреть файл

@ -1,41 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterDefinition(Model):
"""The cluster definition.
:param blueprint: The link to the blueprint.
:type blueprint: str
:param kind: The type of cluster.
:type kind: str
:param component_version: The versions of different services in the
cluster.
:type component_version: dict[str, str]
:param configurations: The cluster configurations.
:type configurations: object
"""
_attribute_map = {
'blueprint': {'key': 'blueprint', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'component_version': {'key': 'componentVersion', 'type': '{str}'},
'configurations': {'key': 'configurations', 'type': 'object'},
}
def __init__(self, *, blueprint: str=None, kind: str=None, component_version=None, configurations=None, **kwargs) -> None:
super(ClusterDefinition, self).__init__(**kwargs)
self.blueprint = blueprint
self.kind = kind
self.component_version = component_version
self.configurations = configurations

Просмотреть файл

@ -1,38 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterDiskEncryptionParameters(Model):
"""The Disk Encryption Cluster request parameters.
:param vault_uri: Base key vault URI where the customers key is located
eg. https://myvault.vault.azure.net
:type vault_uri: str
:param key_name: Key name that is used for enabling disk encryption.
:type key_name: str
:param key_version: Specific key version that is used for enabling disk
encryption.
:type key_version: str
"""
_attribute_map = {
'vault_uri': {'key': 'vaultUri', 'type': 'str'},
'key_name': {'key': 'keyName', 'type': 'str'},
'key_version': {'key': 'keyVersion', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ClusterDiskEncryptionParameters, self).__init__(**kwargs)
self.vault_uri = kwargs.get('vault_uri', None)
self.key_name = kwargs.get('key_name', None)
self.key_version = kwargs.get('key_version', None)

Просмотреть файл

@ -1,38 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterDiskEncryptionParameters(Model):
"""The Disk Encryption Cluster request parameters.
:param vault_uri: Base key vault URI where the customers key is located
eg. https://myvault.vault.azure.net
:type vault_uri: str
:param key_name: Key name that is used for enabling disk encryption.
:type key_name: str
:param key_version: Specific key version that is used for enabling disk
encryption.
:type key_version: str
"""
_attribute_map = {
'vault_uri': {'key': 'vaultUri', 'type': 'str'},
'key_name': {'key': 'keyName', 'type': 'str'},
'key_version': {'key': 'keyVersion', 'type': 'str'},
}
def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, **kwargs) -> None:
super(ClusterDiskEncryptionParameters, self).__init__(**kwargs)
self.vault_uri = vault_uri
self.key_name = key_name
self.key_version = key_version

Просмотреть файл

@ -1,89 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterGetProperties(Model):
"""The properties of cluster.
All required parameters must be populated in order to send to Azure.
:param cluster_version: The version of the cluster.
:type cluster_version: str
:param os_type: The type of operating system. Possible values include:
'Windows', 'Linux'
:type os_type: str or ~azure.mgmt.hdinsight.models.OSType
:param tier: The cluster tier. Possible values include: 'Standard',
'Premium'
: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 security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
:type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile
:param provisioning_state: The provisioning state, which only appears in
the response. Possible values include: 'InProgress', 'Failed',
'Succeeded', 'Canceled', 'Deleting'
:type provisioning_state: str or
~azure.mgmt.hdinsight.models.HDInsightClusterProvisioningState
:param created_date: The date on which the cluster was created.
:type created_date: str
:param cluster_state: The state of the cluster.
:type cluster_state: str
:param quota_info: The quota information.
:type quota_info: ~azure.mgmt.hdinsight.models.QuotaInfo
:param errors: The list of errors.
:type errors: list[~azure.mgmt.hdinsight.models.Errors]
:param connectivity_endpoints: The list of connectivity endpoints.
:type connectivity_endpoints:
list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint]
:param disk_encryption_properties: The disk encryption properties.
:type disk_encryption_properties:
~azure.mgmt.hdinsight.models.DiskEncryptionProperties
"""
_validation = {
'cluster_definition': {'required': True},
}
_attribute_map = {
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'},
'created_date': {'key': 'createdDate', 'type': 'str'},
'cluster_state': {'key': 'clusterState', 'type': 'str'},
'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'},
'errors': {'key': 'errors', 'type': '[Errors]'},
'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'},
'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'},
}
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_definition = kwargs.get('cluster_definition', 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)
self.created_date = kwargs.get('created_date', None)
self.cluster_state = kwargs.get('cluster_state', None)
self.quota_info = kwargs.get('quota_info', None)
self.errors = kwargs.get('errors', None)
self.connectivity_endpoints = kwargs.get('connectivity_endpoints', None)
self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None)

Просмотреть файл

@ -1,89 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterGetProperties(Model):
"""The properties of cluster.
All required parameters must be populated in order to send to Azure.
:param cluster_version: The version of the cluster.
:type cluster_version: str
:param os_type: The type of operating system. Possible values include:
'Windows', 'Linux'
:type os_type: str or ~azure.mgmt.hdinsight.models.OSType
:param tier: The cluster tier. Possible values include: 'Standard',
'Premium'
: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 security_profile: The security profile.
:type security_profile: ~azure.mgmt.hdinsight.models.SecurityProfile
:param compute_profile: The compute profile.
:type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile
:param provisioning_state: The provisioning state, which only appears in
the response. Possible values include: 'InProgress', 'Failed',
'Succeeded', 'Canceled', 'Deleting'
:type provisioning_state: str or
~azure.mgmt.hdinsight.models.HDInsightClusterProvisioningState
:param created_date: The date on which the cluster was created.
:type created_date: str
:param cluster_state: The state of the cluster.
:type cluster_state: str
:param quota_info: The quota information.
:type quota_info: ~azure.mgmt.hdinsight.models.QuotaInfo
:param errors: The list of errors.
:type errors: list[~azure.mgmt.hdinsight.models.Errors]
:param connectivity_endpoints: The list of connectivity endpoints.
:type connectivity_endpoints:
list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint]
:param disk_encryption_properties: The disk encryption properties.
:type disk_encryption_properties:
~azure.mgmt.hdinsight.models.DiskEncryptionProperties
"""
_validation = {
'cluster_definition': {'required': True},
}
_attribute_map = {
'cluster_version': {'key': 'clusterVersion', 'type': 'str'},
'os_type': {'key': 'osType', 'type': 'OSType'},
'tier': {'key': 'tier', 'type': 'Tier'},
'cluster_definition': {'key': 'clusterDefinition', 'type': 'ClusterDefinition'},
'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'},
'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'},
'provisioning_state': {'key': 'provisioningState', 'type': 'HDInsightClusterProvisioningState'},
'created_date': {'key': 'createdDate', 'type': 'str'},
'cluster_state': {'key': 'clusterState', 'type': 'str'},
'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'},
'errors': {'key': 'errors', 'type': '[Errors]'},
'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'},
'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:
super(ClusterGetProperties, self).__init__(**kwargs)
self.cluster_version = cluster_version
self.os_type = os_type
self.tier = tier
self.cluster_definition = cluster_definition
self.security_profile = security_profile
self.compute_profile = compute_profile
self.provisioning_state = provisioning_state
self.created_date = created_date
self.cluster_state = cluster_state
self.quota_info = quota_info
self.errors = errors
self.connectivity_endpoints = connectivity_endpoints
self.disk_encryption_properties = disk_encryption_properties

Просмотреть файл

@ -1,57 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterIdentity(Model):
"""Identity for the cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of cluster identity. This property
will only be provided for a system assigned identity.
:vartype principal_id: str
:ivar tenant_id: The tenant id associated with the cluster. This property
will only be provided for a system assigned identity.
:vartype tenant_id: str
:param type: The type of identity used for the cluster. The type
'SystemAssigned, UserAssigned' includes both an implicitly created
identity and a set of user assigned identities. Possible values include:
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType
:param user_assigned_identities: The list of user identities associated
with the cluster. The user identity dictionary key references will be ARM
resource ids in the form:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
:type user_assigned_identities: dict[str,
~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue]
"""
_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}
_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'type': {'key': 'type', 'type': 'ResourceIdentityType'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'},
}
def __init__(self, **kwargs):
super(ClusterIdentity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = kwargs.get('type', None)
self.user_assigned_identities = kwargs.get('user_assigned_identities', None)

Просмотреть файл

@ -1,57 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterIdentity(Model):
"""Identity for the cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of cluster identity. This property
will only be provided for a system assigned identity.
:vartype principal_id: str
:ivar tenant_id: The tenant id associated with the cluster. This property
will only be provided for a system assigned identity.
:vartype tenant_id: str
:param type: The type of identity used for the cluster. The type
'SystemAssigned, UserAssigned' includes both an implicitly created
identity and a set of user assigned identities. Possible values include:
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None'
:type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType
:param user_assigned_identities: The list of user identities associated
with the cluster. The user identity dictionary key references will be ARM
resource ids in the form:
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
:type user_assigned_identities: dict[str,
~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue]
"""
_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
}
_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'type': {'key': 'type', 'type': 'ResourceIdentityType'},
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'},
}
def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None:
super(ClusterIdentity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = type
self.user_assigned_identities = user_assigned_identities

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterIdentityUserAssignedIdentitiesValue(Model):
"""ClusterIdentityUserAssignedIdentitiesValue.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of user assigned identity.
:vartype principal_id: str
:ivar client_id: The client id of user assigned identity.
:vartype client_id: str
"""
_validation = {
'principal_id': {'readonly': True},
'client_id': {'readonly': True},
}
_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'client_id': {'key': 'clientId', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs)
self.principal_id = None
self.client_id = None

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterIdentityUserAssignedIdentitiesValue(Model):
"""ClusterIdentityUserAssignedIdentitiesValue.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of user assigned identity.
:vartype principal_id: str
:ivar client_id: The client id of user assigned identity.
:vartype client_id: str
"""
_validation = {
'principal_id': {'readonly': True},
'client_id': {'readonly': True},
}
_attribute_map = {
'principal_id': {'key': 'principalId', 'type': 'str'},
'client_id': {'key': 'clientId', 'type': 'str'},
}
def __init__(self, **kwargs) -> None:
super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs)
self.principal_id = None
self.client_id = None

Просмотреть файл

@ -1,39 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterListPersistedScriptActionsResult(Model):
"""The ListPersistedScriptActions operation response.
Variables are only populated by the server, and will be ignored when
sending a request.
:param value: The list of Persisted Script Actions.
:type value: list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:ivar next_link: The link (url) to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[RuntimeScriptAction]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ClusterListPersistedScriptActionsResult, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.next_link = None

Просмотреть файл

@ -1,39 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterListPersistedScriptActionsResult(Model):
"""The ListPersistedScriptActions operation response.
Variables are only populated by the server, and will be ignored when
sending a request.
:param value: The list of Persisted Script Actions.
:type value: list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:ivar next_link: The link (url) to the next page of results.
:vartype next_link: str
"""
_validation = {
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[RuntimeScriptAction]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(self, *, value=None, **kwargs) -> None:
super(ClusterListPersistedScriptActionsResult, self).__init__(**kwargs)
self.value = value
self.next_link = None

Просмотреть файл

@ -1,41 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterListRuntimeScriptActionDetailResult(Model):
"""The list runtime script action detail response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar value: The list of persisted script action details for the cluster.
:vartype value:
list[~azure.mgmt.hdinsight.models.RuntimeScriptActionDetail]
:ivar next_link: The link (url) to the next page of results.
:vartype next_link: str
"""
_validation = {
'value': {'readonly': True},
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[RuntimeScriptActionDetail]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ClusterListRuntimeScriptActionDetailResult, self).__init__(**kwargs)
self.value = None
self.next_link = None

Просмотреть файл

@ -1,41 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterListRuntimeScriptActionDetailResult(Model):
"""The list runtime script action detail response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar value: The list of persisted script action details for the cluster.
:vartype value:
list[~azure.mgmt.hdinsight.models.RuntimeScriptActionDetail]
:ivar next_link: The link (url) to the next page of results.
:vartype next_link: str
"""
_validation = {
'value': {'readonly': True},
'next_link': {'readonly': True},
}
_attribute_map = {
'value': {'key': 'value', 'type': '[RuntimeScriptActionDetail]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}
def __init__(self, **kwargs) -> None:
super(ClusterListRuntimeScriptActionDetailResult, self).__init__(**kwargs)
self.value = None
self.next_link = None

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterMonitoringRequest(Model):
"""The Operations Management Suite (OMS) parameters.
:param workspace_id: The Operations Management Suite (OMS) workspace ID.
:type workspace_id: str
:param primary_key: The Operations Management Suite (OMS) workspace key.
:type primary_key: str
"""
_attribute_map = {
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
'primary_key': {'key': 'primaryKey', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ClusterMonitoringRequest, self).__init__(**kwargs)
self.workspace_id = kwargs.get('workspace_id', None)
self.primary_key = kwargs.get('primary_key', None)

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterMonitoringRequest(Model):
"""The Operations Management Suite (OMS) parameters.
:param workspace_id: The Operations Management Suite (OMS) workspace ID.
:type workspace_id: str
:param primary_key: The Operations Management Suite (OMS) workspace key.
:type primary_key: str
"""
_attribute_map = {
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
'primary_key': {'key': 'primaryKey', 'type': 'str'},
}
def __init__(self, *, workspace_id: str=None, primary_key: str=None, **kwargs) -> None:
super(ClusterMonitoringRequest, self).__init__(**kwargs)
self.workspace_id = workspace_id
self.primary_key = primary_key

Просмотреть файл

@ -1,34 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterMonitoringResponse(Model):
"""The Operations Management Suite (OMS) status response.
:param cluster_monitoring_enabled: The status of the Operations Management
Suite (OMS) on the HDInsight cluster.
:type cluster_monitoring_enabled: bool
:param workspace_id: The workspace ID of the Operations Management Suite
(OMS) on the HDInsight cluster.
:type workspace_id: str
"""
_attribute_map = {
'cluster_monitoring_enabled': {'key': 'clusterMonitoringEnabled', 'type': 'bool'},
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ClusterMonitoringResponse, self).__init__(**kwargs)
self.cluster_monitoring_enabled = kwargs.get('cluster_monitoring_enabled', None)
self.workspace_id = kwargs.get('workspace_id', None)

Просмотреть файл

@ -1,34 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterMonitoringResponse(Model):
"""The Operations Management Suite (OMS) status response.
:param cluster_monitoring_enabled: The status of the Operations Management
Suite (OMS) on the HDInsight cluster.
:type cluster_monitoring_enabled: bool
:param workspace_id: The workspace ID of the Operations Management Suite
(OMS) on the HDInsight cluster.
:type workspace_id: str
"""
_attribute_map = {
'cluster_monitoring_enabled': {'key': 'clusterMonitoringEnabled', 'type': 'bool'},
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
}
def __init__(self, *, cluster_monitoring_enabled: bool=None, workspace_id: str=None, **kwargs) -> None:
super(ClusterMonitoringResponse, self).__init__(**kwargs)
self.cluster_monitoring_enabled = cluster_monitoring_enabled
self.workspace_id = workspace_id

Просмотреть файл

@ -1,27 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.paging import Paged
class ClusterPaged(Paged):
"""
A paging container for iterating over a list of :class:`Cluster <azure.mgmt.hdinsight.models.Cluster>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Cluster]'}
}
def __init__(self, *args, **kwargs):
super(ClusterPaged, self).__init__(*args, **kwargs)

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterPatchParameters(Model):
"""The PatchCluster request parameters.
:param tags: The resource tags.
:type tags: dict[str, str]
"""
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
}
def __init__(self, **kwargs):
super(ClusterPatchParameters, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterPatchParameters(Model):
"""The PatchCluster request parameters.
:param tags: The resource tags.
:type tags: dict[str, str]
"""
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
}
def __init__(self, *, tags=None, **kwargs) -> None:
super(ClusterPatchParameters, self).__init__(**kwargs)
self.tags = tags

Просмотреть файл

@ -1,60 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .tracked_resource_py3 import TrackedResource
class Cluster(TrackedResource):
"""The HDInsight cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
:param location: The Azure Region where the resource lives
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param etag: The ETag for the resource
: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 = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'etag': {'key': 'etag', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'ClusterGetProperties'},
'identity': {'key': 'identity', 'type': 'ClusterIdentity'},
}
def __init__(self, *, location: str=None, tags=None, etag: str=None, properties=None, identity=None, **kwargs) -> None:
super(Cluster, self).__init__(location=location, tags=tags, **kwargs)
self.etag = etag
self.properties = properties
self.identity = identity

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterResizeParameters(Model):
"""The Resize Cluster request parameters.
:param target_instance_count: The target instance count for the operation.
:type target_instance_count: int
"""
_attribute_map = {
'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'},
}
def __init__(self, **kwargs):
super(ClusterResizeParameters, self).__init__(**kwargs)
self.target_instance_count = kwargs.get('target_instance_count', None)

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ClusterResizeParameters(Model):
"""The Resize Cluster request parameters.
:param target_instance_count: The target instance count for the operation.
:type target_instance_count: int
"""
_attribute_map = {
'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'},
}
def __init__(self, *, target_instance_count: int=None, **kwargs) -> None:
super(ClusterResizeParameters, self).__init__(**kwargs)
self.target_instance_count = target_instance_count

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ComputeProfile(Model):
"""Describes the compute profile.
:param roles: The list of roles in the cluster.
:type roles: list[~azure.mgmt.hdinsight.models.Role]
"""
_attribute_map = {
'roles': {'key': 'roles', 'type': '[Role]'},
}
def __init__(self, **kwargs):
super(ComputeProfile, self).__init__(**kwargs)
self.roles = kwargs.get('roles', None)

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ComputeProfile(Model):
"""Describes the compute profile.
:param roles: The list of roles in the cluster.
:type roles: list[~azure.mgmt.hdinsight.models.Role]
"""
_attribute_map = {
'roles': {'key': 'roles', 'type': '[Role]'},
}
def __init__(self, *, roles=None, **kwargs) -> None:
super(ComputeProfile, self).__init__(**kwargs)
self.roles = roles

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ConnectivityEndpoint(Model):
"""The connectivity properties.
:param name: The name of the endpoint.
:type name: str
:param protocol: The protocol of the endpoint.
:type protocol: str
:param location: The location of the endpoint.
:type location: str
:param port: The port to connect to.
:type port: int
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'protocol': {'key': 'protocol', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
}
def __init__(self, **kwargs):
super(ConnectivityEndpoint, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.protocol = kwargs.get('protocol', None)
self.location = kwargs.get('location', None)
self.port = kwargs.get('port', None)

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ConnectivityEndpoint(Model):
"""The connectivity properties.
:param name: The name of the endpoint.
:type name: str
:param protocol: The protocol of the endpoint.
:type protocol: str
:param location: The location of the endpoint.
:type location: str
:param port: The port to connect to.
:type port: int
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'protocol': {'key': 'protocol', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
}
def __init__(self, *, name: str=None, protocol: str=None, location: str=None, port: int=None, **kwargs) -> None:
super(ConnectivityEndpoint, self).__init__(**kwargs)
self.name = name
self.protocol = protocol
self.location = location
self.port = port

Просмотреть файл

@ -1,45 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class DataDisksGroups(Model):
"""The data disks groups for the role.
Variables are only populated by the server, and will be ignored when
sending a request.
:param disks_per_node: The number of disks per node.
:type disks_per_node: int
:ivar storage_account_type: ReadOnly. The storage account type. Do not set
this value.
:vartype storage_account_type: str
:ivar disk_size_gb: ReadOnly. The DiskSize in GB. Do not set this value.
:vartype disk_size_gb: int
"""
_validation = {
'storage_account_type': {'readonly': True},
'disk_size_gb': {'readonly': True},
}
_attribute_map = {
'disks_per_node': {'key': 'disksPerNode', 'type': 'int'},
'storage_account_type': {'key': 'storageAccountType', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
}
def __init__(self, **kwargs):
super(DataDisksGroups, self).__init__(**kwargs)
self.disks_per_node = kwargs.get('disks_per_node', None)
self.storage_account_type = None
self.disk_size_gb = None

Просмотреть файл

@ -1,45 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class DataDisksGroups(Model):
"""The data disks groups for the role.
Variables are only populated by the server, and will be ignored when
sending a request.
:param disks_per_node: The number of disks per node.
:type disks_per_node: int
:ivar storage_account_type: ReadOnly. The storage account type. Do not set
this value.
:vartype storage_account_type: str
:ivar disk_size_gb: ReadOnly. The DiskSize in GB. Do not set this value.
:vartype disk_size_gb: int
"""
_validation = {
'storage_account_type': {'readonly': True},
'disk_size_gb': {'readonly': True},
}
_attribute_map = {
'disks_per_node': {'key': 'disksPerNode', 'type': 'int'},
'storage_account_type': {'key': 'storageAccountType', 'type': 'str'},
'disk_size_gb': {'key': 'diskSizeGB', 'type': 'int'},
}
def __init__(self, *, disks_per_node: int=None, **kwargs) -> None:
super(DataDisksGroups, self).__init__(**kwargs)
self.disks_per_node = disks_per_node
self.storage_account_type = None
self.disk_size_gb = None

Просмотреть файл

@ -1,49 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class DiskEncryptionProperties(Model):
"""The disk encryption properties.
:param vault_uri: Base key vault URI where the customers key is located
eg. https://myvault.vault.azure.net
:type vault_uri: str
:param key_name: Key name that is used for enabling disk encryption.
:type key_name: str
:param key_version: Specific key version that is used for enabling disk
encryption.
:type key_version: str
:param encryption_algorithm: Algorithm identifier for encryption, default
RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'
:type encryption_algorithm: str or
~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm
:param msi_resource_id: Resource ID of Managed Identity that is used to
access the key vault.
:type msi_resource_id: str
"""
_attribute_map = {
'vault_uri': {'key': 'vaultUri', 'type': 'str'},
'key_name': {'key': 'keyName', 'type': 'str'},
'key_version': {'key': 'keyVersion', 'type': 'str'},
'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'},
'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'},
}
def __init__(self, **kwargs):
super(DiskEncryptionProperties, self).__init__(**kwargs)
self.vault_uri = kwargs.get('vault_uri', None)
self.key_name = kwargs.get('key_name', None)
self.key_version = kwargs.get('key_version', None)
self.encryption_algorithm = kwargs.get('encryption_algorithm', None)
self.msi_resource_id = kwargs.get('msi_resource_id', None)

Просмотреть файл

@ -1,49 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class DiskEncryptionProperties(Model):
"""The disk encryption properties.
:param vault_uri: Base key vault URI where the customers key is located
eg. https://myvault.vault.azure.net
:type vault_uri: str
:param key_name: Key name that is used for enabling disk encryption.
:type key_name: str
:param key_version: Specific key version that is used for enabling disk
encryption.
:type key_version: str
:param encryption_algorithm: Algorithm identifier for encryption, default
RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5'
:type encryption_algorithm: str or
~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm
:param msi_resource_id: Resource ID of Managed Identity that is used to
access the key vault.
:type msi_resource_id: str
"""
_attribute_map = {
'vault_uri': {'key': 'vaultUri', 'type': 'str'},
'key_name': {'key': 'keyName', 'type': 'str'},
'key_version': {'key': 'keyVersion', 'type': 'str'},
'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'},
'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'},
}
def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, encryption_algorithm=None, msi_resource_id: str=None, **kwargs) -> None:
super(DiskEncryptionProperties, self).__init__(**kwargs)
self.vault_uri = vault_uri
self.key_name = key_name
self.key_version = key_version
self.encryption_algorithm = encryption_algorithm
self.msi_resource_id = msi_resource_id

Просмотреть файл

@ -1,45 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
from msrest.exceptions import HttpOperationError
class ErrorResponse(Model):
"""Describes the format of Error response.
:param code: Error code
:type code: str
:param message: Error message indicating why the operation failed.
:type message: str
"""
_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ErrorResponse, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
class ErrorResponseException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponse'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""
def __init__(self, deserialize, response, *args):
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)

Просмотреть файл

@ -1,45 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
from msrest.exceptions import HttpOperationError
class ErrorResponse(Model):
"""Describes the format of Error response.
:param code: Error code
:type code: str
:param message: Error message indicating why the operation failed.
:type message: str
"""
_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}
def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None:
super(ErrorResponse, self).__init__(**kwargs)
self.code = code
self.message = message
class ErrorResponseException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponse'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""
def __init__(self, deserialize, response, *args):
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Errors(Model):
"""The error message associated with the cluster creation.
:param code: The error code.
:type code: str
:param message: The error message.
:type message: str
"""
_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}
def __init__(self, **kwargs):
super(Errors, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Errors(Model):
"""The error message associated with the cluster creation.
:param code: The error code.
:type code: str
:param message: The error message.
:type message: str
"""
_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}
def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None:
super(Errors, self).__init__(**kwargs)
self.code = code
self.message = message

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ExecuteScriptActionParameters(Model):
"""The parameters for the script actions to execute on a running cluster.
All required parameters must be populated in order to send to Azure.
:param script_actions: The list of run time script actions.
:type script_actions:
list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:param persist_on_success: Required. Gets or sets if the scripts needs to
be persisted.
:type persist_on_success: bool
"""
_validation = {
'persist_on_success': {'required': True},
}
_attribute_map = {
'script_actions': {'key': 'scriptActions', 'type': '[RuntimeScriptAction]'},
'persist_on_success': {'key': 'persistOnSuccess', 'type': 'bool'},
}
def __init__(self, **kwargs):
super(ExecuteScriptActionParameters, self).__init__(**kwargs)
self.script_actions = kwargs.get('script_actions', None)
self.persist_on_success = kwargs.get('persist_on_success', None)

Просмотреть файл

@ -1,40 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ExecuteScriptActionParameters(Model):
"""The parameters for the script actions to execute on a running cluster.
All required parameters must be populated in order to send to Azure.
:param script_actions: The list of run time script actions.
:type script_actions:
list[~azure.mgmt.hdinsight.models.RuntimeScriptAction]
:param persist_on_success: Required. Gets or sets if the scripts needs to
be persisted.
:type persist_on_success: bool
"""
_validation = {
'persist_on_success': {'required': True},
}
_attribute_map = {
'script_actions': {'key': 'scriptActions', 'type': '[RuntimeScriptAction]'},
'persist_on_success': {'key': 'persistOnSuccess', 'type': 'bool'},
}
def __init__(self, *, persist_on_success: bool, script_actions=None, **kwargs) -> None:
super(ExecuteScriptActionParameters, self).__init__(**kwargs)
self.script_actions = script_actions
self.persist_on_success = persist_on_success

Просмотреть файл

@ -1,33 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Extension(Model):
"""Cluster monitoring extensions.
:param workspace_id: The workspace ID for the cluster monitoring
extension.
:type workspace_id: str
:param primary_key: The certificate for the cluster monitoring extensions.
:type primary_key: str
"""
_attribute_map = {
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
'primary_key': {'key': 'primaryKey', 'type': 'str'},
}
def __init__(self, **kwargs):
super(Extension, self).__init__(**kwargs)
self.workspace_id = kwargs.get('workspace_id', None)
self.primary_key = kwargs.get('primary_key', None)

Просмотреть файл

@ -1,33 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Extension(Model):
"""Cluster monitoring extensions.
:param workspace_id: The workspace ID for the cluster monitoring
extension.
:type workspace_id: str
:param primary_key: The certificate for the cluster monitoring extensions.
:type primary_key: str
"""
_attribute_map = {
'workspace_id': {'key': 'workspaceId', 'type': 'str'},
'primary_key': {'key': 'primaryKey', 'type': 'str'},
}
def __init__(self, *, workspace_id: str=None, primary_key: str=None, **kwargs) -> None:
super(Extension, self).__init__(**kwargs)
self.workspace_id = workspace_id
self.primary_key = primary_key

Просмотреть файл

@ -1,46 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class GatewaySettings(Model):
"""Gateway settings.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar is_credential_enabled: Indicates whether or not the gateway settings
based authorization is enabled.
:vartype is_credential_enabled: str
:ivar user_name: The gateway settings user name.
:vartype user_name: str
:ivar password: The gateway settings user password.
:vartype password: str
"""
_validation = {
'is_credential_enabled': {'readonly': True},
'user_name': {'readonly': True},
'password': {'readonly': True},
}
_attribute_map = {
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'},
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
}
def __init__(self, **kwargs):
super(GatewaySettings, self).__init__(**kwargs)
self.is_credential_enabled = None
self.user_name = None
self.password = None

Просмотреть файл

@ -1,46 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class GatewaySettings(Model):
"""Gateway settings.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar is_credential_enabled: Indicates whether or not the gateway settings
based authorization is enabled.
:vartype is_credential_enabled: str
:ivar user_name: The gateway settings user name.
:vartype user_name: str
:ivar password: The gateway settings user password.
:vartype password: str
"""
_validation = {
'is_credential_enabled': {'readonly': True},
'user_name': {'readonly': True},
'password': {'readonly': True},
}
_attribute_map = {
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'},
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
}
def __init__(self, **kwargs) -> None:
super(GatewaySettings, self).__init__(**kwargs)
self.is_credential_enabled = None
self.user_name = None
self.password = None

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class HardwareProfile(Model):
"""The hardware profile.
:param vm_size: The size of the VM
:type vm_size: str
"""
_attribute_map = {
'vm_size': {'key': 'vmSize', 'type': 'str'},
}
def __init__(self, **kwargs):
super(HardwareProfile, self).__init__(**kwargs)
self.vm_size = kwargs.get('vm_size', None)

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class HardwareProfile(Model):
"""The hardware profile.
:param vm_size: The size of the VM
:type vm_size: str
"""
_attribute_map = {
'vm_size': {'key': 'vmSize', 'type': 'str'},
}
def __init__(self, *, vm_size: str=None, **kwargs) -> None:
super(HardwareProfile, self).__init__(**kwargs)
self.vm_size = vm_size

Просмотреть файл

@ -1,36 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class LinuxOperatingSystemProfile(Model):
"""The ssh username, password, and ssh public key.
:param username: The username.
:type username: str
:param password: The password.
:type password: str
:param ssh_profile: The SSH profile.
:type ssh_profile: ~azure.mgmt.hdinsight.models.SshProfile
"""
_attribute_map = {
'username': {'key': 'username', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'ssh_profile': {'key': 'sshProfile', 'type': 'SshProfile'},
}
def __init__(self, **kwargs):
super(LinuxOperatingSystemProfile, self).__init__(**kwargs)
self.username = kwargs.get('username', None)
self.password = kwargs.get('password', None)
self.ssh_profile = kwargs.get('ssh_profile', None)

Просмотреть файл

@ -1,36 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class LinuxOperatingSystemProfile(Model):
"""The ssh username, password, and ssh public key.
:param username: The username.
:type username: str
:param password: The password.
:type password: str
:param ssh_profile: The SSH profile.
:type ssh_profile: ~azure.mgmt.hdinsight.models.SshProfile
"""
_attribute_map = {
'username': {'key': 'username', 'type': 'str'},
'password': {'key': 'password', 'type': 'str'},
'ssh_profile': {'key': 'sshProfile', 'type': 'SshProfile'},
}
def __init__(self, *, username: str=None, password: str=None, ssh_profile=None, **kwargs) -> None:
super(LinuxOperatingSystemProfile, self).__init__(**kwargs)
self.username = username
self.password = password
self.ssh_profile = ssh_profile

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class LocalizedName(Model):
"""The details about the localizable name of a type of usage.
:param value: The name of the used resource.
:type value: str
:param localized_value: The localized name of the used resource.
:type localized_value: str
"""
_attribute_map = {
'value': {'key': 'value', 'type': 'str'},
'localized_value': {'key': 'localizedValue', 'type': 'str'},
}
def __init__(self, **kwargs):
super(LocalizedName, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.localized_value = kwargs.get('localized_value', None)

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class LocalizedName(Model):
"""The details about the localizable name of a type of usage.
:param value: The name of the used resource.
:type value: str
:param localized_value: The localized name of the used resource.
:type localized_value: str
"""
_attribute_map = {
'value': {'key': 'value', 'type': 'str'},
'localized_value': {'key': 'localizedValue', 'type': 'str'},
}
def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None:
super(LocalizedName, self).__init__(**kwargs)
self.value = value
self.localized_value = localized_value

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Operation(Model):
"""The HDInsight REST API operation.
:param name: The operation name: {provider}/{resource}/{operation}
:type name: str
:param display: The object that represents the operation.
:type display: ~azure.mgmt.hdinsight.models.OperationDisplay
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
}
def __init__(self, **kwargs):
super(Operation, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.display = kwargs.get('display', None)

Просмотреть файл

@ -1,37 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class OperationDisplay(Model):
"""The object that represents the operation.
:param provider: The service provider: Microsoft.HDInsight
:type provider: str
:param resource: The resource on which the operation is performed:
Cluster, Applications, etc.
:type resource: str
:param operation: The operation type: read, write, delete, etc.
:type operation: str
"""
_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
}
def __init__(self, **kwargs):
super(OperationDisplay, self).__init__(**kwargs)
self.provider = kwargs.get('provider', None)
self.resource = kwargs.get('resource', None)
self.operation = kwargs.get('operation', None)

Просмотреть файл

@ -1,37 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class OperationDisplay(Model):
"""The object that represents the operation.
:param provider: The service provider: Microsoft.HDInsight
:type provider: str
:param resource: The resource on which the operation is performed:
Cluster, Applications, etc.
:type resource: str
:param operation: The operation type: read, write, delete, etc.
:type operation: str
"""
_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
}
def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, **kwargs) -> None:
super(OperationDisplay, self).__init__(**kwargs)
self.provider = provider
self.resource = resource
self.operation = operation

Просмотреть файл

@ -1,27 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.paging import Paged
class OperationPaged(Paged):
"""
A paging container for iterating over a list of :class:`Operation <azure.mgmt.hdinsight.models.Operation>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[Operation]'}
}
def __init__(self, *args, **kwargs):
super(OperationPaged, self).__init__(*args, **kwargs)

Просмотреть файл

@ -1,32 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Operation(Model):
"""The HDInsight REST API operation.
:param name: The operation name: {provider}/{resource}/{operation}
:type name: str
:param display: The object that represents the operation.
:type display: ~azure.mgmt.hdinsight.models.OperationDisplay
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
}
def __init__(self, *, name: str=None, display=None, **kwargs) -> None:
super(Operation, self).__init__(**kwargs)
self.name = name
self.display = display

Просмотреть файл

@ -1,33 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class OperationResource(Model):
"""The azure async operation response.
:param status: The async operation state. Possible values include:
'InProgress', 'Succeeded', 'Failed'
:type status: str or ~azure.mgmt.hdinsight.models.AsyncOperationState
:param error: The operation error information.
:type error: ~azure.mgmt.hdinsight.models.Errors
"""
_attribute_map = {
'status': {'key': 'status', 'type': 'AsyncOperationState'},
'error': {'key': 'error', 'type': 'Errors'},
}
def __init__(self, **kwargs):
super(OperationResource, self).__init__(**kwargs)
self.status = kwargs.get('status', None)
self.error = kwargs.get('error', None)

Просмотреть файл

@ -1,33 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class OperationResource(Model):
"""The azure async operation response.
:param status: The async operation state. Possible values include:
'InProgress', 'Succeeded', 'Failed'
:type status: str or ~azure.mgmt.hdinsight.models.AsyncOperationState
:param error: The operation error information.
:type error: ~azure.mgmt.hdinsight.models.Errors
"""
_attribute_map = {
'status': {'key': 'status', 'type': 'AsyncOperationState'},
'error': {'key': 'error', 'type': 'Errors'},
}
def __init__(self, *, status=None, error=None, **kwargs) -> None:
super(OperationResource, self).__init__(**kwargs)
self.status = status
self.error = error

Просмотреть файл

@ -1,29 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class OsProfile(Model):
"""The Linux operation systems profile.
:param linux_operating_system_profile: The Linux OS profile.
:type linux_operating_system_profile:
~azure.mgmt.hdinsight.models.LinuxOperatingSystemProfile
"""
_attribute_map = {
'linux_operating_system_profile': {'key': 'linuxOperatingSystemProfile', 'type': 'LinuxOperatingSystemProfile'},
}
def __init__(self, **kwargs):
super(OsProfile, self).__init__(**kwargs)
self.linux_operating_system_profile = kwargs.get('linux_operating_system_profile', None)

Просмотреть файл

@ -1,29 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class OsProfile(Model):
"""The Linux operation systems profile.
:param linux_operating_system_profile: The Linux OS profile.
:type linux_operating_system_profile:
~azure.mgmt.hdinsight.models.LinuxOperatingSystemProfile
"""
_attribute_map = {
'linux_operating_system_profile': {'key': 'linuxOperatingSystemProfile', 'type': 'LinuxOperatingSystemProfile'},
}
def __init__(self, *, linux_operating_system_profile=None, **kwargs) -> None:
super(OsProfile, self).__init__(**kwargs)
self.linux_operating_system_profile = linux_operating_system_profile

Просмотреть файл

@ -1,43 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .resource import Resource
class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have
everything other than required location and tags.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ProxyResource, self).__init__(**kwargs)

Просмотреть файл

@ -1,43 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .resource_py3 import Resource
class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have
everything other than required location and tags.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}
def __init__(self, **kwargs) -> None:
super(ProxyResource, self).__init__(**kwargs)

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class QuotaInfo(Model):
"""The quota properties for the cluster.
:param cores_used: The cores used by the cluster.
:type cores_used: int
"""
_attribute_map = {
'cores_used': {'key': 'coresUsed', 'type': 'int'},
}
def __init__(self, **kwargs):
super(QuotaInfo, self).__init__(**kwargs)
self.cores_used = kwargs.get('cores_used', None)

Просмотреть файл

@ -1,28 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class QuotaInfo(Model):
"""The quota properties for the cluster.
:param cores_used: The cores used by the cluster.
:type cores_used: int
"""
_attribute_map = {
'cores_used': {'key': 'coresUsed', 'type': 'int'},
}
def __init__(self, *, cores_used: int=None, **kwargs) -> None:
super(QuotaInfo, self).__init__(**kwargs)
self.cores_used = cores_used

Просмотреть файл

@ -1,45 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Resource(Model):
"""The core properties of ARM resources.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}
def __init__(self, **kwargs):
super(Resource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None

Просмотреть файл

@ -1,45 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Resource(Model):
"""The core properties of ARM resources.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Fully qualified resource Id for the resource.
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource.
:vartype type: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}
def __init__(self, **kwargs) -> None:
super(Resource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None

Просмотреть файл

@ -1,58 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Role(Model):
"""Describes a role on the cluster.
:param name: The name of the role.
:type name: str
:param min_instance_count: The minimum instance count of the cluster.
:type min_instance_count: int
:param target_instance_count: The instance count of the cluster.
:type target_instance_count: int
:param hardware_profile: The hardware profile.
:type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile
:param os_profile: The operating system profile.
:type os_profile: ~azure.mgmt.hdinsight.models.OsProfile
:param virtual_network_profile: The virtual network profile.
:type virtual_network_profile:
~azure.mgmt.hdinsight.models.VirtualNetworkProfile
:param data_disks_groups: The data disks groups for the role.
:type data_disks_groups:
list[~azure.mgmt.hdinsight.models.DataDisksGroups]
:param script_actions: The list of script actions on the role.
:type script_actions: list[~azure.mgmt.hdinsight.models.ScriptAction]
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'},
'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'},
'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'},
'os_profile': {'key': 'osProfile', 'type': 'OsProfile'},
'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'},
'data_disks_groups': {'key': 'dataDisksGroups', 'type': '[DataDisksGroups]'},
'script_actions': {'key': 'scriptActions', 'type': '[ScriptAction]'},
}
def __init__(self, **kwargs):
super(Role, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.min_instance_count = kwargs.get('min_instance_count', None)
self.target_instance_count = kwargs.get('target_instance_count', None)
self.hardware_profile = kwargs.get('hardware_profile', None)
self.os_profile = kwargs.get('os_profile', None)
self.virtual_network_profile = kwargs.get('virtual_network_profile', None)
self.data_disks_groups = kwargs.get('data_disks_groups', None)
self.script_actions = kwargs.get('script_actions', None)

Просмотреть файл

@ -1,58 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class Role(Model):
"""Describes a role on the cluster.
:param name: The name of the role.
:type name: str
:param min_instance_count: The minimum instance count of the cluster.
:type min_instance_count: int
:param target_instance_count: The instance count of the cluster.
:type target_instance_count: int
:param hardware_profile: The hardware profile.
:type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile
:param os_profile: The operating system profile.
:type os_profile: ~azure.mgmt.hdinsight.models.OsProfile
:param virtual_network_profile: The virtual network profile.
:type virtual_network_profile:
~azure.mgmt.hdinsight.models.VirtualNetworkProfile
:param data_disks_groups: The data disks groups for the role.
:type data_disks_groups:
list[~azure.mgmt.hdinsight.models.DataDisksGroups]
:param script_actions: The list of script actions on the role.
:type script_actions: list[~azure.mgmt.hdinsight.models.ScriptAction]
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'},
'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'},
'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'},
'os_profile': {'key': 'osProfile', 'type': 'OsProfile'},
'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'},
'data_disks_groups': {'key': 'dataDisksGroups', 'type': '[DataDisksGroups]'},
'script_actions': {'key': 'scriptActions', 'type': '[ScriptAction]'},
}
def __init__(self, *, name: str=None, min_instance_count: int=None, target_instance_count: int=None, hardware_profile=None, os_profile=None, virtual_network_profile=None, data_disks_groups=None, script_actions=None, **kwargs) -> None:
super(Role, self).__init__(**kwargs)
self.name = name
self.min_instance_count = min_instance_count
self.target_instance_count = target_instance_count
self.hardware_profile = hardware_profile
self.os_profile = os_profile
self.virtual_network_profile = virtual_network_profile
self.data_disks_groups = data_disks_groups
self.script_actions = script_actions

Просмотреть файл

@ -1,56 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class RuntimeScriptAction(Model):
"""Describes a script action on a running cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the script action.
:type name: str
:param uri: Required. The URI to the script.
:type uri: str
:param parameters: The parameters for the script
:type parameters: str
:param roles: Required. The list of roles where script will be executed.
:type roles: list[str]
:ivar application_name: The application name of the script action, if any.
:vartype application_name: str
"""
_validation = {
'name': {'required': True},
'uri': {'required': True},
'roles': {'required': True},
'application_name': {'readonly': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': 'str'},
'roles': {'key': 'roles', 'type': '[str]'},
'application_name': {'key': 'applicationName', 'type': 'str'},
}
def __init__(self, **kwargs):
super(RuntimeScriptAction, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.uri = kwargs.get('uri', None)
self.parameters = kwargs.get('parameters', None)
self.roles = kwargs.get('roles', None)
self.application_name = None

Просмотреть файл

@ -1,87 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .runtime_script_action import RuntimeScriptAction
class RuntimeScriptActionDetail(RuntimeScriptAction):
"""The execution details of a script action.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the script action.
:type name: str
:param uri: Required. The URI to the script.
:type uri: str
:param parameters: The parameters for the script
:type parameters: str
:param roles: Required. The list of roles where script will be executed.
:type roles: list[str]
:ivar application_name: The application name of the script action, if any.
:vartype application_name: str
:ivar script_execution_id: The execution id of the script action.
:vartype script_execution_id: long
:ivar start_time: The start time of script action execution.
:vartype start_time: str
:ivar end_time: The end time of script action execution.
:vartype end_time: str
:ivar status: The current execution status of the script action.
:vartype status: str
:ivar operation: The reason why the script action was executed.
:vartype operation: str
:ivar execution_summary: The summary of script action execution result.
:vartype execution_summary:
list[~azure.mgmt.hdinsight.models.ScriptActionExecutionSummary]
:ivar debug_information: The script action execution debug information.
:vartype debug_information: str
"""
_validation = {
'name': {'required': True},
'uri': {'required': True},
'roles': {'required': True},
'application_name': {'readonly': True},
'script_execution_id': {'readonly': True},
'start_time': {'readonly': True},
'end_time': {'readonly': True},
'status': {'readonly': True},
'operation': {'readonly': True},
'execution_summary': {'readonly': True},
'debug_information': {'readonly': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': 'str'},
'roles': {'key': 'roles', 'type': '[str]'},
'application_name': {'key': 'applicationName', 'type': 'str'},
'script_execution_id': {'key': 'scriptExecutionId', 'type': 'long'},
'start_time': {'key': 'startTime', 'type': 'str'},
'end_time': {'key': 'endTime', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'execution_summary': {'key': 'executionSummary', 'type': '[ScriptActionExecutionSummary]'},
'debug_information': {'key': 'debugInformation', 'type': 'str'},
}
def __init__(self, **kwargs):
super(RuntimeScriptActionDetail, self).__init__(**kwargs)
self.script_execution_id = None
self.start_time = None
self.end_time = None
self.status = None
self.operation = None
self.execution_summary = None
self.debug_information = None

Просмотреть файл

@ -1,27 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.paging import Paged
class RuntimeScriptActionDetailPaged(Paged):
"""
A paging container for iterating over a list of :class:`RuntimeScriptActionDetail <azure.mgmt.hdinsight.models.RuntimeScriptActionDetail>` object
"""
_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[RuntimeScriptActionDetail]'}
}
def __init__(self, *args, **kwargs):
super(RuntimeScriptActionDetailPaged, self).__init__(*args, **kwargs)

Просмотреть файл

@ -1,87 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .runtime_script_action_py3 import RuntimeScriptAction
class RuntimeScriptActionDetail(RuntimeScriptAction):
"""The execution details of a script action.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the script action.
:type name: str
:param uri: Required. The URI to the script.
:type uri: str
:param parameters: The parameters for the script
:type parameters: str
:param roles: Required. The list of roles where script will be executed.
:type roles: list[str]
:ivar application_name: The application name of the script action, if any.
:vartype application_name: str
:ivar script_execution_id: The execution id of the script action.
:vartype script_execution_id: long
:ivar start_time: The start time of script action execution.
:vartype start_time: str
:ivar end_time: The end time of script action execution.
:vartype end_time: str
:ivar status: The current execution status of the script action.
:vartype status: str
:ivar operation: The reason why the script action was executed.
:vartype operation: str
:ivar execution_summary: The summary of script action execution result.
:vartype execution_summary:
list[~azure.mgmt.hdinsight.models.ScriptActionExecutionSummary]
:ivar debug_information: The script action execution debug information.
:vartype debug_information: str
"""
_validation = {
'name': {'required': True},
'uri': {'required': True},
'roles': {'required': True},
'application_name': {'readonly': True},
'script_execution_id': {'readonly': True},
'start_time': {'readonly': True},
'end_time': {'readonly': True},
'status': {'readonly': True},
'operation': {'readonly': True},
'execution_summary': {'readonly': True},
'debug_information': {'readonly': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': 'str'},
'roles': {'key': 'roles', 'type': '[str]'},
'application_name': {'key': 'applicationName', 'type': 'str'},
'script_execution_id': {'key': 'scriptExecutionId', 'type': 'long'},
'start_time': {'key': 'startTime', 'type': 'str'},
'end_time': {'key': 'endTime', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'execution_summary': {'key': 'executionSummary', 'type': '[ScriptActionExecutionSummary]'},
'debug_information': {'key': 'debugInformation', 'type': 'str'},
}
def __init__(self, *, name: str, uri: str, roles, parameters: str=None, **kwargs) -> None:
super(RuntimeScriptActionDetail, self).__init__(name=name, uri=uri, parameters=parameters, roles=roles, **kwargs)
self.script_execution_id = None
self.start_time = None
self.end_time = None
self.status = None
self.operation = None
self.execution_summary = None
self.debug_information = None

Просмотреть файл

@ -1,56 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class RuntimeScriptAction(Model):
"""Describes a script action on a running cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the script action.
:type name: str
:param uri: Required. The URI to the script.
:type uri: str
:param parameters: The parameters for the script
:type parameters: str
:param roles: Required. The list of roles where script will be executed.
:type roles: list[str]
:ivar application_name: The application name of the script action, if any.
:vartype application_name: str
"""
_validation = {
'name': {'required': True},
'uri': {'required': True},
'roles': {'required': True},
'application_name': {'readonly': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': 'str'},
'roles': {'key': 'roles', 'type': '[str]'},
'application_name': {'key': 'applicationName', 'type': 'str'},
}
def __init__(self, *, name: str, uri: str, roles, parameters: str=None, **kwargs) -> None:
super(RuntimeScriptAction, self).__init__(**kwargs)
self.name = name
self.uri = uri
self.parameters = parameters
self.roles = roles
self.application_name = None

Просмотреть файл

@ -1,44 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ScriptAction(Model):
"""Describes a script action on role on the cluster.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the script action.
:type name: str
:param uri: Required. The URI to the script.
:type uri: str
:param parameters: Required. The parameters for the script provided.
:type parameters: str
"""
_validation = {
'name': {'required': True},
'uri': {'required': True},
'parameters': {'required': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ScriptAction, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.uri = kwargs.get('uri', None)
self.parameters = kwargs.get('parameters', None)

Просмотреть файл

@ -1,41 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ScriptActionExecutionSummary(Model):
"""The execution summary of a script action.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar status: The status of script action execution.
:vartype status: str
:ivar instance_count: The instance count for a given script action
execution status.
:vartype instance_count: int
"""
_validation = {
'status': {'readonly': True},
'instance_count': {'readonly': True},
}
_attribute_map = {
'status': {'key': 'status', 'type': 'str'},
'instance_count': {'key': 'instanceCount', 'type': 'int'},
}
def __init__(self, **kwargs):
super(ScriptActionExecutionSummary, self).__init__(**kwargs)
self.status = None
self.instance_count = None

Просмотреть файл

@ -1,41 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ScriptActionExecutionSummary(Model):
"""The execution summary of a script action.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar status: The status of script action execution.
:vartype status: str
:ivar instance_count: The instance count for a given script action
execution status.
:vartype instance_count: int
"""
_validation = {
'status': {'readonly': True},
'instance_count': {'readonly': True},
}
_attribute_map = {
'status': {'key': 'status', 'type': 'str'},
'instance_count': {'key': 'instanceCount', 'type': 'int'},
}
def __init__(self, **kwargs) -> None:
super(ScriptActionExecutionSummary, self).__init__(**kwargs)
self.status = None
self.instance_count = None

Просмотреть файл

@ -1,44 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ScriptActionPersistedGetResponseSpec(Model):
"""The persisted script action for cluster.
:param name: The name of script action.
:type name: str
:param uri: The URI to the script.
:type uri: str
:param parameters: The parameters for the script provided.
:type parameters: str
:param roles: The list of roles where script will be executed.
:type roles: list[str]
:param application_name: The application name for the script action.
:type application_name: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': 'str'},
'roles': {'key': 'roles', 'type': '[str]'},
'application_name': {'key': 'applicationName', 'type': 'str'},
}
def __init__(self, **kwargs):
super(ScriptActionPersistedGetResponseSpec, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.uri = kwargs.get('uri', None)
self.parameters = kwargs.get('parameters', None)
self.roles = kwargs.get('roles', None)
self.application_name = kwargs.get('application_name', None)

Просмотреть файл

@ -1,44 +0,0 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class ScriptActionPersistedGetResponseSpec(Model):
"""The persisted script action for cluster.
:param name: The name of script action.
:type name: str
:param uri: The URI to the script.
:type uri: str
:param parameters: The parameters for the script provided.
:type parameters: str
:param roles: The list of roles where script will be executed.
:type roles: list[str]
:param application_name: The application name for the script action.
:type application_name: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': 'str'},
'roles': {'key': 'roles', 'type': '[str]'},
'application_name': {'key': 'applicationName', 'type': 'str'},
}
def __init__(self, *, name: str=None, uri: str=None, parameters: str=None, roles=None, application_name: str=None, **kwargs) -> None:
super(ScriptActionPersistedGetResponseSpec, self).__init__(**kwargs)
self.name = name
self.uri = uri
self.parameters = parameters
self.roles = roles
self.application_name = application_name

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше