Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azure-mgmt-hdinsight/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
19 changes: 0 additions & 19 deletions azure-mgmt-hdinsight/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
9 changes: 9 additions & 0 deletions azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
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
Expand All @@ -55,6 +57,7 @@
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
Expand Down Expand Up @@ -95,6 +98,8 @@
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
Expand All @@ -107,6 +112,7 @@
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
Expand Down Expand Up @@ -161,6 +167,8 @@
'ClusterListRuntimeScriptActionDetailResult',
'ClusterResizeParameters',
'ClusterDiskEncryptionParameters',
'UpdateGatewaySettingsParameters',
'GatewaySettings',
'OperationResource',
'Resource',
'TrackedResource',
Expand All @@ -173,6 +181,7 @@
'LocalizedName',
'Usage',
'UsagesListResult',
'ClusterConfigurations',
'Extension',
'ClusterMonitoringResponse',
'ClusterMonitoringRequest',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 UpdateGatewaySettingsParameters(Model):
"""The update gateway settings request parameters.

:param is_credential_enabled: Indicates whether or not the gateway
settings based authorization is enabled. Default value: True .
:type is_credential_enabled: bool
:param user_name: The gateway settings user name.
:type user_name: str
:param password: The gateway settings user password.
:type password: str
"""

_attribute_map = {
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'},
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
}

def __init__(self, **kwargs):
super(UpdateGatewaySettingsParameters, self).__init__(**kwargs)
self.is_credential_enabled = kwargs.get('is_credential_enabled', True)
self.user_name = kwargs.get('user_name', None)
self.password = kwargs.get('password', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 UpdateGatewaySettingsParameters(Model):
"""The update gateway settings request parameters.

:param is_credential_enabled: Indicates whether or not the gateway
settings based authorization is enabled. Default value: True .
:type is_credential_enabled: bool
:param user_name: The gateway settings user name.
:type user_name: str
:param password: The gateway settings user password.
:type password: str
"""

_attribute_map = {
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'},
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
}

def __init__(self, *, is_credential_enabled: bool=True, user_name: str=None, password: str=None, **kwargs) -> None:
super(UpdateGatewaySettingsParameters, self).__init__(**kwargs)
self.is_credential_enabled = is_credential_enabled
self.user_name = user_name
self.password = password
Loading