azure_mgmt_datalake_analytics 0.7.0 → 0.8.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 +14 -15
- data/lib/generated/azure_mgmt_datalake_analytics/account.rb +478 -2502
- data/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb +23 -2
- data/lib/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb +619 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb +7 -9
- data/lib/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb +19 -9
- data/lib/generated/azure_mgmt_datalake_analytics/models/create_storage_account_info.rb +67 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb +181 -26
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb +1 -12
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb +1 -12
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb +3 -3
- 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 +94 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb +8 -9
- data/lib/generated/azure_mgmt_datalake_analytics/models/error.rb +3 -3
- data/lib/generated/azure_mgmt_datalake_analytics/models/error_details.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/inner_error.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/{list_blob_containers_result.rb → list_storage_containers_result.rb} +10 -10
- data/lib/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb +19 -9
- data/lib/generated/azure_mgmt_datalake_analytics/models/{blob_container.rb → storage_container.rb} +10 -11
- data/lib/generated/azure_mgmt_datalake_analytics/models/{storage_account_properties.rb → update_storage_account_parameters.rb} +13 -12
- data/lib/generated/azure_mgmt_datalake_analytics/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_datalake_analytics/storage_accounts.rb +1309 -0
- data/lib/generated/azure_mgmt_datalake_analytics/version.rb +2 -2
- metadata +11 -12
- data/lib/generated/azure_mgmt_datalake_analytics/models/azure_async_operation_result.rb +0 -66
- data/lib/generated/azure_mgmt_datalake_analytics/models/blob_container_properties.rb +0 -45
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties.rb +0 -167
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info_properties.rb +0 -44
- data/lib/generated/azure_mgmt_datalake_analytics/models/operation_status.rb +0 -17
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 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -36,6 +36,12 @@ 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 [StorageAccounts] storage_accounts
|
|
40
|
+
attr_reader :storage_accounts
|
|
41
|
+
|
|
42
|
+
# @return [DataLakeStoreAccounts] data_lake_store_accounts
|
|
43
|
+
attr_reader :data_lake_store_accounts
|
|
44
|
+
|
|
39
45
|
# @return [Account] account
|
|
40
46
|
attr_reader :account
|
|
41
47
|
|
|
@@ -53,11 +59,14 @@ module Azure::ARM::DataLakeAnalytics
|
|
|
53
59
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
|
54
60
|
@credentials = credentials
|
|
55
61
|
|
|
62
|
+
@storage_accounts = StorageAccounts.new(self)
|
|
63
|
+
@data_lake_store_accounts = DataLakeStoreAccounts.new(self)
|
|
56
64
|
@account = Account.new(self)
|
|
57
|
-
@api_version = '
|
|
65
|
+
@api_version = '2016-11-01'
|
|
58
66
|
@accept_language = 'en-US'
|
|
59
67
|
@long_running_operation_retry_timeout = 30
|
|
60
68
|
@generate_client_request_id = true
|
|
69
|
+
add_telemetry
|
|
61
70
|
end
|
|
62
71
|
|
|
63
72
|
#
|
|
@@ -115,5 +124,17 @@ module Azure::ARM::DataLakeAnalytics
|
|
|
115
124
|
super(request_url, method, path, options)
|
|
116
125
|
end
|
|
117
126
|
|
|
127
|
+
|
|
128
|
+
private
|
|
129
|
+
#
|
|
130
|
+
# Adds telemetry information.
|
|
131
|
+
#
|
|
132
|
+
def add_telemetry
|
|
133
|
+
sdk_information = 'azure_mgmt_datalake_analytics'
|
|
134
|
+
if defined? Azure::ARM::DataLakeAnalytics::VERSION
|
|
135
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::DataLakeAnalytics::VERSION}"
|
|
136
|
+
end
|
|
137
|
+
add_user_agent_information(sdk_information)
|
|
138
|
+
end
|
|
118
139
|
end
|
|
119
140
|
end
|
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::DataLakeAnalytics
|
|
7
|
+
#
|
|
8
|
+
# Creates an Azure Data Lake Analytics account management client.
|
|
9
|
+
#
|
|
10
|
+
class DataLakeStoreAccounts
|
|
11
|
+
include Azure::ARM::DataLakeAnalytics::Models
|
|
12
|
+
include MsRestAzure
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
# Creates and initializes a new instance of the DataLakeStoreAccounts class.
|
|
16
|
+
# @param client service class for accessing basic functionality.
|
|
17
|
+
#
|
|
18
|
+
def initialize(client)
|
|
19
|
+
@client = client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @return [DataLakeAnalyticsAccountManagementClient] reference to the DataLakeAnalyticsAccountManagementClient
|
|
23
|
+
attr_reader :client
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Gets the specified Data Lake Store account details in the specified Data Lake
|
|
27
|
+
# Analytics account.
|
|
28
|
+
#
|
|
29
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
30
|
+
# contains the Data Lake Analytics account.
|
|
31
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
|
32
|
+
# which to retrieve the Data Lake Store account details.
|
|
33
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
34
|
+
# account to retrieve
|
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
36
|
+
# will be added to the HTTP request.
|
|
37
|
+
#
|
|
38
|
+
# @return [DataLakeStoreAccountInfo] operation results.
|
|
39
|
+
#
|
|
40
|
+
def get(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
|
41
|
+
response = get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
|
42
|
+
response.body unless response.nil?
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
#
|
|
46
|
+
# Gets the specified Data Lake Store account details in the specified Data Lake
|
|
47
|
+
# Analytics account.
|
|
48
|
+
#
|
|
49
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
50
|
+
# contains the Data Lake Analytics account.
|
|
51
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
|
52
|
+
# which to retrieve the Data Lake Store account details.
|
|
53
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
54
|
+
# account to retrieve
|
|
55
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
56
|
+
# will be added to the HTTP request.
|
|
57
|
+
#
|
|
58
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
59
|
+
#
|
|
60
|
+
def get_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
|
61
|
+
get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
#
|
|
65
|
+
# Gets the specified Data Lake Store account details in the specified Data Lake
|
|
66
|
+
# Analytics account.
|
|
67
|
+
#
|
|
68
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
69
|
+
# contains the Data Lake Analytics account.
|
|
70
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
|
71
|
+
# which to retrieve the Data Lake Store account details.
|
|
72
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
73
|
+
# account to retrieve
|
|
74
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
75
|
+
# to the HTTP request.
|
|
76
|
+
#
|
|
77
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
78
|
+
#
|
|
79
|
+
def get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
|
80
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
81
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
|
82
|
+
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
|
83
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
84
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
request_headers = {}
|
|
88
|
+
|
|
89
|
+
# Set Headers
|
|
90
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
91
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
92
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
|
93
|
+
|
|
94
|
+
request_url = @base_url || @client.base_url
|
|
95
|
+
|
|
96
|
+
options = {
|
|
97
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
98
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
|
99
|
+
query_params: {'api-version' => @client.api_version},
|
|
100
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
101
|
+
base_url: request_url
|
|
102
|
+
}
|
|
103
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
104
|
+
|
|
105
|
+
promise = promise.then do |result|
|
|
106
|
+
http_response = result.response
|
|
107
|
+
status_code = http_response.status
|
|
108
|
+
response_content = http_response.body
|
|
109
|
+
unless status_code == 200
|
|
110
|
+
error_model = JSON.load(response_content)
|
|
111
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
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
|
+
|
|
126
|
+
result
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
promise.execute
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
#
|
|
133
|
+
# Updates the Data Lake Analytics account specified to remove the specified
|
|
134
|
+
# Data Lake Store account.
|
|
135
|
+
#
|
|
136
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
137
|
+
# contains the Data Lake Analytics account.
|
|
138
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
|
139
|
+
# which to remove the Data Lake Store account.
|
|
140
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
141
|
+
# account to remove
|
|
142
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
143
|
+
# will be added to the HTTP request.
|
|
144
|
+
#
|
|
145
|
+
#
|
|
146
|
+
def delete(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
|
147
|
+
response = delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
|
148
|
+
nil
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
#
|
|
152
|
+
# Updates the Data Lake Analytics account specified to remove the specified
|
|
153
|
+
# Data Lake Store account.
|
|
154
|
+
#
|
|
155
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
156
|
+
# contains the Data Lake Analytics account.
|
|
157
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
|
158
|
+
# which to remove the Data Lake Store account.
|
|
159
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
160
|
+
# account to remove
|
|
161
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
162
|
+
# will be added to the HTTP request.
|
|
163
|
+
#
|
|
164
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
165
|
+
#
|
|
166
|
+
def delete_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
|
167
|
+
delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
#
|
|
171
|
+
# Updates the Data Lake Analytics account specified to remove the specified
|
|
172
|
+
# Data Lake Store account.
|
|
173
|
+
#
|
|
174
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
175
|
+
# contains the Data Lake Analytics account.
|
|
176
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
|
177
|
+
# which to remove the Data Lake Store account.
|
|
178
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
179
|
+
# account to remove
|
|
180
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
181
|
+
# to the HTTP request.
|
|
182
|
+
#
|
|
183
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
184
|
+
#
|
|
185
|
+
def delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
|
186
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
187
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
|
188
|
+
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
|
189
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
190
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
request_headers = {}
|
|
194
|
+
|
|
195
|
+
# Set Headers
|
|
196
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
197
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
198
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
|
199
|
+
|
|
200
|
+
request_url = @base_url || @client.base_url
|
|
201
|
+
|
|
202
|
+
options = {
|
|
203
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
204
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
|
205
|
+
query_params: {'api-version' => @client.api_version},
|
|
206
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
207
|
+
base_url: request_url
|
|
208
|
+
}
|
|
209
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
|
210
|
+
|
|
211
|
+
promise = promise.then do |result|
|
|
212
|
+
http_response = result.response
|
|
213
|
+
status_code = http_response.status
|
|
214
|
+
response_content = http_response.body
|
|
215
|
+
unless status_code == 200
|
|
216
|
+
error_model = JSON.load(response_content)
|
|
217
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
221
|
+
|
|
222
|
+
result
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
promise.execute
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
#
|
|
229
|
+
# Updates the specified Data Lake Analytics account to include the additional
|
|
230
|
+
# Data Lake Store account.
|
|
231
|
+
#
|
|
232
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
233
|
+
# contains the Data Lake Analytics account.
|
|
234
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
|
235
|
+
# which to add the Data Lake Store account.
|
|
236
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
237
|
+
# account to add.
|
|
238
|
+
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
|
239
|
+
# Store account.
|
|
240
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
241
|
+
# will be added to the HTTP request.
|
|
242
|
+
#
|
|
243
|
+
#
|
|
244
|
+
def add(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
|
245
|
+
response = add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
|
246
|
+
nil
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
#
|
|
250
|
+
# Updates the specified Data Lake Analytics account to include the additional
|
|
251
|
+
# Data Lake Store account.
|
|
252
|
+
#
|
|
253
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
254
|
+
# contains the Data Lake Analytics account.
|
|
255
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
|
256
|
+
# which to add the Data Lake Store account.
|
|
257
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
258
|
+
# account to add.
|
|
259
|
+
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
|
260
|
+
# Store account.
|
|
261
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
262
|
+
# will be added to the HTTP request.
|
|
263
|
+
#
|
|
264
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
265
|
+
#
|
|
266
|
+
def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
|
267
|
+
add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
#
|
|
271
|
+
# Updates the specified Data Lake Analytics account to include the additional
|
|
272
|
+
# Data Lake Store account.
|
|
273
|
+
#
|
|
274
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
275
|
+
# contains the Data Lake Analytics account.
|
|
276
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
|
277
|
+
# which to add the Data Lake Store account.
|
|
278
|
+
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
|
279
|
+
# account to add.
|
|
280
|
+
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
|
281
|
+
# Store account.
|
|
282
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
283
|
+
# to the HTTP request.
|
|
284
|
+
#
|
|
285
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
286
|
+
#
|
|
287
|
+
def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
|
288
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
289
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
|
290
|
+
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
|
291
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
292
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
293
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
request_headers = {}
|
|
297
|
+
|
|
298
|
+
# Set Headers
|
|
299
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
300
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
301
|
+
|
|
302
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
303
|
+
|
|
304
|
+
# Serialize Request
|
|
305
|
+
request_mapper = AddDataLakeStoreParameters.mapper()
|
|
306
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
|
307
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
308
|
+
|
|
309
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
|
310
|
+
|
|
311
|
+
request_url = @base_url || @client.base_url
|
|
312
|
+
|
|
313
|
+
options = {
|
|
314
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
315
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
|
316
|
+
query_params: {'api-version' => @client.api_version},
|
|
317
|
+
body: request_content,
|
|
318
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
319
|
+
base_url: request_url
|
|
320
|
+
}
|
|
321
|
+
promise = @client.make_request_async(:put, path_template, options)
|
|
322
|
+
|
|
323
|
+
promise = promise.then do |result|
|
|
324
|
+
http_response = result.response
|
|
325
|
+
status_code = http_response.status
|
|
326
|
+
response_content = http_response.body
|
|
327
|
+
unless status_code == 200
|
|
328
|
+
error_model = JSON.load(response_content)
|
|
329
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
333
|
+
|
|
334
|
+
result
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
promise.execute
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
#
|
|
341
|
+
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
|
342
|
+
# Lake Analytics account. The response includes a link to the next page, if
|
|
343
|
+
# any.
|
|
344
|
+
#
|
|
345
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
346
|
+
# contains the Data Lake Analytics account.
|
|
347
|
+
# @param account_name [String] The name of the Data Lake Analytics account for
|
|
348
|
+
# which to list Data Lake Store accounts.
|
|
349
|
+
# @param filter [String] OData filter. Optional.
|
|
350
|
+
# @param top [Integer] The number of items to return. Optional.
|
|
351
|
+
# @param skip [Integer] The number of items to skip over before returning
|
|
352
|
+
# elements. Optional.
|
|
353
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
|
354
|
+
# entry to just those requested, e.g.
|
|
355
|
+
# Categories?$select=CategoryName,Description. Optional.
|
|
356
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
|
357
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
|
358
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
|
359
|
+
# desc. Optional.
|
|
360
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
|
361
|
+
# of the matching resources included with the resources in the response, e.g.
|
|
362
|
+
# Categories?$count=true. Optional.
|
|
363
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
364
|
+
# will be added to the HTTP request.
|
|
365
|
+
#
|
|
366
|
+
# @return [Array<DataLakeStoreAccountInfo>] operation results.
|
|
367
|
+
#
|
|
368
|
+
def list_by_account(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
|
369
|
+
first_page = list_by_account_as_lazy(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers)
|
|
370
|
+
first_page.get_all_items
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
#
|
|
374
|
+
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
|
375
|
+
# Lake Analytics account. The response includes a link to the next page, if
|
|
376
|
+
# any.
|
|
377
|
+
#
|
|
378
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
379
|
+
# contains the Data Lake Analytics account.
|
|
380
|
+
# @param account_name [String] The name of the Data Lake Analytics account for
|
|
381
|
+
# which to list Data Lake Store accounts.
|
|
382
|
+
# @param filter [String] OData filter. Optional.
|
|
383
|
+
# @param top [Integer] The number of items to return. Optional.
|
|
384
|
+
# @param skip [Integer] The number of items to skip over before returning
|
|
385
|
+
# elements. Optional.
|
|
386
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
|
387
|
+
# entry to just those requested, e.g.
|
|
388
|
+
# Categories?$select=CategoryName,Description. Optional.
|
|
389
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
|
390
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
|
391
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
|
392
|
+
# desc. Optional.
|
|
393
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
|
394
|
+
# of the matching resources included with the resources in the response, e.g.
|
|
395
|
+
# Categories?$count=true. Optional.
|
|
396
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
397
|
+
# will be added to the HTTP request.
|
|
398
|
+
#
|
|
399
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
400
|
+
#
|
|
401
|
+
def list_by_account_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
|
402
|
+
list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value!
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
#
|
|
406
|
+
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
|
407
|
+
# Lake Analytics account. The response includes a link to the next page, if
|
|
408
|
+
# any.
|
|
409
|
+
#
|
|
410
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
411
|
+
# contains the Data Lake Analytics account.
|
|
412
|
+
# @param account_name [String] The name of the Data Lake Analytics account for
|
|
413
|
+
# which to list Data Lake Store accounts.
|
|
414
|
+
# @param filter [String] OData filter. Optional.
|
|
415
|
+
# @param top [Integer] The number of items to return. Optional.
|
|
416
|
+
# @param skip [Integer] The number of items to skip over before returning
|
|
417
|
+
# elements. Optional.
|
|
418
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
|
419
|
+
# entry to just those requested, e.g.
|
|
420
|
+
# Categories?$select=CategoryName,Description. Optional.
|
|
421
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
|
422
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
|
423
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
|
424
|
+
# desc. Optional.
|
|
425
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
|
426
|
+
# of the matching resources included with the resources in the response, e.g.
|
|
427
|
+
# Categories?$count=true. Optional.
|
|
428
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
429
|
+
# to the HTTP request.
|
|
430
|
+
#
|
|
431
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
432
|
+
#
|
|
433
|
+
def list_by_account_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
|
434
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
435
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
|
436
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
437
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
request_headers = {}
|
|
441
|
+
|
|
442
|
+
# Set Headers
|
|
443
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
444
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
445
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/'
|
|
446
|
+
|
|
447
|
+
request_url = @base_url || @client.base_url
|
|
448
|
+
|
|
449
|
+
options = {
|
|
450
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
451
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
|
452
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
|
|
453
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
454
|
+
base_url: request_url
|
|
455
|
+
}
|
|
456
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
457
|
+
|
|
458
|
+
promise = promise.then do |result|
|
|
459
|
+
http_response = result.response
|
|
460
|
+
status_code = http_response.status
|
|
461
|
+
response_content = http_response.body
|
|
462
|
+
unless status_code == 200
|
|
463
|
+
error_model = JSON.load(response_content)
|
|
464
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
468
|
+
# Deserialize Response
|
|
469
|
+
if status_code == 200
|
|
470
|
+
begin
|
|
471
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
472
|
+
result_mapper = DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
|
|
473
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
474
|
+
rescue Exception => e
|
|
475
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
476
|
+
end
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
result
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
promise.execute
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
#
|
|
486
|
+
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
|
487
|
+
# Lake Analytics account. The response includes a link to the next page, if
|
|
488
|
+
# any.
|
|
489
|
+
#
|
|
490
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
491
|
+
# to List operation.
|
|
492
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
493
|
+
# will be added to the HTTP request.
|
|
494
|
+
#
|
|
495
|
+
# @return [DataLakeAnalyticsAccountListDataLakeStoreResult] operation results.
|
|
496
|
+
#
|
|
497
|
+
def list_by_account_next(next_page_link, custom_headers = nil)
|
|
498
|
+
response = list_by_account_next_async(next_page_link, custom_headers).value!
|
|
499
|
+
response.body unless response.nil?
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
#
|
|
503
|
+
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
|
504
|
+
# Lake Analytics account. The response includes a link to the next page, if
|
|
505
|
+
# any.
|
|
506
|
+
#
|
|
507
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
508
|
+
# to List operation.
|
|
509
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
510
|
+
# will be added to the HTTP request.
|
|
511
|
+
#
|
|
512
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
513
|
+
#
|
|
514
|
+
def list_by_account_next_with_http_info(next_page_link, custom_headers = nil)
|
|
515
|
+
list_by_account_next_async(next_page_link, custom_headers).value!
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
#
|
|
519
|
+
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
|
520
|
+
# Lake Analytics account. The response includes a link to the next page, if
|
|
521
|
+
# any.
|
|
522
|
+
#
|
|
523
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
524
|
+
# to List operation.
|
|
525
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
526
|
+
# to the HTTP request.
|
|
527
|
+
#
|
|
528
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
529
|
+
#
|
|
530
|
+
def list_by_account_next_async(next_page_link, custom_headers = nil)
|
|
531
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
request_headers = {}
|
|
535
|
+
|
|
536
|
+
# Set Headers
|
|
537
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
538
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
539
|
+
path_template = '{nextLink}'
|
|
540
|
+
|
|
541
|
+
request_url = @base_url || @client.base_url
|
|
542
|
+
|
|
543
|
+
options = {
|
|
544
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
545
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
546
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
547
|
+
base_url: request_url
|
|
548
|
+
}
|
|
549
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
550
|
+
|
|
551
|
+
promise = promise.then do |result|
|
|
552
|
+
http_response = result.response
|
|
553
|
+
status_code = http_response.status
|
|
554
|
+
response_content = http_response.body
|
|
555
|
+
unless status_code == 200
|
|
556
|
+
error_model = JSON.load(response_content)
|
|
557
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
561
|
+
# Deserialize Response
|
|
562
|
+
if status_code == 200
|
|
563
|
+
begin
|
|
564
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
565
|
+
result_mapper = DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
|
|
566
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
567
|
+
rescue Exception => e
|
|
568
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
569
|
+
end
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
result
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
promise.execute
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
#
|
|
579
|
+
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
|
580
|
+
# Lake Analytics account. The response includes a link to the next page, if
|
|
581
|
+
# any.
|
|
582
|
+
#
|
|
583
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
|
584
|
+
# contains the Data Lake Analytics account.
|
|
585
|
+
# @param account_name [String] The name of the Data Lake Analytics account for
|
|
586
|
+
# which to list Data Lake Store accounts.
|
|
587
|
+
# @param filter [String] OData filter. Optional.
|
|
588
|
+
# @param top [Integer] The number of items to return. Optional.
|
|
589
|
+
# @param skip [Integer] The number of items to skip over before returning
|
|
590
|
+
# elements. Optional.
|
|
591
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
|
592
|
+
# entry to just those requested, e.g.
|
|
593
|
+
# Categories?$select=CategoryName,Description. Optional.
|
|
594
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
|
595
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
|
596
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
|
597
|
+
# desc. Optional.
|
|
598
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
|
599
|
+
# of the matching resources included with the resources in the response, e.g.
|
|
600
|
+
# Categories?$count=true. Optional.
|
|
601
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
602
|
+
# will be added to the HTTP request.
|
|
603
|
+
#
|
|
604
|
+
# @return [DataLakeAnalyticsAccountListDataLakeStoreResult] which provide lazy
|
|
605
|
+
# access to pages of the response.
|
|
606
|
+
#
|
|
607
|
+
def list_by_account_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
|
608
|
+
response = list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value!
|
|
609
|
+
unless response.nil?
|
|
610
|
+
page = response.body
|
|
611
|
+
page.next_method = Proc.new do |next_page_link|
|
|
612
|
+
list_by_account_next_async(next_page_link, custom_headers)
|
|
613
|
+
end
|
|
614
|
+
page
|
|
615
|
+
end
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
end
|
|
619
|
+
end
|