azure_mgmt_hdinsight 0.17.2 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +229 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +118 -16
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb +63 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb +72 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb +70 -0
- data/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight.rb +32 -29
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb +229 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/configurations.rb +109 -7
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/hdinsight_management_client.rb +1 -1
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/cluster_configurations.rb +63 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/gateway_settings.rb +72 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/update_gateway_settings_parameters.rb +70 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight.rb +29 -26
- data/lib/profiles/latest/modules/hdinsight_profile_module.rb +94 -82
- data/lib/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f20c7bb3ea07db195fd2ebf32ffa4e178ce0e4be
|
4
|
+
data.tar.gz: e409959f2c0dc22ec51efd10eceba69ba544a50b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a834d19b42b7380cb8dd87622afa0e388a0d999f212f476031b5f69af38ea6989f7984aa530a6ad8b3e2fd24578040f1d4d566852311b691c1bf19dd024c41ea
|
7
|
+
data.tar.gz: e006f1db7d8fafbd78e00656393d0f7e758ba60bb2bb4c1773afe459ee03f678b7edcc938a9686805f68fad2b00003ddf81921537c2bc2b7c5b46b5b325b7302
|
@@ -556,6 +556,140 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
556
556
|
promise
|
557
557
|
end
|
558
558
|
|
559
|
+
#
|
560
|
+
# Gets the gateway settings for the specified cluster.
|
561
|
+
#
|
562
|
+
# @param resource_group_name [String] The name of the resource group.
|
563
|
+
# @param cluster_name [String] The name of the cluster.
|
564
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
565
|
+
# will be added to the HTTP request.
|
566
|
+
#
|
567
|
+
# @return [GatewaySettings] operation results.
|
568
|
+
#
|
569
|
+
def get_gateway_settings(resource_group_name, cluster_name, custom_headers:nil)
|
570
|
+
response = get_gateway_settings_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
|
571
|
+
response.body unless response.nil?
|
572
|
+
end
|
573
|
+
|
574
|
+
#
|
575
|
+
# Gets the gateway settings for the specified cluster.
|
576
|
+
#
|
577
|
+
# @param resource_group_name [String] The name of the resource group.
|
578
|
+
# @param cluster_name [String] The name of the cluster.
|
579
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
580
|
+
# will be added to the HTTP request.
|
581
|
+
#
|
582
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
583
|
+
#
|
584
|
+
def get_gateway_settings_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
|
585
|
+
get_gateway_settings_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
|
586
|
+
end
|
587
|
+
|
588
|
+
#
|
589
|
+
# Gets the gateway settings for the specified cluster.
|
590
|
+
#
|
591
|
+
# @param resource_group_name [String] The name of the resource group.
|
592
|
+
# @param cluster_name [String] The name of the cluster.
|
593
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
594
|
+
# to the HTTP request.
|
595
|
+
#
|
596
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
597
|
+
#
|
598
|
+
def get_gateway_settings_async(resource_group_name, cluster_name, custom_headers:nil)
|
599
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
600
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
601
|
+
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
602
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
603
|
+
|
604
|
+
|
605
|
+
request_headers = {}
|
606
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
607
|
+
|
608
|
+
# Set Headers
|
609
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
610
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
611
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings'
|
612
|
+
|
613
|
+
request_url = @base_url || @client.base_url
|
614
|
+
|
615
|
+
options = {
|
616
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
617
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name},
|
618
|
+
query_params: {'api-version' => @client.api_version},
|
619
|
+
headers: request_headers.merge(custom_headers || {}),
|
620
|
+
base_url: request_url
|
621
|
+
}
|
622
|
+
promise = @client.make_request_async(:post, path_template, options)
|
623
|
+
|
624
|
+
promise = promise.then do |result|
|
625
|
+
http_response = result.response
|
626
|
+
status_code = http_response.status
|
627
|
+
response_content = http_response.body
|
628
|
+
unless status_code == 200
|
629
|
+
error_model = JSON.load(response_content)
|
630
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
631
|
+
end
|
632
|
+
|
633
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
634
|
+
# Deserialize Response
|
635
|
+
if status_code == 200
|
636
|
+
begin
|
637
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
638
|
+
result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::GatewaySettings.mapper()
|
639
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
640
|
+
rescue Exception => e
|
641
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
645
|
+
result
|
646
|
+
end
|
647
|
+
|
648
|
+
promise.execute
|
649
|
+
end
|
650
|
+
|
651
|
+
#
|
652
|
+
# Configures the gateway settings on the specified cluster.
|
653
|
+
#
|
654
|
+
# @param resource_group_name [String] The name of the resource group.
|
655
|
+
# @param cluster_name [String] The name of the cluster.
|
656
|
+
# @param parameters [UpdateGatewaySettingsParameters] The cluster
|
657
|
+
# configurations.
|
658
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
659
|
+
# will be added to the HTTP request.
|
660
|
+
#
|
661
|
+
def update_gateway_settings(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
662
|
+
response = update_gateway_settings_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
|
663
|
+
nil
|
664
|
+
end
|
665
|
+
|
666
|
+
#
|
667
|
+
# @param resource_group_name [String] The name of the resource group.
|
668
|
+
# @param cluster_name [String] The name of the cluster.
|
669
|
+
# @param parameters [UpdateGatewaySettingsParameters] The cluster
|
670
|
+
# configurations.
|
671
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
672
|
+
# will be added to the HTTP request.
|
673
|
+
#
|
674
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
675
|
+
# response.
|
676
|
+
#
|
677
|
+
def update_gateway_settings_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
678
|
+
# Send request
|
679
|
+
promise = begin_update_gateway_settings_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
|
680
|
+
|
681
|
+
promise = promise.then do |response|
|
682
|
+
# Defining deserialization method.
|
683
|
+
deserialize_method = lambda do |parsed_response|
|
684
|
+
end
|
685
|
+
|
686
|
+
# Waiting for response.
|
687
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
688
|
+
end
|
689
|
+
|
690
|
+
promise
|
691
|
+
end
|
692
|
+
|
559
693
|
#
|
560
694
|
# Executes script actions on the specified HDInsight cluster.
|
561
695
|
#
|
@@ -976,6 +1110,101 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
976
1110
|
promise.execute
|
977
1111
|
end
|
978
1112
|
|
1113
|
+
#
|
1114
|
+
# Configures the gateway settings on the specified cluster.
|
1115
|
+
#
|
1116
|
+
# @param resource_group_name [String] The name of the resource group.
|
1117
|
+
# @param cluster_name [String] The name of the cluster.
|
1118
|
+
# @param parameters [UpdateGatewaySettingsParameters] The cluster
|
1119
|
+
# configurations.
|
1120
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1121
|
+
# will be added to the HTTP request.
|
1122
|
+
#
|
1123
|
+
#
|
1124
|
+
def begin_update_gateway_settings(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
1125
|
+
response = begin_update_gateway_settings_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
|
1126
|
+
nil
|
1127
|
+
end
|
1128
|
+
|
1129
|
+
#
|
1130
|
+
# Configures the gateway settings on the specified cluster.
|
1131
|
+
#
|
1132
|
+
# @param resource_group_name [String] The name of the resource group.
|
1133
|
+
# @param cluster_name [String] The name of the cluster.
|
1134
|
+
# @param parameters [UpdateGatewaySettingsParameters] The cluster
|
1135
|
+
# configurations.
|
1136
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1137
|
+
# will be added to the HTTP request.
|
1138
|
+
#
|
1139
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1140
|
+
#
|
1141
|
+
def begin_update_gateway_settings_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
1142
|
+
begin_update_gateway_settings_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
|
1143
|
+
end
|
1144
|
+
|
1145
|
+
#
|
1146
|
+
# Configures the gateway settings on the specified cluster.
|
1147
|
+
#
|
1148
|
+
# @param resource_group_name [String] The name of the resource group.
|
1149
|
+
# @param cluster_name [String] The name of the cluster.
|
1150
|
+
# @param parameters [UpdateGatewaySettingsParameters] The cluster
|
1151
|
+
# configurations.
|
1152
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1153
|
+
# to the HTTP request.
|
1154
|
+
#
|
1155
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1156
|
+
#
|
1157
|
+
def begin_update_gateway_settings_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
|
1158
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1159
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1160
|
+
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
1161
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1162
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1163
|
+
|
1164
|
+
|
1165
|
+
request_headers = {}
|
1166
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1167
|
+
|
1168
|
+
# Set Headers
|
1169
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1170
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1171
|
+
|
1172
|
+
# Serialize Request
|
1173
|
+
request_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::UpdateGatewaySettingsParameters.mapper()
|
1174
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1175
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1176
|
+
|
1177
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings'
|
1178
|
+
|
1179
|
+
request_url = @base_url || @client.base_url
|
1180
|
+
|
1181
|
+
options = {
|
1182
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1183
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name},
|
1184
|
+
query_params: {'api-version' => @client.api_version},
|
1185
|
+
body: request_content,
|
1186
|
+
headers: request_headers.merge(custom_headers || {}),
|
1187
|
+
base_url: request_url
|
1188
|
+
}
|
1189
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1190
|
+
|
1191
|
+
promise = promise.then do |result|
|
1192
|
+
http_response = result.response
|
1193
|
+
status_code = http_response.status
|
1194
|
+
response_content = http_response.body
|
1195
|
+
unless status_code == 200 || status_code == 202
|
1196
|
+
error_model = JSON.load(response_content)
|
1197
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1201
|
+
|
1202
|
+
result
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
promise.execute
|
1206
|
+
end
|
1207
|
+
|
979
1208
|
#
|
980
1209
|
# Executes script actions on the specified HDInsight cluster.
|
981
1210
|
#
|
@@ -22,7 +22,100 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Gets all configuration information for an HDI cluster.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param cluster_name [String] The name of the cluster.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [ClusterConfigurations] operation results.
|
33
|
+
#
|
34
|
+
def list(resource_group_name, cluster_name, custom_headers:nil)
|
35
|
+
response = list_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets all configuration information for an HDI cluster.
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The name of the resource group.
|
43
|
+
# @param cluster_name [String] The name of the cluster.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
|
50
|
+
list_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Gets all configuration information for an HDI cluster.
|
55
|
+
#
|
56
|
+
# @param resource_group_name [String] The name of the resource group.
|
57
|
+
# @param cluster_name [String] The name of the cluster.
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def list_async(resource_group_name, cluster_name, custom_headers:nil)
|
64
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
65
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
66
|
+
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
|
69
|
+
|
70
|
+
request_headers = {}
|
71
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
72
|
+
|
73
|
+
# Set Headers
|
74
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
75
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
76
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations'
|
77
|
+
|
78
|
+
request_url = @base_url || @client.base_url
|
79
|
+
|
80
|
+
options = {
|
81
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
82
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name},
|
83
|
+
query_params: {'api-version' => @client.api_version},
|
84
|
+
headers: request_headers.merge(custom_headers || {}),
|
85
|
+
base_url: request_url
|
86
|
+
}
|
87
|
+
promise = @client.make_request_async(:post, path_template, options)
|
88
|
+
|
89
|
+
promise = promise.then do |result|
|
90
|
+
http_response = result.response
|
91
|
+
status_code = http_response.status
|
92
|
+
response_content = http_response.body
|
93
|
+
unless status_code == 200
|
94
|
+
error_model = JSON.load(response_content)
|
95
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
96
|
+
end
|
97
|
+
|
98
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
+
# Deserialize Response
|
100
|
+
if status_code == 200
|
101
|
+
begin
|
102
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
103
|
+
result_mapper = Azure::Hdinsight::Mgmt::V2015_03_01_preview::Models::ClusterConfigurations.mapper()
|
104
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
105
|
+
rescue Exception => e
|
106
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
result
|
111
|
+
end
|
112
|
+
|
113
|
+
promise.execute
|
114
|
+
end
|
115
|
+
|
116
|
+
#
|
117
|
+
# Configures the HTTP settings on the specified cluster. This API is
|
118
|
+
# deprecated, please use UpdateGatewaySettings in cluster endpoint instead.
|
26
119
|
#
|
27
120
|
# @param resource_group_name [String] The name of the resource group.
|
28
121
|
# @param cluster_name [String] The name of the cluster.
|
@@ -31,8 +124,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
31
124
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
125
|
# will be added to the HTTP request.
|
33
126
|
#
|
34
|
-
def
|
35
|
-
response =
|
127
|
+
def update(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:nil)
|
128
|
+
response = update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
36
129
|
nil
|
37
130
|
end
|
38
131
|
|
@@ -47,9 +140,9 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
47
140
|
# @return [Concurrent::Promise] promise which provides async access to http
|
48
141
|
# response.
|
49
142
|
#
|
50
|
-
def
|
143
|
+
def update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:nil)
|
51
144
|
# Send request
|
52
|
-
promise =
|
145
|
+
promise = begin_update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:custom_headers)
|
53
146
|
|
54
147
|
promise = promise.then do |response|
|
55
148
|
# Defining deserialization method.
|
@@ -64,7 +157,9 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
64
157
|
end
|
65
158
|
|
66
159
|
#
|
67
|
-
# The configuration object for the specified cluster.
|
160
|
+
# The configuration object for the specified cluster. This API is not
|
161
|
+
# recommended and might be removed in the future. Please consider using List
|
162
|
+
# configurations API instead.
|
68
163
|
#
|
69
164
|
# @param resource_group_name [String] The name of the resource group.
|
70
165
|
# @param cluster_name [String] The name of the cluster.
|
@@ -80,7 +175,9 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
80
175
|
end
|
81
176
|
|
82
177
|
#
|
83
|
-
# The configuration object for the specified cluster.
|
178
|
+
# The configuration object for the specified cluster. This API is not
|
179
|
+
# recommended and might be removed in the future. Please consider using List
|
180
|
+
# configurations API instead.
|
84
181
|
#
|
85
182
|
# @param resource_group_name [String] The name of the resource group.
|
86
183
|
# @param cluster_name [String] The name of the cluster.
|
@@ -95,7 +192,9 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
95
192
|
end
|
96
193
|
|
97
194
|
#
|
98
|
-
# The configuration object for the specified cluster.
|
195
|
+
# The configuration object for the specified cluster. This API is not
|
196
|
+
# recommended and might be removed in the future. Please consider using List
|
197
|
+
# configurations API instead.
|
99
198
|
#
|
100
199
|
# @param resource_group_name [String] The name of the resource group.
|
101
200
|
# @param cluster_name [String] The name of the cluster.
|
@@ -175,7 +274,8 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
175
274
|
end
|
176
275
|
|
177
276
|
#
|
178
|
-
# Configures the HTTP settings on the specified cluster.
|
277
|
+
# Configures the HTTP settings on the specified cluster. This API is
|
278
|
+
# deprecated, please use UpdateGatewaySettings in cluster endpoint instead.
|
179
279
|
#
|
180
280
|
# @param resource_group_name [String] The name of the resource group.
|
181
281
|
# @param cluster_name [String] The name of the cluster.
|
@@ -185,13 +285,14 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
185
285
|
# will be added to the HTTP request.
|
186
286
|
#
|
187
287
|
#
|
188
|
-
def
|
189
|
-
response =
|
288
|
+
def begin_update(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:nil)
|
289
|
+
response = begin_update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
190
290
|
nil
|
191
291
|
end
|
192
292
|
|
193
293
|
#
|
194
|
-
# Configures the HTTP settings on the specified cluster.
|
294
|
+
# Configures the HTTP settings on the specified cluster. This API is
|
295
|
+
# deprecated, please use UpdateGatewaySettings in cluster endpoint instead.
|
195
296
|
#
|
196
297
|
# @param resource_group_name [String] The name of the resource group.
|
197
298
|
# @param cluster_name [String] The name of the cluster.
|
@@ -202,12 +303,13 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
202
303
|
#
|
203
304
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
204
305
|
#
|
205
|
-
def
|
206
|
-
|
306
|
+
def begin_update_with_http_info(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:nil)
|
307
|
+
begin_update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
207
308
|
end
|
208
309
|
|
209
310
|
#
|
210
|
-
# Configures the HTTP settings on the specified cluster.
|
311
|
+
# Configures the HTTP settings on the specified cluster. This API is
|
312
|
+
# deprecated, please use UpdateGatewaySettings in cluster endpoint instead.
|
211
313
|
#
|
212
314
|
# @param resource_group_name [String] The name of the resource group.
|
213
315
|
# @param cluster_name [String] The name of the cluster.
|
@@ -218,7 +320,7 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
218
320
|
#
|
219
321
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
220
322
|
#
|
221
|
-
def
|
323
|
+
def begin_update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:nil)
|
222
324
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
223
325
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
224
326
|
fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
|
@@ -154,7 +154,7 @@ module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
|
154
154
|
#
|
155
155
|
def add_telemetry
|
156
156
|
sdk_information = 'azure_mgmt_hdinsight'
|
157
|
-
sdk_information = "#{sdk_information}/0.17.
|
157
|
+
sdk_information = "#{sdk_information}/0.17.3"
|
158
158
|
add_user_agent_information(sdk_information)
|
159
159
|
end
|
160
160
|
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The configuration object for the specified cluster.
|
10
|
+
#
|
11
|
+
class ClusterConfigurations
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => Hash{String => String}}] The configuration
|
16
|
+
# object for the specified configuration for the specified cluster.
|
17
|
+
attr_accessor :configurations
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for ClusterConfigurations class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'ClusterConfigurations',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'ClusterConfigurations',
|
32
|
+
model_properties: {
|
33
|
+
configurations: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'configurations',
|
37
|
+
type: {
|
38
|
+
name: 'Dictionary',
|
39
|
+
value: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'HashElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Dictionary',
|
45
|
+
value: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'StringElementType',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Gateway settings.
|
10
|
+
#
|
11
|
+
class GatewaySettings
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Indicates whether or not the gateway settings based
|
16
|
+
# authorization is enabled.
|
17
|
+
attr_accessor :is_credential_enabled
|
18
|
+
|
19
|
+
# @return [String] The gateway settings user name.
|
20
|
+
attr_accessor :user_name
|
21
|
+
|
22
|
+
# @return [String] The gateway settings user password.
|
23
|
+
attr_accessor :password
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for GatewaySettings class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'GatewaySettings',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'GatewaySettings',
|
38
|
+
model_properties: {
|
39
|
+
is_credential_enabled: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'restAuthCredential\\.isEnabled',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
user_name: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'restAuthCredential\\.username',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
password: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'restAuthCredential\\.password',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Hdinsight::Mgmt::V2015_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The update gateway settings request parameters.
|
10
|
+
#
|
11
|
+
class UpdateGatewaySettingsParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] Indicates whether or not the gateway settings based
|
16
|
+
# authorization is enabled. Default value: true .
|
17
|
+
attr_accessor :is_credential_enabled
|
18
|
+
|
19
|
+
# @return [String] The gateway settings user name.
|
20
|
+
attr_accessor :user_name
|
21
|
+
|
22
|
+
# @return [String] The gateway settings user password.
|
23
|
+
attr_accessor :password
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for UpdateGatewaySettingsParameters class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'UpdateGatewaySettingsParameters',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'UpdateGatewaySettingsParameters',
|
38
|
+
model_properties: {
|
39
|
+
is_credential_enabled: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'restAuthCredential\\.isEnabled',
|
43
|
+
default_value: true,
|
44
|
+
type: {
|
45
|
+
name: 'Boolean'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
user_name: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'restAuthCredential\\.username',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
password: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'restAuthCredential\\.password',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|