azure_mgmt_datalake_analytics 0.10.0 → 0.11.0
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 +4 -4
- data/lib/generated/azure_mgmt_datalake_analytics.rb +21 -13
- data/lib/generated/azure_mgmt_datalake_analytics/account.rb +183 -184
- data/lib/generated/azure_mgmt_datalake_analytics/compute_policies.rb +682 -0
- data/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb +5 -1
- data/lib/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb +79 -80
- data/lib/generated/azure_mgmt_datalake_analytics/firewall_rules.rb +20 -21
- data/lib/generated/azure_mgmt_datalake_analytics/models/aadobject_type.rb +17 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb +98 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_account_create_parameters.rb +97 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_create_or_update_parameters.rb +87 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb +94 -34
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb +154 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb +6 -5
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb +109 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb +49 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/firewall_state.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/storage_container.rb +9 -8
- data/lib/generated/azure_mgmt_datalake_analytics/models/sub_resource.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/tier_type.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_datalake_analytics/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/storage_accounts.rb +163 -164
- data/lib/generated/azure_mgmt_datalake_analytics/version.rb +2 -2
- metadata +12 -4
data/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -36,6 +36,9 @@ module Azure::ARM::DataLakeAnalytics
|
|
36
36
|
# is generated and included in each request. Default is true.
|
37
37
|
attr_accessor :generate_client_request_id
|
38
38
|
|
39
|
+
# @return [ComputePolicies] compute_policies
|
40
|
+
attr_reader :compute_policies
|
41
|
+
|
39
42
|
# @return [FirewallRules] firewall_rules
|
40
43
|
attr_reader :firewall_rules
|
41
44
|
|
@@ -61,6 +64,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
61
64
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
62
65
|
@credentials = credentials
|
63
66
|
|
67
|
+
@compute_policies = ComputePolicies.new(self)
|
64
68
|
@firewall_rules = FirewallRules.new(self)
|
65
69
|
@storage_accounts = StorageAccounts.new(self)
|
66
70
|
@data_lake_store_accounts = DataLakeStoreAccounts.new(self)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::DataLakeAnalytics
|
|
8
8
|
# Creates an Azure Data Lake Analytics account management client.
|
9
9
|
#
|
10
10
|
class DataLakeStoreAccounts
|
11
|
-
include Azure::ARM::DataLakeAnalytics::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -23,60 +22,65 @@ module Azure::ARM::DataLakeAnalytics
|
|
23
22
|
attr_reader :client
|
24
23
|
|
25
24
|
#
|
26
|
-
#
|
27
|
-
#
|
25
|
+
# Updates the specified Data Lake Analytics account to include the additional
|
26
|
+
# Data Lake Store account.
|
28
27
|
#
|
29
28
|
# @param resource_group_name [String] The name of the Azure resource group that
|
30
29
|
# contains the Data Lake Analytics account.
|
31
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
32
|
-
# which to
|
30
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
31
|
+
# which to add the Data Lake Store account.
|
33
32
|
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
34
|
-
# account to
|
33
|
+
# account to add.
|
34
|
+
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
35
|
+
# Store account.
|
35
36
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
37
|
# will be added to the HTTP request.
|
37
38
|
#
|
38
|
-
# @return [DataLakeStoreAccountInfo] operation results.
|
39
39
|
#
|
40
|
-
def
|
41
|
-
response =
|
42
|
-
|
40
|
+
def add(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
|
41
|
+
response = add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
42
|
+
nil
|
43
43
|
end
|
44
44
|
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
46
|
+
# Updates the specified Data Lake Analytics account to include the additional
|
47
|
+
# Data Lake Store account.
|
48
48
|
#
|
49
49
|
# @param resource_group_name [String] The name of the Azure resource group that
|
50
50
|
# contains the Data Lake Analytics account.
|
51
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
52
|
-
# which to
|
51
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
52
|
+
# which to add the Data Lake Store account.
|
53
53
|
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
54
|
-
# account to
|
54
|
+
# account to add.
|
55
|
+
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
56
|
+
# Store account.
|
55
57
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
58
|
# will be added to the HTTP request.
|
57
59
|
#
|
58
60
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
61
|
#
|
60
|
-
def
|
61
|
-
|
62
|
+
def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
|
63
|
+
add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
62
64
|
end
|
63
65
|
|
64
66
|
#
|
65
|
-
#
|
66
|
-
#
|
67
|
+
# Updates the specified Data Lake Analytics account to include the additional
|
68
|
+
# Data Lake Store account.
|
67
69
|
#
|
68
70
|
# @param resource_group_name [String] The name of the Azure resource group that
|
69
71
|
# contains the Data Lake Analytics account.
|
70
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
71
|
-
# which to
|
72
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
73
|
+
# which to add the Data Lake Store account.
|
72
74
|
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
73
|
-
# account to
|
75
|
+
# account to add.
|
76
|
+
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
77
|
+
# Store account.
|
74
78
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
75
79
|
# to the HTTP request.
|
76
80
|
#
|
77
81
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
78
82
|
#
|
79
|
-
def
|
83
|
+
def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
|
80
84
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
81
85
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
82
86
|
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
@@ -89,7 +93,15 @@ module Azure::ARM::DataLakeAnalytics
|
|
89
93
|
# Set Headers
|
90
94
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
91
95
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
92
|
-
|
96
|
+
|
97
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
98
|
+
|
99
|
+
# Serialize Request
|
100
|
+
request_mapper = Azure::ARM::DataLakeAnalytics::Models::AddDataLakeStoreParameters.mapper()
|
101
|
+
request_content = @client.serialize(request_mapper, parameters)
|
102
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
103
|
+
|
104
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
93
105
|
|
94
106
|
request_url = @base_url || @client.base_url
|
95
107
|
|
@@ -97,10 +109,11 @@ module Azure::ARM::DataLakeAnalytics
|
|
97
109
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
98
110
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
99
111
|
query_params: {'api-version' => @client.api_version},
|
112
|
+
body: request_content,
|
100
113
|
headers: request_headers.merge(custom_headers || {}),
|
101
114
|
base_url: request_url
|
102
115
|
}
|
103
|
-
promise = @client.make_request_async(:
|
116
|
+
promise = @client.make_request_async(:put, path_template, options)
|
104
117
|
|
105
118
|
promise = promise.then do |result|
|
106
119
|
http_response = result.response
|
@@ -112,16 +125,6 @@ module Azure::ARM::DataLakeAnalytics
|
|
112
125
|
end
|
113
126
|
|
114
127
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
115
|
-
# Deserialize Response
|
116
|
-
if status_code == 200
|
117
|
-
begin
|
118
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
119
|
-
result_mapper = DataLakeStoreAccountInfo.mapper()
|
120
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
121
|
-
rescue Exception => e
|
122
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
123
|
-
end
|
124
|
-
end
|
125
128
|
|
126
129
|
result
|
127
130
|
end
|
@@ -195,7 +198,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
195
198
|
# Set Headers
|
196
199
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
197
200
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
198
|
-
path_template = '
|
201
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
199
202
|
|
200
203
|
request_url = @base_url || @client.base_url
|
201
204
|
|
@@ -226,65 +229,60 @@ module Azure::ARM::DataLakeAnalytics
|
|
226
229
|
end
|
227
230
|
|
228
231
|
#
|
229
|
-
#
|
230
|
-
#
|
232
|
+
# Gets the specified Data Lake Store account details in the specified Data Lake
|
233
|
+
# Analytics account.
|
231
234
|
#
|
232
235
|
# @param resource_group_name [String] The name of the Azure resource group that
|
233
236
|
# contains the Data Lake Analytics account.
|
234
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
235
|
-
# which to
|
237
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
238
|
+
# which to retrieve the Data Lake Store account details.
|
236
239
|
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
237
|
-
# account to
|
238
|
-
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
239
|
-
# Store account.
|
240
|
+
# account to retrieve
|
240
241
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
241
242
|
# will be added to the HTTP request.
|
242
243
|
#
|
244
|
+
# @return [DataLakeStoreAccountInfo] operation results.
|
243
245
|
#
|
244
|
-
def
|
245
|
-
response =
|
246
|
-
nil
|
246
|
+
def get(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
247
|
+
response = get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
248
|
+
response.body unless response.nil?
|
247
249
|
end
|
248
250
|
|
249
251
|
#
|
250
|
-
#
|
251
|
-
#
|
252
|
+
# Gets the specified Data Lake Store account details in the specified Data Lake
|
253
|
+
# Analytics account.
|
252
254
|
#
|
253
255
|
# @param resource_group_name [String] The name of the Azure resource group that
|
254
256
|
# contains the Data Lake Analytics account.
|
255
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
256
|
-
# which to
|
257
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
258
|
+
# which to retrieve the Data Lake Store account details.
|
257
259
|
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
258
|
-
# account to
|
259
|
-
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
260
|
-
# Store account.
|
260
|
+
# account to retrieve
|
261
261
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
262
262
|
# will be added to the HTTP request.
|
263
263
|
#
|
264
264
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
265
265
|
#
|
266
|
-
def
|
267
|
-
|
266
|
+
def get_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
267
|
+
get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
268
268
|
end
|
269
269
|
|
270
270
|
#
|
271
|
-
#
|
272
|
-
#
|
271
|
+
# Gets the specified Data Lake Store account details in the specified Data Lake
|
272
|
+
# Analytics account.
|
273
273
|
#
|
274
274
|
# @param resource_group_name [String] The name of the Azure resource group that
|
275
275
|
# contains the Data Lake Analytics account.
|
276
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
277
|
-
# which to
|
276
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
277
|
+
# which to retrieve the Data Lake Store account details.
|
278
278
|
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
279
|
-
# account to
|
280
|
-
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
281
|
-
# Store account.
|
279
|
+
# account to retrieve
|
282
280
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
283
281
|
# to the HTTP request.
|
284
282
|
#
|
285
283
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
286
284
|
#
|
287
|
-
def
|
285
|
+
def get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
288
286
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
289
287
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
290
288
|
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
@@ -297,15 +295,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
297
295
|
# Set Headers
|
298
296
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
299
297
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
300
|
-
|
301
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
302
|
-
|
303
|
-
# Serialize Request
|
304
|
-
request_mapper = AddDataLakeStoreParameters.mapper()
|
305
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
306
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
307
|
-
|
308
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
298
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
309
299
|
|
310
300
|
request_url = @base_url || @client.base_url
|
311
301
|
|
@@ -313,11 +303,10 @@ module Azure::ARM::DataLakeAnalytics
|
|
313
303
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
314
304
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
315
305
|
query_params: {'api-version' => @client.api_version},
|
316
|
-
body: request_content,
|
317
306
|
headers: request_headers.merge(custom_headers || {}),
|
318
307
|
base_url: request_url
|
319
308
|
}
|
320
|
-
promise = @client.make_request_async(:
|
309
|
+
promise = @client.make_request_async(:get, path_template, options)
|
321
310
|
|
322
311
|
promise = promise.then do |result|
|
323
312
|
http_response = result.response
|
@@ -329,6 +318,16 @@ module Azure::ARM::DataLakeAnalytics
|
|
329
318
|
end
|
330
319
|
|
331
320
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
321
|
+
# Deserialize Response
|
322
|
+
if status_code == 200
|
323
|
+
begin
|
324
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
325
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::DataLakeStoreAccountInfo.mapper()
|
326
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
327
|
+
rescue Exception => e
|
328
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
329
|
+
end
|
330
|
+
end
|
332
331
|
|
333
332
|
result
|
334
333
|
end
|
@@ -441,7 +440,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
441
440
|
# Set Headers
|
442
441
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
443
442
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
444
|
-
path_template = '
|
443
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/'
|
445
444
|
|
446
445
|
request_url = @base_url || @client.base_url
|
447
446
|
|
@@ -468,8 +467,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
468
467
|
if status_code == 200
|
469
468
|
begin
|
470
469
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
471
|
-
result_mapper = DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
|
472
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
470
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
|
471
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
473
472
|
rescue Exception => e
|
474
473
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
475
474
|
end
|
@@ -561,8 +560,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
561
560
|
if status_code == 200
|
562
561
|
begin
|
563
562
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
564
|
-
result_mapper = DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
|
565
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
563
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
|
564
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
566
565
|
rescue Exception => e
|
567
566
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
568
567
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::DataLakeAnalytics
|
|
8
8
|
# Creates an Azure Data Lake Analytics account management client.
|
9
9
|
#
|
10
10
|
class FirewallRules
|
11
|
-
include Azure::ARM::DataLakeAnalytics::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -100,11 +99,11 @@ module Azure::ARM::DataLakeAnalytics
|
|
100
99
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
101
100
|
|
102
101
|
# Serialize Request
|
103
|
-
request_mapper = FirewallRule.mapper()
|
104
|
-
request_content = @client.serialize(request_mapper, parameters
|
102
|
+
request_mapper = Azure::ARM::DataLakeAnalytics::Models::FirewallRule.mapper()
|
103
|
+
request_content = @client.serialize(request_mapper, parameters)
|
105
104
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
106
105
|
|
107
|
-
path_template = '
|
106
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
108
107
|
|
109
108
|
request_url = @base_url || @client.base_url
|
110
109
|
|
@@ -132,8 +131,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
132
131
|
if status_code == 200
|
133
132
|
begin
|
134
133
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
135
|
-
result_mapper = FirewallRule.mapper()
|
136
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
134
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::FirewallRule.mapper()
|
135
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
137
136
|
rescue Exception => e
|
138
137
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
139
138
|
end
|
@@ -216,11 +215,11 @@ module Azure::ARM::DataLakeAnalytics
|
|
216
215
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
217
216
|
|
218
217
|
# Serialize Request
|
219
|
-
request_mapper = UpdateFirewallRuleParameters.mapper()
|
220
|
-
request_content = @client.serialize(request_mapper, parameters
|
218
|
+
request_mapper = Azure::ARM::DataLakeAnalytics::Models::UpdateFirewallRuleParameters.mapper()
|
219
|
+
request_content = @client.serialize(request_mapper, parameters)
|
221
220
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
222
221
|
|
223
|
-
path_template = '
|
222
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
224
223
|
|
225
224
|
request_url = @base_url || @client.base_url
|
226
225
|
|
@@ -248,8 +247,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
248
247
|
if status_code == 200
|
249
248
|
begin
|
250
249
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
251
|
-
result_mapper = FirewallRule.mapper()
|
252
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
250
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::FirewallRule.mapper()
|
251
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
253
252
|
rescue Exception => e
|
254
253
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
255
254
|
end
|
@@ -324,7 +323,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
324
323
|
# Set Headers
|
325
324
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
326
325
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
327
|
-
path_template = '
|
326
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
328
327
|
|
329
328
|
request_url = @base_url || @client.base_url
|
330
329
|
|
@@ -415,7 +414,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
415
414
|
# Set Headers
|
416
415
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
417
416
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
418
|
-
path_template = '
|
417
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
419
418
|
|
420
419
|
request_url = @base_url || @client.base_url
|
421
420
|
|
@@ -442,8 +441,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
442
441
|
if status_code == 200
|
443
442
|
begin
|
444
443
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
445
|
-
result_mapper = FirewallRule.mapper()
|
446
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
444
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::FirewallRule.mapper()
|
445
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
447
446
|
rescue Exception => e
|
448
447
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
449
448
|
end
|
@@ -515,7 +514,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
515
514
|
# Set Headers
|
516
515
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
517
516
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
518
|
-
path_template = '
|
517
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules'
|
519
518
|
|
520
519
|
request_url = @base_url || @client.base_url
|
521
520
|
|
@@ -542,8 +541,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
542
541
|
if status_code == 200
|
543
542
|
begin
|
544
543
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
545
|
-
result_mapper = DataLakeAnalyticsFirewallRuleListResult.mapper()
|
546
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
544
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::DataLakeAnalyticsFirewallRuleListResult.mapper()
|
545
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
547
546
|
rescue Exception => e
|
548
547
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
549
548
|
end
|
@@ -632,8 +631,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
632
631
|
if status_code == 200
|
633
632
|
begin
|
634
633
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
635
|
-
result_mapper = DataLakeAnalyticsFirewallRuleListResult.mapper()
|
636
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
634
|
+
result_mapper = Azure::ARM::DataLakeAnalytics::Models::DataLakeAnalyticsFirewallRuleListResult.mapper()
|
635
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
637
636
|
rescue Exception => e
|
638
637
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
639
638
|
end
|