Skip to content

Commit a39feb8

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] hdinsight/resource-manager (Azure#4762)
* [AutoPR hdinsight/resource-manager] [HDInsight] - Update configuration related APIs (Azure#4683) * Generated from 96aaae97e4596b202ed360586ae13046561cde2d [HDInsight] - Update configurations * Packaging update of azure-mgmt-hdinsight * Generated from 9ed06e022ff142079af919f5649d16f4d39fbf33 Add description for gateway settings and update gateway settings * Packaging update of azure-mgmt-hdinsight * updated change log and versioning
1 parent d8cb0da commit a39feb8

14 files changed

+459
-23
lines changed

azure-mgmt-hdinsight/HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
Release History
44
===============
55

6+
0.3.0 (2019-04-08)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Added operation ConfigurationsOperations.list
12+
- Added operation ClustersOperations.get_gateway_settings
13+
- Added operation ClustersOperations.update_gateway_settings
14+
615
0.2.1 (2019-01-28)
716
++++++++++++++++++
817

azure-mgmt-hdinsight/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
recursive-include tests *.py *.yaml
12
include *.rst
23
include azure/__init__.py
34
include azure/mgmt/__init__.py

azure-mgmt-hdinsight/README.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
1414
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
1515

1616

17-
Compatibility
18-
=============
19-
20-
**IMPORTANT**: If you have an earlier version of the azure package
21-
(version < 1.0), you should uninstall it before installing this package.
22-
23-
You can check the version using pip:
24-
25-
.. code:: shell
26-
27-
pip freeze
28-
29-
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
30-
31-
.. code:: shell
32-
33-
pip uninstall azure
34-
35-
3617
Usage
3718
=====
3819

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
from .cluster_list_runtime_script_action_detail_result_py3 import ClusterListRuntimeScriptActionDetailResult
4444
from .cluster_resize_parameters_py3 import ClusterResizeParameters
4545
from .cluster_disk_encryption_parameters_py3 import ClusterDiskEncryptionParameters
46+
from .update_gateway_settings_parameters_py3 import UpdateGatewaySettingsParameters
47+
from .gateway_settings_py3 import GatewaySettings
4648
from .operation_resource_py3 import OperationResource
4749
from .resource_py3 import Resource
4850
from .tracked_resource_py3 import TrackedResource
@@ -55,6 +57,7 @@
5557
from .localized_name_py3 import LocalizedName
5658
from .usage_py3 import Usage
5759
from .usages_list_result_py3 import UsagesListResult
60+
from .cluster_configurations_py3 import ClusterConfigurations
5861
from .extension_py3 import Extension
5962
from .cluster_monitoring_response_py3 import ClusterMonitoringResponse
6063
from .cluster_monitoring_request_py3 import ClusterMonitoringRequest
@@ -95,6 +98,8 @@
9598
from .cluster_list_runtime_script_action_detail_result import ClusterListRuntimeScriptActionDetailResult
9699
from .cluster_resize_parameters import ClusterResizeParameters
97100
from .cluster_disk_encryption_parameters import ClusterDiskEncryptionParameters
101+
from .update_gateway_settings_parameters import UpdateGatewaySettingsParameters
102+
from .gateway_settings import GatewaySettings
98103
from .operation_resource import OperationResource
99104
from .resource import Resource
100105
from .tracked_resource import TrackedResource
@@ -107,6 +112,7 @@
107112
from .localized_name import LocalizedName
108113
from .usage import Usage
109114
from .usages_list_result import UsagesListResult
115+
from .cluster_configurations import ClusterConfigurations
110116
from .extension import Extension
111117
from .cluster_monitoring_response import ClusterMonitoringResponse
112118
from .cluster_monitoring_request import ClusterMonitoringRequest
@@ -161,6 +167,8 @@
161167
'ClusterListRuntimeScriptActionDetailResult',
162168
'ClusterResizeParameters',
163169
'ClusterDiskEncryptionParameters',
170+
'UpdateGatewaySettingsParameters',
171+
'GatewaySettings',
164172
'OperationResource',
165173
'Resource',
166174
'TrackedResource',
@@ -173,6 +181,7 @@
173181
'LocalizedName',
174182
'Usage',
175183
'UsagesListResult',
184+
'ClusterConfigurations',
176185
'Extension',
177186
'ClusterMonitoringResponse',
178187
'ClusterMonitoringRequest',
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ClusterConfigurations(Model):
16+
"""The configuration object for the specified cluster.
17+
18+
:param configurations: The configuration object for the specified
19+
configuration for the specified cluster.
20+
:type configurations: dict[str, dict[str, str]]
21+
"""
22+
23+
_attribute_map = {
24+
'configurations': {'key': 'configurations', 'type': '{{str}}'},
25+
}
26+
27+
def __init__(self, **kwargs):
28+
super(ClusterConfigurations, self).__init__(**kwargs)
29+
self.configurations = kwargs.get('configurations', None)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ClusterConfigurations(Model):
16+
"""The configuration object for the specified cluster.
17+
18+
:param configurations: The configuration object for the specified
19+
configuration for the specified cluster.
20+
:type configurations: dict[str, dict[str, str]]
21+
"""
22+
23+
_attribute_map = {
24+
'configurations': {'key': 'configurations', 'type': '{{str}}'},
25+
}
26+
27+
def __init__(self, *, configurations=None, **kwargs) -> None:
28+
super(ClusterConfigurations, self).__init__(**kwargs)
29+
self.configurations = configurations
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class GatewaySettings(Model):
16+
"""Gateway settings.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar is_credential_enabled: Indicates whether or not the gateway settings
22+
based authorization is enabled.
23+
:vartype is_credential_enabled: str
24+
:ivar user_name: The gateway settings user name.
25+
:vartype user_name: str
26+
:ivar password: The gateway settings user password.
27+
:vartype password: str
28+
"""
29+
30+
_validation = {
31+
'is_credential_enabled': {'readonly': True},
32+
'user_name': {'readonly': True},
33+
'password': {'readonly': True},
34+
}
35+
36+
_attribute_map = {
37+
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'},
38+
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
39+
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
40+
}
41+
42+
def __init__(self, **kwargs):
43+
super(GatewaySettings, self).__init__(**kwargs)
44+
self.is_credential_enabled = None
45+
self.user_name = None
46+
self.password = None
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class GatewaySettings(Model):
16+
"""Gateway settings.
17+
18+
Variables are only populated by the server, and will be ignored when
19+
sending a request.
20+
21+
:ivar is_credential_enabled: Indicates whether or not the gateway settings
22+
based authorization is enabled.
23+
:vartype is_credential_enabled: str
24+
:ivar user_name: The gateway settings user name.
25+
:vartype user_name: str
26+
:ivar password: The gateway settings user password.
27+
:vartype password: str
28+
"""
29+
30+
_validation = {
31+
'is_credential_enabled': {'readonly': True},
32+
'user_name': {'readonly': True},
33+
'password': {'readonly': True},
34+
}
35+
36+
_attribute_map = {
37+
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'str'},
38+
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
39+
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
40+
}
41+
42+
def __init__(self, **kwargs) -> None:
43+
super(GatewaySettings, self).__init__(**kwargs)
44+
self.is_credential_enabled = None
45+
self.user_name = None
46+
self.password = None
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class UpdateGatewaySettingsParameters(Model):
16+
"""The update gateway settings request parameters.
17+
18+
:param is_credential_enabled: Indicates whether or not the gateway
19+
settings based authorization is enabled. Default value: True .
20+
:type is_credential_enabled: bool
21+
:param user_name: The gateway settings user name.
22+
:type user_name: str
23+
:param password: The gateway settings user password.
24+
:type password: str
25+
"""
26+
27+
_attribute_map = {
28+
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'},
29+
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
30+
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
31+
}
32+
33+
def __init__(self, **kwargs):
34+
super(UpdateGatewaySettingsParameters, self).__init__(**kwargs)
35+
self.is_credential_enabled = kwargs.get('is_credential_enabled', True)
36+
self.user_name = kwargs.get('user_name', None)
37+
self.password = kwargs.get('password', None)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class UpdateGatewaySettingsParameters(Model):
16+
"""The update gateway settings request parameters.
17+
18+
:param is_credential_enabled: Indicates whether or not the gateway
19+
settings based authorization is enabled. Default value: True .
20+
:type is_credential_enabled: bool
21+
:param user_name: The gateway settings user name.
22+
:type user_name: str
23+
:param password: The gateway settings user password.
24+
:type password: str
25+
"""
26+
27+
_attribute_map = {
28+
'is_credential_enabled': {'key': 'restAuthCredential\\.isEnabled', 'type': 'bool'},
29+
'user_name': {'key': 'restAuthCredential\\.username', 'type': 'str'},
30+
'password': {'key': 'restAuthCredential\\.password', 'type': 'str'},
31+
}
32+
33+
def __init__(self, *, is_credential_enabled: bool=True, user_name: str=None, password: str=None, **kwargs) -> None:
34+
super(UpdateGatewaySettingsParameters, self).__init__(**kwargs)
35+
self.is_credential_enabled = is_credential_enabled
36+
self.user_name = user_name
37+
self.password = password

0 commit comments

Comments
 (0)