azure_mgmt_datalake_analytics 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee2f1f78c5f170c619a04048849fb7b176d29909
|
4
|
+
data.tar.gz: 4aa30b0fdbf87ce68acaf856540ef673b4918468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99eb699d9dd923d18bf2f98ca75bb6aebbb58436e7903d2543968dc1e383948d50073b24553ab0c5faa4ca2f39545cee9b5741d7e71a3b18c38f841f5ec1b74e
|
7
|
+
data.tar.gz: 90270e0357683b753fbc03e3a4ac374e227bfa2e38d6863f75e1687ac1dc54053780066aff613ef4210c25f2894bea1b886cb18c70434ec9b3775b56c1eaa496
|
@@ -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
|
|
@@ -20,32 +20,31 @@ require 'generated/azure_mgmt_datalake_analytics/module_definition'
|
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
22
|
module Azure::ARM::DataLakeAnalytics
|
23
|
+
autoload :StorageAccounts, 'generated/azure_mgmt_datalake_analytics/storage_accounts.rb'
|
24
|
+
autoload :DataLakeStoreAccounts, 'generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb'
|
23
25
|
autoload :Account, 'generated/azure_mgmt_datalake_analytics/account.rb'
|
24
26
|
autoload :DataLakeAnalyticsAccountManagementClient, 'generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb'
|
25
27
|
|
26
28
|
module Models
|
27
|
-
autoload :
|
28
|
-
autoload :
|
29
|
-
autoload :
|
30
|
-
autoload :
|
31
|
-
autoload :
|
32
|
-
autoload :
|
29
|
+
autoload :AddDataLakeStoreParameters, 'generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb'
|
30
|
+
autoload :AddStorageAccountParameters, 'generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb'
|
31
|
+
autoload :CreateStorageAccountInfo, 'generated/azure_mgmt_datalake_analytics/models/create_storage_account_info.rb'
|
32
|
+
autoload :UpdateStorageAccountParameters, 'generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb'
|
33
|
+
autoload :ListStorageContainersResult, 'generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb'
|
34
|
+
autoload :DataLakeAnalyticsAccountUpdateParameters, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb'
|
33
35
|
autoload :ListSasTokensResult, 'generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb'
|
34
|
-
autoload :DataLakeStoreAccountInfoProperties, 'generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info_properties.rb'
|
35
36
|
autoload :DataLakeStoreAccountInfo, 'generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb'
|
36
|
-
autoload :DataLakeAnalyticsAccountListStorageAccountsResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb'
|
37
37
|
autoload :DataLakeAnalyticsAccountListDataLakeStoreResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb'
|
38
|
-
autoload :DataLakeAnalyticsAccountProperties, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties.rb'
|
39
|
-
autoload :AddDataLakeStoreParameters, 'generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb'
|
40
|
-
autoload :AddStorageAccountParameters, 'generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb'
|
41
|
-
autoload :DataLakeAnalyticsAccount, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb'
|
42
38
|
autoload :DataLakeAnalyticsAccountListResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb'
|
39
|
+
autoload :StorageContainer, 'generated/azure_mgmt_datalake_analytics/models/storage_container.rb'
|
43
40
|
autoload :ErrorDetails, 'generated/azure_mgmt_datalake_analytics/models/error_details.rb'
|
41
|
+
autoload :DataLakeAnalyticsAccountListStorageAccountsResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb'
|
44
42
|
autoload :InnerError, 'generated/azure_mgmt_datalake_analytics/models/inner_error.rb'
|
43
|
+
autoload :SasTokenInfo, 'generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb'
|
45
44
|
autoload :Error, 'generated/azure_mgmt_datalake_analytics/models/error.rb'
|
46
|
-
autoload :
|
45
|
+
autoload :StorageAccountInfo, 'generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb'
|
46
|
+
autoload :DataLakeAnalyticsAccount, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb'
|
47
47
|
autoload :DataLakeAnalyticsAccountStatus, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb'
|
48
48
|
autoload :DataLakeAnalyticsAccountState, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb'
|
49
|
-
autoload :OperationStatus, 'generated/azure_mgmt_datalake_analytics/models/operation_status.rb'
|
50
49
|
end
|
51
50
|
end
|
@@ -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
|
|
@@ -23,63 +23,91 @@ module Azure::ARM::DataLakeAnalytics
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
# Gets the
|
27
|
-
#
|
26
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
27
|
+
# specific resource group. This includes a link to the next page, if any.
|
28
28
|
#
|
29
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
30
|
-
#
|
31
|
-
# @param
|
32
|
-
#
|
33
|
-
# @param
|
34
|
-
#
|
29
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
30
|
+
# contains the Data Lake Analytics account.
|
31
|
+
# @param filter [String] OData filter. Optional.
|
32
|
+
# @param top [Integer] The number of items to return. Optional.
|
33
|
+
# @param skip [Integer] The number of items to skip over before returning
|
34
|
+
# elements. Optional.
|
35
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
36
|
+
# entry to just those requested, e.g.
|
37
|
+
# Categories?$select=CategoryName,Description. Optional.
|
38
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
39
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
40
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
41
|
+
# desc. Optional.
|
42
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
43
|
+
# of the matching resources included with the resources in the response, e.g.
|
44
|
+
# Categories?$count=true. Optional.
|
35
45
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
46
|
# will be added to the HTTP request.
|
37
47
|
#
|
38
|
-
# @return [
|
48
|
+
# @return [Array<DataLakeAnalyticsAccount>] operation results.
|
39
49
|
#
|
40
|
-
def
|
41
|
-
|
42
|
-
|
50
|
+
def list_by_resource_group(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
51
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, skip, select, orderby, count, custom_headers)
|
52
|
+
first_page.get_all_items
|
43
53
|
end
|
44
54
|
|
45
55
|
#
|
46
|
-
# Gets the
|
47
|
-
#
|
56
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
57
|
+
# specific resource group. This includes a link to the next page, if any.
|
48
58
|
#
|
49
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
50
|
-
#
|
51
|
-
# @param
|
52
|
-
#
|
53
|
-
# @param
|
54
|
-
#
|
59
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
60
|
+
# contains the Data Lake Analytics account.
|
61
|
+
# @param filter [String] OData filter. Optional.
|
62
|
+
# @param top [Integer] The number of items to return. Optional.
|
63
|
+
# @param skip [Integer] The number of items to skip over before returning
|
64
|
+
# elements. Optional.
|
65
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
66
|
+
# entry to just those requested, e.g.
|
67
|
+
# Categories?$select=CategoryName,Description. Optional.
|
68
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
69
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
70
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
71
|
+
# desc. Optional.
|
72
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
73
|
+
# of the matching resources included with the resources in the response, e.g.
|
74
|
+
# Categories?$count=true. Optional.
|
55
75
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
76
|
# will be added to the HTTP request.
|
57
77
|
#
|
58
78
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
79
|
#
|
60
|
-
def
|
61
|
-
|
80
|
+
def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
81
|
+
list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value!
|
62
82
|
end
|
63
83
|
|
64
84
|
#
|
65
|
-
# Gets the
|
66
|
-
#
|
85
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
86
|
+
# specific resource group. This includes a link to the next page, if any.
|
67
87
|
#
|
68
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
69
|
-
#
|
70
|
-
# @param
|
71
|
-
#
|
72
|
-
# @param
|
73
|
-
#
|
88
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
89
|
+
# contains the Data Lake Analytics account.
|
90
|
+
# @param filter [String] OData filter. Optional.
|
91
|
+
# @param top [Integer] The number of items to return. Optional.
|
92
|
+
# @param skip [Integer] The number of items to skip over before returning
|
93
|
+
# elements. Optional.
|
94
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
95
|
+
# entry to just those requested, e.g.
|
96
|
+
# Categories?$select=CategoryName,Description. Optional.
|
97
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
98
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
99
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
100
|
+
# desc. Optional.
|
101
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
102
|
+
# of the matching resources included with the resources in the response, e.g.
|
103
|
+
# Categories?$count=true. Optional.
|
74
104
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
75
105
|
# to the HTTP request.
|
76
106
|
#
|
77
107
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
78
108
|
#
|
79
|
-
def
|
109
|
+
def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
80
110
|
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, 'storage_account_name is nil' if storage_account_name.nil?
|
83
111
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
84
112
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
85
113
|
|
@@ -89,14 +117,14 @@ module Azure::ARM::DataLakeAnalytics
|
|
89
117
|
# Set Headers
|
90
118
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
91
119
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
92
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts
|
120
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts'
|
93
121
|
|
94
122
|
request_url = @base_url || @client.base_url
|
95
123
|
|
96
124
|
options = {
|
97
125
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
98
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
99
|
-
query_params: {'api-version' => @client.api_version},
|
126
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
127
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
|
100
128
|
headers: request_headers.merge(custom_headers || {}),
|
101
129
|
base_url: request_url
|
102
130
|
}
|
@@ -116,7 +144,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
116
144
|
if status_code == 200
|
117
145
|
begin
|
118
146
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
119
|
-
result_mapper =
|
147
|
+
result_mapper = DataLakeAnalyticsAccountListResult.mapper()
|
120
148
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
121
149
|
rescue Exception => e
|
122
150
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -130,62 +158,84 @@ module Azure::ARM::DataLakeAnalytics
|
|
130
158
|
end
|
131
159
|
|
132
160
|
#
|
133
|
-
#
|
134
|
-
#
|
161
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
162
|
+
# current subscription. This includes a link to the next page, if any.
|
135
163
|
#
|
136
|
-
# @param
|
137
|
-
#
|
138
|
-
# @param
|
139
|
-
#
|
140
|
-
# @param
|
141
|
-
# to
|
164
|
+
# @param filter [String] OData filter. Optional.
|
165
|
+
# @param top [Integer] The number of items to return. Optional.
|
166
|
+
# @param skip [Integer] The number of items to skip over before returning
|
167
|
+
# elements. Optional.
|
168
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
169
|
+
# entry to just those requested, e.g.
|
170
|
+
# Categories?$select=CategoryName,Description. Optional.
|
171
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
172
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
173
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
174
|
+
# desc. Optional.
|
175
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
176
|
+
# of the matching resources included with the resources in the response, e.g.
|
177
|
+
# Categories?$count=true. Optional.
|
142
178
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
179
|
# will be added to the HTTP request.
|
144
180
|
#
|
181
|
+
# @return [Array<DataLakeAnalyticsAccount>] operation results.
|
145
182
|
#
|
146
|
-
def
|
147
|
-
|
148
|
-
|
183
|
+
def list(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
184
|
+
first_page = list_as_lazy(filter, top, skip, select, orderby, count, custom_headers)
|
185
|
+
first_page.get_all_items
|
149
186
|
end
|
150
187
|
|
151
188
|
#
|
152
|
-
#
|
153
|
-
#
|
189
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
190
|
+
# current subscription. This includes a link to the next page, if any.
|
154
191
|
#
|
155
|
-
# @param
|
156
|
-
#
|
157
|
-
# @param
|
158
|
-
#
|
159
|
-
# @param
|
160
|
-
# to
|
192
|
+
# @param filter [String] OData filter. Optional.
|
193
|
+
# @param top [Integer] The number of items to return. Optional.
|
194
|
+
# @param skip [Integer] The number of items to skip over before returning
|
195
|
+
# elements. Optional.
|
196
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
197
|
+
# entry to just those requested, e.g.
|
198
|
+
# Categories?$select=CategoryName,Description. Optional.
|
199
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
200
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
201
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
202
|
+
# desc. Optional.
|
203
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
204
|
+
# of the matching resources included with the resources in the response, e.g.
|
205
|
+
# Categories?$count=true. Optional.
|
161
206
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
162
207
|
# will be added to the HTTP request.
|
163
208
|
#
|
164
209
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
165
210
|
#
|
166
|
-
def
|
167
|
-
|
211
|
+
def list_with_http_info(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
212
|
+
list_async(filter, top, skip, select, orderby, count, custom_headers).value!
|
168
213
|
end
|
169
214
|
|
170
215
|
#
|
171
|
-
#
|
172
|
-
#
|
216
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
217
|
+
# current subscription. This includes a link to the next page, if any.
|
173
218
|
#
|
174
|
-
# @param
|
175
|
-
#
|
176
|
-
# @param
|
177
|
-
#
|
178
|
-
# @param
|
179
|
-
# to
|
219
|
+
# @param filter [String] OData filter. Optional.
|
220
|
+
# @param top [Integer] The number of items to return. Optional.
|
221
|
+
# @param skip [Integer] The number of items to skip over before returning
|
222
|
+
# elements. Optional.
|
223
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
224
|
+
# entry to just those requested, e.g.
|
225
|
+
# Categories?$select=CategoryName,Description. Optional.
|
226
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
227
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
228
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
229
|
+
# desc. Optional.
|
230
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
231
|
+
# of the matching resources included with the resources in the response, e.g.
|
232
|
+
# Categories?$count=true. Optional.
|
180
233
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
181
234
|
# to the HTTP request.
|
182
235
|
#
|
183
236
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
184
237
|
#
|
185
|
-
def
|
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, 'storage_account_name is nil' if storage_account_name.nil?
|
238
|
+
def list_async(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
189
239
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
190
240
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
191
241
|
|
@@ -195,18 +245,18 @@ module Azure::ARM::DataLakeAnalytics
|
|
195
245
|
# Set Headers
|
196
246
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
197
247
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
198
|
-
path_template = '/subscriptions/{subscriptionId}/
|
248
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts'
|
199
249
|
|
200
250
|
request_url = @base_url || @client.base_url
|
201
251
|
|
202
252
|
options = {
|
203
253
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
204
|
-
path_params: {'
|
205
|
-
query_params: {'api-version' => @client.api_version},
|
254
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
255
|
+
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
|
206
256
|
headers: request_headers.merge(custom_headers || {}),
|
207
257
|
base_url: request_url
|
208
258
|
}
|
209
|
-
promise = @client.make_request_async(:
|
259
|
+
promise = @client.make_request_async(:get, path_template, options)
|
210
260
|
|
211
261
|
promise = promise.then do |result|
|
212
262
|
http_response = result.response
|
@@ -218,6 +268,16 @@ module Azure::ARM::DataLakeAnalytics
|
|
218
268
|
end
|
219
269
|
|
220
270
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
271
|
+
# Deserialize Response
|
272
|
+
if status_code == 200
|
273
|
+
begin
|
274
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
275
|
+
result_mapper = DataLakeAnalyticsAccountListResult.mapper()
|
276
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
277
|
+
rescue Exception => e
|
278
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
279
|
+
end
|
280
|
+
end
|
221
281
|
|
222
282
|
result
|
223
283
|
end
|
@@ -226,66 +286,53 @@ module Azure::ARM::DataLakeAnalytics
|
|
226
286
|
end
|
227
287
|
|
228
288
|
#
|
229
|
-
#
|
230
|
-
# account details, such as the access key and/or suffix.
|
289
|
+
# Gets details of the specified Data Lake Analytics account.
|
231
290
|
#
|
232
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
233
|
-
#
|
291
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
292
|
+
# contains the Data Lake Analytics account.
|
234
293
|
# @param account_name [String] The name of the Data Lake Analytics account to
|
235
|
-
#
|
236
|
-
# @param storage_account_name [String] The Azure Storage account to modify
|
237
|
-
# @param parameters [AddStorageAccountParameters] The parameters containing
|
238
|
-
# the access key and suffix to update the storage account with.
|
294
|
+
# retrieve.
|
239
295
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
240
296
|
# will be added to the HTTP request.
|
241
297
|
#
|
298
|
+
# @return [DataLakeAnalyticsAccount] operation results.
|
242
299
|
#
|
243
|
-
def
|
244
|
-
response =
|
245
|
-
nil
|
300
|
+
def get(resource_group_name, account_name, custom_headers = nil)
|
301
|
+
response = get_async(resource_group_name, account_name, custom_headers).value!
|
302
|
+
response.body unless response.nil?
|
246
303
|
end
|
247
304
|
|
248
305
|
#
|
249
|
-
#
|
250
|
-
# account details, such as the access key and/or suffix.
|
306
|
+
# Gets details of the specified Data Lake Analytics account.
|
251
307
|
#
|
252
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
253
|
-
#
|
308
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
309
|
+
# contains the Data Lake Analytics account.
|
254
310
|
# @param account_name [String] The name of the Data Lake Analytics account to
|
255
|
-
#
|
256
|
-
# @param storage_account_name [String] The Azure Storage account to modify
|
257
|
-
# @param parameters [AddStorageAccountParameters] The parameters containing
|
258
|
-
# the access key and suffix to update the storage account with.
|
311
|
+
# retrieve.
|
259
312
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
260
313
|
# will be added to the HTTP request.
|
261
314
|
#
|
262
315
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
263
316
|
#
|
264
|
-
def
|
265
|
-
|
317
|
+
def get_with_http_info(resource_group_name, account_name, custom_headers = nil)
|
318
|
+
get_async(resource_group_name, account_name, custom_headers).value!
|
266
319
|
end
|
267
320
|
|
268
321
|
#
|
269
|
-
#
|
270
|
-
# account details, such as the access key and/or suffix.
|
322
|
+
# Gets details of the specified Data Lake Analytics account.
|
271
323
|
#
|
272
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
273
|
-
#
|
324
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
325
|
+
# contains the Data Lake Analytics account.
|
274
326
|
# @param account_name [String] The name of the Data Lake Analytics account to
|
275
|
-
#
|
276
|
-
# @param storage_account_name [String] The Azure Storage account to modify
|
277
|
-
# @param parameters [AddStorageAccountParameters] The parameters containing
|
278
|
-
# the access key and suffix to update the storage account with.
|
327
|
+
# retrieve.
|
279
328
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
280
329
|
# to the HTTP request.
|
281
330
|
#
|
282
331
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
283
332
|
#
|
284
|
-
def
|
333
|
+
def get_async(resource_group_name, account_name, custom_headers = nil)
|
285
334
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
286
335
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
287
|
-
fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
|
288
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
289
336
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
290
337
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
291
338
|
|
@@ -295,27 +342,18 @@ module Azure::ARM::DataLakeAnalytics
|
|
295
342
|
# Set Headers
|
296
343
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
297
344
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
298
|
-
|
299
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
300
|
-
|
301
|
-
# Serialize Request
|
302
|
-
request_mapper = AddStorageAccountParameters.mapper()
|
303
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
304
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
305
|
-
|
306
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'
|
345
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
|
307
346
|
|
308
347
|
request_url = @base_url || @client.base_url
|
309
348
|
|
310
349
|
options = {
|
311
350
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
312
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'
|
351
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
313
352
|
query_params: {'api-version' => @client.api_version},
|
314
|
-
body: request_content,
|
315
353
|
headers: request_headers.merge(custom_headers || {}),
|
316
354
|
base_url: request_url
|
317
355
|
}
|
318
|
-
promise = @client.make_request_async(:
|
356
|
+
promise = @client.make_request_async(:get, path_template, options)
|
319
357
|
|
320
358
|
promise = promise.then do |result|
|
321
359
|
http_response = result.response
|
@@ -327,6 +365,16 @@ module Azure::ARM::DataLakeAnalytics
|
|
327
365
|
end
|
328
366
|
|
329
367
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
368
|
+
# Deserialize Response
|
369
|
+
if status_code == 200
|
370
|
+
begin
|
371
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
372
|
+
result_mapper = DataLakeAnalyticsAccount.mapper()
|
373
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
374
|
+
rescue Exception => e
|
375
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
376
|
+
end
|
377
|
+
end
|
330
378
|
|
331
379
|
result
|
332
380
|
end
|
@@ -335,2116 +383,82 @@ module Azure::ARM::DataLakeAnalytics
|
|
335
383
|
end
|
336
384
|
|
337
385
|
#
|
338
|
-
#
|
339
|
-
# account.
|
386
|
+
# Begins the delete delete process for the Data Lake Analytics account object
|
387
|
+
# specified by the account name.
|
340
388
|
#
|
341
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
342
|
-
#
|
389
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
390
|
+
# contains the Data Lake Analytics account.
|
343
391
|
# @param account_name [String] The name of the Data Lake Analytics account to
|
344
|
-
#
|
345
|
-
# @param storage_account_name [String] The name of the Azure Storage account
|
346
|
-
# to add
|
347
|
-
# @param parameters [AddStorageAccountParameters] The parameters containing
|
348
|
-
# the access key and optional suffix for the Azure Storage Account.
|
392
|
+
# delete
|
349
393
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
350
394
|
# will be added to the HTTP request.
|
351
395
|
#
|
352
|
-
|
353
|
-
|
354
|
-
response = add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value!
|
396
|
+
def delete(resource_group_name, account_name, custom_headers = nil)
|
397
|
+
response = delete_async(resource_group_name, account_name, custom_headers).value!
|
355
398
|
nil
|
356
399
|
end
|
357
400
|
|
358
401
|
#
|
359
|
-
#
|
360
|
-
# account.
|
361
|
-
#
|
362
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
363
|
-
# that contains the Data Lake Analytics account.
|
402
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
403
|
+
# contains the Data Lake Analytics account.
|
364
404
|
# @param account_name [String] The name of the Data Lake Analytics account to
|
365
|
-
#
|
366
|
-
# @param storage_account_name [String] The name of the Azure Storage account
|
367
|
-
# to add
|
368
|
-
# @param parameters [AddStorageAccountParameters] The parameters containing
|
369
|
-
# the access key and optional suffix for the Azure Storage Account.
|
405
|
+
# delete
|
370
406
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
371
407
|
# will be added to the HTTP request.
|
372
408
|
#
|
373
|
-
# @return [
|
374
|
-
#
|
375
|
-
def add_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil)
|
376
|
-
add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value!
|
377
|
-
end
|
378
|
-
|
379
|
-
#
|
380
|
-
# Updates the specified Data Lake Analytics account to add an Azure Storage
|
381
|
-
# account.
|
382
|
-
#
|
383
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
384
|
-
# that contains the Data Lake Analytics account.
|
385
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
386
|
-
# which to add the Azure Storage account.
|
387
|
-
# @param storage_account_name [String] The name of the Azure Storage account
|
388
|
-
# to add
|
389
|
-
# @param parameters [AddStorageAccountParameters] The parameters containing
|
390
|
-
# the access key and optional suffix for the Azure Storage Account.
|
391
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
392
|
-
# to the HTTP request.
|
393
|
-
#
|
394
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
409
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
410
|
+
# response.
|
395
411
|
#
|
396
|
-
def
|
397
|
-
|
398
|
-
|
399
|
-
fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
|
400
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
401
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
402
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
403
|
-
|
404
|
-
|
405
|
-
request_headers = {}
|
406
|
-
|
407
|
-
# Set Headers
|
408
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
409
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
410
|
-
|
411
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
412
|
-
|
413
|
-
# Serialize Request
|
414
|
-
request_mapper = AddStorageAccountParameters.mapper()
|
415
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
416
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
417
|
-
|
418
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'
|
419
|
-
|
420
|
-
request_url = @base_url || @client.base_url
|
421
|
-
|
422
|
-
options = {
|
423
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
424
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'subscriptionId' => @client.subscription_id},
|
425
|
-
query_params: {'api-version' => @client.api_version},
|
426
|
-
body: request_content,
|
427
|
-
headers: request_headers.merge(custom_headers || {}),
|
428
|
-
base_url: request_url
|
429
|
-
}
|
430
|
-
promise = @client.make_request_async(:put, path_template, options)
|
412
|
+
def delete_async(resource_group_name, account_name, custom_headers = nil)
|
413
|
+
# Send request
|
414
|
+
promise = begin_delete_async(resource_group_name, account_name, custom_headers)
|
431
415
|
|
432
|
-
promise = promise.then do |
|
433
|
-
|
434
|
-
|
435
|
-
response_content = http_response.body
|
436
|
-
unless status_code == 200
|
437
|
-
error_model = JSON.load(response_content)
|
438
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
416
|
+
promise = promise.then do |response|
|
417
|
+
# Defining deserialization method.
|
418
|
+
deserialize_method = lambda do |parsed_response|
|
439
419
|
end
|
440
420
|
|
441
|
-
|
442
|
-
|
443
|
-
result
|
421
|
+
# Waiting for response.
|
422
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
444
423
|
end
|
445
424
|
|
446
|
-
promise
|
425
|
+
promise
|
447
426
|
end
|
448
427
|
|
449
428
|
#
|
450
|
-
#
|
451
|
-
#
|
429
|
+
# Creates the specified Data Lake Analytics account. This supplies the user
|
430
|
+
# with computation services for Data Lake Analytics workloads
|
452
431
|
#
|
453
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
454
|
-
#
|
455
|
-
# @param
|
456
|
-
#
|
457
|
-
#
|
458
|
-
# from which to retrieve the blob container.
|
459
|
-
# @param container_name [String] The name of the Azure storage container to
|
460
|
-
# retrieve
|
432
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
433
|
+
# contains the Data Lake Analytics account.the account will be associated with.
|
434
|
+
# @param name [String] The name of the Data Lake Analytics account to create.
|
435
|
+
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
436
|
+
# create Data Lake Analytics account operation.
|
461
437
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
462
438
|
# will be added to the HTTP request.
|
463
439
|
#
|
464
|
-
# @return [
|
440
|
+
# @return [DataLakeAnalyticsAccount] operation results.
|
465
441
|
#
|
466
|
-
def
|
467
|
-
response =
|
442
|
+
def create(resource_group_name, name, parameters, custom_headers = nil)
|
443
|
+
response = create_async(resource_group_name, name, parameters, custom_headers).value!
|
468
444
|
response.body unless response.nil?
|
469
445
|
end
|
470
446
|
|
471
447
|
#
|
472
|
-
#
|
473
|
-
# Lake Analytics
|
474
|
-
#
|
475
|
-
# @param
|
476
|
-
#
|
477
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
478
|
-
# which to retrieve blob container.
|
479
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
480
|
-
# from which to retrieve the blob container.
|
481
|
-
# @param container_name [String] The name of the Azure storage container to
|
482
|
-
# retrieve
|
448
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
449
|
+
# contains the Data Lake Analytics account.the account will be associated with.
|
450
|
+
# @param name [String] The name of the Data Lake Analytics account to create.
|
451
|
+
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
452
|
+
# create Data Lake Analytics account operation.
|
483
453
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
484
454
|
# will be added to the HTTP request.
|
485
455
|
#
|
486
|
-
# @return [
|
456
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
457
|
+
# response.
|
487
458
|
#
|
488
|
-
def
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
#
|
493
|
-
# Gets the specified Azure Storage container associated with the given Data
|
494
|
-
# Lake Analytics and Azure Storage accounts.
|
495
|
-
#
|
496
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
497
|
-
# that contains the Data Lake Analytics account.
|
498
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
499
|
-
# which to retrieve blob container.
|
500
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
501
|
-
# from which to retrieve the blob container.
|
502
|
-
# @param container_name [String] The name of the Azure storage container to
|
503
|
-
# retrieve
|
504
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
505
|
-
# to the HTTP request.
|
506
|
-
#
|
507
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
508
|
-
#
|
509
|
-
def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
|
510
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
511
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
512
|
-
fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
|
513
|
-
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
514
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
515
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
516
|
-
|
517
|
-
|
518
|
-
request_headers = {}
|
519
|
-
|
520
|
-
# Set Headers
|
521
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
522
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
523
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}'
|
524
|
-
|
525
|
-
request_url = @base_url || @client.base_url
|
526
|
-
|
527
|
-
options = {
|
528
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
529
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'containerName' => container_name,'subscriptionId' => @client.subscription_id},
|
530
|
-
query_params: {'api-version' => @client.api_version},
|
531
|
-
headers: request_headers.merge(custom_headers || {}),
|
532
|
-
base_url: request_url
|
533
|
-
}
|
534
|
-
promise = @client.make_request_async(:get, path_template, options)
|
535
|
-
|
536
|
-
promise = promise.then do |result|
|
537
|
-
http_response = result.response
|
538
|
-
status_code = http_response.status
|
539
|
-
response_content = http_response.body
|
540
|
-
unless status_code == 200
|
541
|
-
error_model = JSON.load(response_content)
|
542
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
543
|
-
end
|
544
|
-
|
545
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
546
|
-
# Deserialize Response
|
547
|
-
if status_code == 200
|
548
|
-
begin
|
549
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
550
|
-
result_mapper = BlobContainer.mapper()
|
551
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
552
|
-
rescue Exception => e
|
553
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
554
|
-
end
|
555
|
-
end
|
556
|
-
|
557
|
-
result
|
558
|
-
end
|
559
|
-
|
560
|
-
promise.execute
|
561
|
-
end
|
562
|
-
|
563
|
-
#
|
564
|
-
# Lists the Azure Storage containers, if any, associated with the specified
|
565
|
-
# Data Lake Analytics and Azure Storage account combination. The response
|
566
|
-
# includes a link to the next page of results, if any.
|
567
|
-
#
|
568
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
569
|
-
# that contains the Data Lake Analytics account.
|
570
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
571
|
-
# which to list Azure Storage blob containers.
|
572
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
573
|
-
# from which to list blob containers.
|
574
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
575
|
-
# will be added to the HTTP request.
|
576
|
-
#
|
577
|
-
# @return [ListBlobContainersResult] which provide lazy access to pages of the
|
578
|
-
# response.
|
579
|
-
#
|
580
|
-
def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers = nil)
|
581
|
-
response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
|
582
|
-
unless response.nil?
|
583
|
-
page = response.body
|
584
|
-
page.next_method = Proc.new do |next_page_link|
|
585
|
-
list_storage_containers_next_async(next_page_link, custom_headers)
|
586
|
-
end
|
587
|
-
page
|
588
|
-
end
|
589
|
-
end
|
590
|
-
|
591
|
-
#
|
592
|
-
# Lists the Azure Storage containers, if any, associated with the specified
|
593
|
-
# Data Lake Analytics and Azure Storage account combination. The response
|
594
|
-
# includes a link to the next page of results, if any.
|
595
|
-
#
|
596
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
597
|
-
# that contains the Data Lake Analytics account.
|
598
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
599
|
-
# which to list Azure Storage blob containers.
|
600
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
601
|
-
# from which to list blob containers.
|
602
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
603
|
-
# will be added to the HTTP request.
|
604
|
-
#
|
605
|
-
# @return [Array<BlobContainer>] operation results.
|
606
|
-
#
|
607
|
-
def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers = nil)
|
608
|
-
first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers)
|
609
|
-
first_page.get_all_items
|
610
|
-
end
|
611
|
-
|
612
|
-
#
|
613
|
-
# Lists the Azure Storage containers, if any, associated with the specified
|
614
|
-
# Data Lake Analytics and Azure Storage account combination. The response
|
615
|
-
# includes a link to the next page of results, if any.
|
616
|
-
#
|
617
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
618
|
-
# that contains the Data Lake Analytics account.
|
619
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
620
|
-
# which to list Azure Storage blob containers.
|
621
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
622
|
-
# from which to list blob containers.
|
623
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
624
|
-
# will be added to the HTTP request.
|
625
|
-
#
|
626
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
627
|
-
#
|
628
|
-
def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil)
|
629
|
-
list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
|
630
|
-
end
|
631
|
-
|
632
|
-
#
|
633
|
-
# Lists the Azure Storage containers, if any, associated with the specified
|
634
|
-
# Data Lake Analytics and Azure Storage account combination. The response
|
635
|
-
# includes a link to the next page of results, if any.
|
636
|
-
#
|
637
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
638
|
-
# that contains the Data Lake Analytics account.
|
639
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
640
|
-
# which to list Azure Storage blob containers.
|
641
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
642
|
-
# from which to list blob containers.
|
643
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
644
|
-
# to the HTTP request.
|
645
|
-
#
|
646
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
647
|
-
#
|
648
|
-
def list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers = nil)
|
649
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
650
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
651
|
-
fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
|
652
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
653
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
654
|
-
|
655
|
-
|
656
|
-
request_headers = {}
|
657
|
-
|
658
|
-
# Set Headers
|
659
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
660
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
661
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers'
|
662
|
-
|
663
|
-
request_url = @base_url || @client.base_url
|
664
|
-
|
665
|
-
options = {
|
666
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
667
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'subscriptionId' => @client.subscription_id},
|
668
|
-
query_params: {'api-version' => @client.api_version},
|
669
|
-
headers: request_headers.merge(custom_headers || {}),
|
670
|
-
base_url: request_url
|
671
|
-
}
|
672
|
-
promise = @client.make_request_async(:get, path_template, options)
|
673
|
-
|
674
|
-
promise = promise.then do |result|
|
675
|
-
http_response = result.response
|
676
|
-
status_code = http_response.status
|
677
|
-
response_content = http_response.body
|
678
|
-
unless status_code == 200
|
679
|
-
error_model = JSON.load(response_content)
|
680
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
681
|
-
end
|
682
|
-
|
683
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
684
|
-
# Deserialize Response
|
685
|
-
if status_code == 200
|
686
|
-
begin
|
687
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
688
|
-
result_mapper = ListBlobContainersResult.mapper()
|
689
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
690
|
-
rescue Exception => e
|
691
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
692
|
-
end
|
693
|
-
end
|
694
|
-
|
695
|
-
result
|
696
|
-
end
|
697
|
-
|
698
|
-
promise.execute
|
699
|
-
end
|
700
|
-
|
701
|
-
#
|
702
|
-
# Gets the SAS token associated with the specified Data Lake Analytics and
|
703
|
-
# Azure Storage account and container combination.
|
704
|
-
#
|
705
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
706
|
-
# that contains the Data Lake Analytics account.
|
707
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
708
|
-
# from which an Azure Storage account's SAS token is being requested.
|
709
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
710
|
-
# for which the SAS token is being requested.
|
711
|
-
# @param container_name [String] The name of the Azure storage container for
|
712
|
-
# which the SAS token is being requested.
|
713
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
714
|
-
# will be added to the HTTP request.
|
715
|
-
#
|
716
|
-
# @return [ListSasTokensResult] which provide lazy access to pages of the
|
717
|
-
# response.
|
718
|
-
#
|
719
|
-
def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
|
720
|
-
response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value!
|
721
|
-
unless response.nil?
|
722
|
-
page = response.body
|
723
|
-
page.next_method = Proc.new do |next_page_link|
|
724
|
-
list_sas_tokens_next_async(next_page_link, custom_headers)
|
725
|
-
end
|
726
|
-
page
|
727
|
-
end
|
728
|
-
end
|
729
|
-
|
730
|
-
#
|
731
|
-
# Gets the SAS token associated with the specified Data Lake Analytics and
|
732
|
-
# Azure Storage account and container combination.
|
733
|
-
#
|
734
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
735
|
-
# that contains the Data Lake Analytics account.
|
736
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
737
|
-
# from which an Azure Storage account's SAS token is being requested.
|
738
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
739
|
-
# for which the SAS token is being requested.
|
740
|
-
# @param container_name [String] The name of the Azure storage container for
|
741
|
-
# which the SAS token is being requested.
|
742
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
743
|
-
# will be added to the HTTP request.
|
744
|
-
#
|
745
|
-
# @return [Array<SasTokenInfo>] operation results.
|
746
|
-
#
|
747
|
-
def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
|
748
|
-
first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers)
|
749
|
-
first_page.get_all_items
|
750
|
-
end
|
751
|
-
|
752
|
-
#
|
753
|
-
# Gets the SAS token associated with the specified Data Lake Analytics and
|
754
|
-
# Azure Storage account and container combination.
|
755
|
-
#
|
756
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
757
|
-
# that contains the Data Lake Analytics account.
|
758
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
759
|
-
# from which an Azure Storage account's SAS token is being requested.
|
760
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
761
|
-
# for which the SAS token is being requested.
|
762
|
-
# @param container_name [String] The name of the Azure storage container for
|
763
|
-
# which the SAS token is being requested.
|
764
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
765
|
-
# will be added to the HTTP request.
|
766
|
-
#
|
767
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
768
|
-
#
|
769
|
-
def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
|
770
|
-
list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value!
|
771
|
-
end
|
772
|
-
|
773
|
-
#
|
774
|
-
# Gets the SAS token associated with the specified Data Lake Analytics and
|
775
|
-
# Azure Storage account and container combination.
|
776
|
-
#
|
777
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
778
|
-
# that contains the Data Lake Analytics account.
|
779
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
780
|
-
# from which an Azure Storage account's SAS token is being requested.
|
781
|
-
# @param storage_account_name [String] The name of the Azure storage account
|
782
|
-
# for which the SAS token is being requested.
|
783
|
-
# @param container_name [String] The name of the Azure storage container for
|
784
|
-
# which the SAS token is being requested.
|
785
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
786
|
-
# to the HTTP request.
|
787
|
-
#
|
788
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
789
|
-
#
|
790
|
-
def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
|
791
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
792
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
793
|
-
fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
|
794
|
-
fail ArgumentError, 'container_name is nil' if container_name.nil?
|
795
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
796
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
797
|
-
|
798
|
-
|
799
|
-
request_headers = {}
|
800
|
-
|
801
|
-
# Set Headers
|
802
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
803
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
804
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}/listSasTokens'
|
805
|
-
|
806
|
-
request_url = @base_url || @client.base_url
|
807
|
-
|
808
|
-
options = {
|
809
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
810
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'containerName' => container_name,'subscriptionId' => @client.subscription_id},
|
811
|
-
query_params: {'api-version' => @client.api_version},
|
812
|
-
headers: request_headers.merge(custom_headers || {}),
|
813
|
-
base_url: request_url
|
814
|
-
}
|
815
|
-
promise = @client.make_request_async(:post, path_template, options)
|
816
|
-
|
817
|
-
promise = promise.then do |result|
|
818
|
-
http_response = result.response
|
819
|
-
status_code = http_response.status
|
820
|
-
response_content = http_response.body
|
821
|
-
unless status_code == 200
|
822
|
-
error_model = JSON.load(response_content)
|
823
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
824
|
-
end
|
825
|
-
|
826
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
827
|
-
# Deserialize Response
|
828
|
-
if status_code == 200
|
829
|
-
begin
|
830
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
831
|
-
result_mapper = ListSasTokensResult.mapper()
|
832
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
833
|
-
rescue Exception => e
|
834
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
835
|
-
end
|
836
|
-
end
|
837
|
-
|
838
|
-
result
|
839
|
-
end
|
840
|
-
|
841
|
-
promise.execute
|
842
|
-
end
|
843
|
-
|
844
|
-
#
|
845
|
-
# Gets the specified Data Lake Store account details in the specified Data
|
846
|
-
# Lake Analytics account.
|
847
|
-
#
|
848
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
849
|
-
# that contains the Data Lake Analytics account.
|
850
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
851
|
-
# from which to retrieve the Data Lake Store account details.
|
852
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
853
|
-
# account to retrieve
|
854
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
855
|
-
# will be added to the HTTP request.
|
856
|
-
#
|
857
|
-
# @return [DataLakeStoreAccountInfo] operation results.
|
858
|
-
#
|
859
|
-
def get_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
860
|
-
response = get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
861
|
-
response.body unless response.nil?
|
862
|
-
end
|
863
|
-
|
864
|
-
#
|
865
|
-
# Gets the specified Data Lake Store account details in the specified Data
|
866
|
-
# Lake Analytics account.
|
867
|
-
#
|
868
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
869
|
-
# that contains the Data Lake Analytics account.
|
870
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
871
|
-
# from which to retrieve the Data Lake Store account details.
|
872
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
873
|
-
# account to retrieve
|
874
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
875
|
-
# will be added to the HTTP request.
|
876
|
-
#
|
877
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
878
|
-
#
|
879
|
-
def get_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
880
|
-
get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
881
|
-
end
|
882
|
-
|
883
|
-
#
|
884
|
-
# Gets the specified Data Lake Store account details in the specified Data
|
885
|
-
# Lake Analytics account.
|
886
|
-
#
|
887
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
888
|
-
# that contains the Data Lake Analytics account.
|
889
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
890
|
-
# from which to retrieve the Data Lake Store account details.
|
891
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
892
|
-
# account to retrieve
|
893
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
894
|
-
# to the HTTP request.
|
895
|
-
#
|
896
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
897
|
-
#
|
898
|
-
def get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
899
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
900
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
901
|
-
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
902
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
903
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
904
|
-
|
905
|
-
|
906
|
-
request_headers = {}
|
907
|
-
|
908
|
-
# Set Headers
|
909
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
910
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
911
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
912
|
-
|
913
|
-
request_url = @base_url || @client.base_url
|
914
|
-
|
915
|
-
options = {
|
916
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
917
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
918
|
-
query_params: {'api-version' => @client.api_version},
|
919
|
-
headers: request_headers.merge(custom_headers || {}),
|
920
|
-
base_url: request_url
|
921
|
-
}
|
922
|
-
promise = @client.make_request_async(:get, path_template, options)
|
923
|
-
|
924
|
-
promise = promise.then do |result|
|
925
|
-
http_response = result.response
|
926
|
-
status_code = http_response.status
|
927
|
-
response_content = http_response.body
|
928
|
-
unless status_code == 200
|
929
|
-
error_model = JSON.load(response_content)
|
930
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
931
|
-
end
|
932
|
-
|
933
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
934
|
-
# Deserialize Response
|
935
|
-
if status_code == 200
|
936
|
-
begin
|
937
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
938
|
-
result_mapper = DataLakeStoreAccountInfo.mapper()
|
939
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
940
|
-
rescue Exception => e
|
941
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
942
|
-
end
|
943
|
-
end
|
944
|
-
|
945
|
-
result
|
946
|
-
end
|
947
|
-
|
948
|
-
promise.execute
|
949
|
-
end
|
950
|
-
|
951
|
-
#
|
952
|
-
# Updates the Data Lake Analytics account specified to remove the specified
|
953
|
-
# Data Lake Store account.
|
954
|
-
#
|
955
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
956
|
-
# that contains the Data Lake Analytics account.
|
957
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
958
|
-
# from which to remove the Data Lake Store account.
|
959
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
960
|
-
# account to remove
|
961
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
962
|
-
# will be added to the HTTP request.
|
963
|
-
#
|
964
|
-
#
|
965
|
-
def delete_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
966
|
-
response = delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
967
|
-
nil
|
968
|
-
end
|
969
|
-
|
970
|
-
#
|
971
|
-
# Updates the Data Lake Analytics account specified to remove the specified
|
972
|
-
# Data Lake Store account.
|
973
|
-
#
|
974
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
975
|
-
# that contains the Data Lake Analytics account.
|
976
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
977
|
-
# from which to remove the Data Lake Store account.
|
978
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
979
|
-
# account to remove
|
980
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
981
|
-
# will be added to the HTTP request.
|
982
|
-
#
|
983
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
984
|
-
#
|
985
|
-
def delete_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
986
|
-
delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
|
987
|
-
end
|
988
|
-
|
989
|
-
#
|
990
|
-
# Updates the Data Lake Analytics account specified to remove the specified
|
991
|
-
# Data Lake Store account.
|
992
|
-
#
|
993
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
994
|
-
# that contains the Data Lake Analytics account.
|
995
|
-
# @param account_name [String] The name of the Data Lake Analytics account
|
996
|
-
# from which to remove the Data Lake Store account.
|
997
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
998
|
-
# account to remove
|
999
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1000
|
-
# to the HTTP request.
|
1001
|
-
#
|
1002
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1003
|
-
#
|
1004
|
-
def delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
|
1005
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1006
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
1007
|
-
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
1008
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1009
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1010
|
-
|
1011
|
-
|
1012
|
-
request_headers = {}
|
1013
|
-
|
1014
|
-
# Set Headers
|
1015
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1016
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1017
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
1018
|
-
|
1019
|
-
request_url = @base_url || @client.base_url
|
1020
|
-
|
1021
|
-
options = {
|
1022
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1023
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
1024
|
-
query_params: {'api-version' => @client.api_version},
|
1025
|
-
headers: request_headers.merge(custom_headers || {}),
|
1026
|
-
base_url: request_url
|
1027
|
-
}
|
1028
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
1029
|
-
|
1030
|
-
promise = promise.then do |result|
|
1031
|
-
http_response = result.response
|
1032
|
-
status_code = http_response.status
|
1033
|
-
response_content = http_response.body
|
1034
|
-
unless status_code == 200
|
1035
|
-
error_model = JSON.load(response_content)
|
1036
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1037
|
-
end
|
1038
|
-
|
1039
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1040
|
-
|
1041
|
-
result
|
1042
|
-
end
|
1043
|
-
|
1044
|
-
promise.execute
|
1045
|
-
end
|
1046
|
-
|
1047
|
-
#
|
1048
|
-
# Updates the specified Data Lake Analytics account to include the additional
|
1049
|
-
# Data Lake Store account.
|
1050
|
-
#
|
1051
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1052
|
-
# that contains the Data Lake Analytics account.
|
1053
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
1054
|
-
# which to add the Data Lake Store account.
|
1055
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
1056
|
-
# account to add.
|
1057
|
-
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
1058
|
-
# Store account.
|
1059
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1060
|
-
# will be added to the HTTP request.
|
1061
|
-
#
|
1062
|
-
#
|
1063
|
-
def add_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
1064
|
-
response = add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
1065
|
-
nil
|
1066
|
-
end
|
1067
|
-
|
1068
|
-
#
|
1069
|
-
# Updates the specified Data Lake Analytics account to include the additional
|
1070
|
-
# Data Lake Store account.
|
1071
|
-
#
|
1072
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1073
|
-
# that contains the Data Lake Analytics account.
|
1074
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
1075
|
-
# which to add the Data Lake Store account.
|
1076
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
1077
|
-
# account to add.
|
1078
|
-
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
1079
|
-
# Store account.
|
1080
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1081
|
-
# will be added to the HTTP request.
|
1082
|
-
#
|
1083
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1084
|
-
#
|
1085
|
-
def add_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
1086
|
-
add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
1087
|
-
end
|
1088
|
-
|
1089
|
-
#
|
1090
|
-
# Updates the specified Data Lake Analytics account to include the additional
|
1091
|
-
# Data Lake Store account.
|
1092
|
-
#
|
1093
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1094
|
-
# that contains the Data Lake Analytics account.
|
1095
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
1096
|
-
# which to add the Data Lake Store account.
|
1097
|
-
# @param data_lake_store_account_name [String] The name of the Data Lake Store
|
1098
|
-
# account to add.
|
1099
|
-
# @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
|
1100
|
-
# Store account.
|
1101
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1102
|
-
# to the HTTP request.
|
1103
|
-
#
|
1104
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1105
|
-
#
|
1106
|
-
def add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
1107
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1108
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
1109
|
-
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
1110
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
1111
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1112
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1113
|
-
|
1114
|
-
|
1115
|
-
request_headers = {}
|
1116
|
-
|
1117
|
-
# Set Headers
|
1118
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1119
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1120
|
-
|
1121
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1122
|
-
|
1123
|
-
# Serialize Request
|
1124
|
-
request_mapper = AddDataLakeStoreParameters.mapper()
|
1125
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
1126
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1127
|
-
|
1128
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
|
1129
|
-
|
1130
|
-
request_url = @base_url || @client.base_url
|
1131
|
-
|
1132
|
-
options = {
|
1133
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1134
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
|
1135
|
-
query_params: {'api-version' => @client.api_version},
|
1136
|
-
body: request_content,
|
1137
|
-
headers: request_headers.merge(custom_headers || {}),
|
1138
|
-
base_url: request_url
|
1139
|
-
}
|
1140
|
-
promise = @client.make_request_async(:put, path_template, options)
|
1141
|
-
|
1142
|
-
promise = promise.then do |result|
|
1143
|
-
http_response = result.response
|
1144
|
-
status_code = http_response.status
|
1145
|
-
response_content = http_response.body
|
1146
|
-
unless status_code == 200
|
1147
|
-
error_model = JSON.load(response_content)
|
1148
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1149
|
-
end
|
1150
|
-
|
1151
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1152
|
-
|
1153
|
-
result
|
1154
|
-
end
|
1155
|
-
|
1156
|
-
promise.execute
|
1157
|
-
end
|
1158
|
-
|
1159
|
-
#
|
1160
|
-
# Gets the first page of Azure Storage accounts, if any, linked to the
|
1161
|
-
# specified Data Lake Analytics account. The response includes a link to the
|
1162
|
-
# next page, if any.
|
1163
|
-
#
|
1164
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1165
|
-
# that contains the Data Lake Analytics account.
|
1166
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1167
|
-
# which to list Azure Storage accounts.
|
1168
|
-
# @param filter [String] The OData filter. Optional.
|
1169
|
-
# @param top [Integer] The number of items to return. Optional.
|
1170
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1171
|
-
# elements. Optional.
|
1172
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1173
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1174
|
-
# Product data in line with each Category entry. Optional.
|
1175
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1176
|
-
# entry to just those requested, e.g.
|
1177
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1178
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1179
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1180
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1181
|
-
# desc. Optional.
|
1182
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1183
|
-
# of the matching resources included with the resources in the response, e.g.
|
1184
|
-
# Categories?$count=true. Optional.
|
1185
|
-
# @param search [String] A free form search. A free-text search expression to
|
1186
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1187
|
-
# Categories?$search=blue OR green. Optional.
|
1188
|
-
# @param format [String] The desired return format. Return the response in
|
1189
|
-
# particular formatxii without access to request headers for standard
|
1190
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1191
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1192
|
-
# will be added to the HTTP request.
|
1193
|
-
#
|
1194
|
-
# @return [DataLakeAnalyticsAccountListStorageAccountsResult] which provide
|
1195
|
-
# lazy access to pages of the response.
|
1196
|
-
#
|
1197
|
-
def list_storage_accounts_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1198
|
-
response = list_storage_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1199
|
-
unless response.nil?
|
1200
|
-
page = response.body
|
1201
|
-
page.next_method = Proc.new do |next_page_link|
|
1202
|
-
list_storage_accounts_next_async(next_page_link, custom_headers)
|
1203
|
-
end
|
1204
|
-
page
|
1205
|
-
end
|
1206
|
-
end
|
1207
|
-
|
1208
|
-
#
|
1209
|
-
# Gets the first page of Azure Storage accounts, if any, linked to the
|
1210
|
-
# specified Data Lake Analytics account. The response includes a link to the
|
1211
|
-
# next page, if any.
|
1212
|
-
#
|
1213
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1214
|
-
# that contains the Data Lake Analytics account.
|
1215
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1216
|
-
# which to list Azure Storage accounts.
|
1217
|
-
# @param filter [String] The OData filter. Optional.
|
1218
|
-
# @param top [Integer] The number of items to return. Optional.
|
1219
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1220
|
-
# elements. Optional.
|
1221
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1222
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1223
|
-
# Product data in line with each Category entry. Optional.
|
1224
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1225
|
-
# entry to just those requested, e.g.
|
1226
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1227
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1228
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1229
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1230
|
-
# desc. Optional.
|
1231
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1232
|
-
# of the matching resources included with the resources in the response, e.g.
|
1233
|
-
# Categories?$count=true. Optional.
|
1234
|
-
# @param search [String] A free form search. A free-text search expression to
|
1235
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1236
|
-
# Categories?$search=blue OR green. Optional.
|
1237
|
-
# @param format [String] The desired return format. Return the response in
|
1238
|
-
# particular formatxii without access to request headers for standard
|
1239
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1240
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1241
|
-
# will be added to the HTTP request.
|
1242
|
-
#
|
1243
|
-
# @return [Array<StorageAccountInfo>] operation results.
|
1244
|
-
#
|
1245
|
-
def list_storage_accounts(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1246
|
-
first_page = list_storage_accounts_as_lazy(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers)
|
1247
|
-
first_page.get_all_items
|
1248
|
-
end
|
1249
|
-
|
1250
|
-
#
|
1251
|
-
# Gets the first page of Azure Storage accounts, if any, linked to the
|
1252
|
-
# specified Data Lake Analytics account. The response includes a link to the
|
1253
|
-
# next page, if any.
|
1254
|
-
#
|
1255
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1256
|
-
# that contains the Data Lake Analytics account.
|
1257
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1258
|
-
# which to list Azure Storage accounts.
|
1259
|
-
# @param filter [String] The OData filter. Optional.
|
1260
|
-
# @param top [Integer] The number of items to return. Optional.
|
1261
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1262
|
-
# elements. Optional.
|
1263
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1264
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1265
|
-
# Product data in line with each Category entry. Optional.
|
1266
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1267
|
-
# entry to just those requested, e.g.
|
1268
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1269
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1270
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1271
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1272
|
-
# desc. Optional.
|
1273
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1274
|
-
# of the matching resources included with the resources in the response, e.g.
|
1275
|
-
# Categories?$count=true. Optional.
|
1276
|
-
# @param search [String] A free form search. A free-text search expression to
|
1277
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1278
|
-
# Categories?$search=blue OR green. Optional.
|
1279
|
-
# @param format [String] The desired return format. Return the response in
|
1280
|
-
# particular formatxii without access to request headers for standard
|
1281
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1282
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1283
|
-
# will be added to the HTTP request.
|
1284
|
-
#
|
1285
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1286
|
-
#
|
1287
|
-
def list_storage_accounts_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1288
|
-
list_storage_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1289
|
-
end
|
1290
|
-
|
1291
|
-
#
|
1292
|
-
# Gets the first page of Azure Storage accounts, if any, linked to the
|
1293
|
-
# specified Data Lake Analytics account. The response includes a link to the
|
1294
|
-
# next page, if any.
|
1295
|
-
#
|
1296
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1297
|
-
# that contains the Data Lake Analytics account.
|
1298
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1299
|
-
# which to list Azure Storage accounts.
|
1300
|
-
# @param filter [String] The OData filter. Optional.
|
1301
|
-
# @param top [Integer] The number of items to return. Optional.
|
1302
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1303
|
-
# elements. Optional.
|
1304
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1305
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1306
|
-
# Product data in line with each Category entry. Optional.
|
1307
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1308
|
-
# entry to just those requested, e.g.
|
1309
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1310
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1311
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1312
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1313
|
-
# desc. Optional.
|
1314
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1315
|
-
# of the matching resources included with the resources in the response, e.g.
|
1316
|
-
# Categories?$count=true. Optional.
|
1317
|
-
# @param search [String] A free form search. A free-text search expression to
|
1318
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1319
|
-
# Categories?$search=blue OR green. Optional.
|
1320
|
-
# @param format [String] The desired return format. Return the response in
|
1321
|
-
# particular formatxii without access to request headers for standard
|
1322
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1323
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1324
|
-
# to the HTTP request.
|
1325
|
-
#
|
1326
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1327
|
-
#
|
1328
|
-
def list_storage_accounts_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1329
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1330
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
1331
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1332
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1333
|
-
|
1334
|
-
|
1335
|
-
request_headers = {}
|
1336
|
-
|
1337
|
-
# Set Headers
|
1338
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1339
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1340
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/'
|
1341
|
-
|
1342
|
-
request_url = @base_url || @client.base_url
|
1343
|
-
|
1344
|
-
options = {
|
1345
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1346
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
1347
|
-
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$expand' => expand,'$select' => select,'$orderby' => orderby,'$count' => count,'$search' => search,'$format' => format,'api-version' => @client.api_version},
|
1348
|
-
headers: request_headers.merge(custom_headers || {}),
|
1349
|
-
base_url: request_url
|
1350
|
-
}
|
1351
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1352
|
-
|
1353
|
-
promise = promise.then do |result|
|
1354
|
-
http_response = result.response
|
1355
|
-
status_code = http_response.status
|
1356
|
-
response_content = http_response.body
|
1357
|
-
unless status_code == 200
|
1358
|
-
error_model = JSON.load(response_content)
|
1359
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1360
|
-
end
|
1361
|
-
|
1362
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1363
|
-
# Deserialize Response
|
1364
|
-
if status_code == 200
|
1365
|
-
begin
|
1366
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1367
|
-
result_mapper = DataLakeAnalyticsAccountListStorageAccountsResult.mapper()
|
1368
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1369
|
-
rescue Exception => e
|
1370
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1371
|
-
end
|
1372
|
-
end
|
1373
|
-
|
1374
|
-
result
|
1375
|
-
end
|
1376
|
-
|
1377
|
-
promise.execute
|
1378
|
-
end
|
1379
|
-
|
1380
|
-
#
|
1381
|
-
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
1382
|
-
# Lake Analytics account. The response includes a link to the next page, if
|
1383
|
-
# any.
|
1384
|
-
#
|
1385
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1386
|
-
# that contains the Data Lake Analytics account.
|
1387
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1388
|
-
# which to list Data Lake Store accounts.
|
1389
|
-
# @param filter [String] OData filter. Optional.
|
1390
|
-
# @param top [Integer] The number of items to return. Optional.
|
1391
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1392
|
-
# elements. Optional.
|
1393
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1394
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1395
|
-
# Product data in line with each Category entry. Optional.
|
1396
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1397
|
-
# entry to just those requested, e.g.
|
1398
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1399
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1400
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1401
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1402
|
-
# desc. Optional.
|
1403
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1404
|
-
# of the matching resources included with the resources in the response, e.g.
|
1405
|
-
# Categories?$count=true. Optional.
|
1406
|
-
# @param search [String] A free form search. A free-text search expression to
|
1407
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1408
|
-
# Categories?$search=blue OR green. Optional.
|
1409
|
-
# @param format [String] The desired return format. Return the response in
|
1410
|
-
# particular formatxii without access to request headers for standard
|
1411
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1412
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1413
|
-
# will be added to the HTTP request.
|
1414
|
-
#
|
1415
|
-
# @return [DataLakeAnalyticsAccountListDataLakeStoreResult] which provide lazy
|
1416
|
-
# access to pages of the response.
|
1417
|
-
#
|
1418
|
-
def list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1419
|
-
response = list_data_lake_store_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1420
|
-
unless response.nil?
|
1421
|
-
page = response.body
|
1422
|
-
page.next_method = Proc.new do |next_page_link|
|
1423
|
-
list_data_lake_store_accounts_next_async(next_page_link, custom_headers)
|
1424
|
-
end
|
1425
|
-
page
|
1426
|
-
end
|
1427
|
-
end
|
1428
|
-
|
1429
|
-
#
|
1430
|
-
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
1431
|
-
# Lake Analytics account. The response includes a link to the next page, if
|
1432
|
-
# any.
|
1433
|
-
#
|
1434
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1435
|
-
# that contains the Data Lake Analytics account.
|
1436
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1437
|
-
# which to list Data Lake Store accounts.
|
1438
|
-
# @param filter [String] OData filter. Optional.
|
1439
|
-
# @param top [Integer] The number of items to return. Optional.
|
1440
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1441
|
-
# elements. Optional.
|
1442
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1443
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1444
|
-
# Product data in line with each Category entry. Optional.
|
1445
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1446
|
-
# entry to just those requested, e.g.
|
1447
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1448
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1449
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1450
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1451
|
-
# desc. Optional.
|
1452
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1453
|
-
# of the matching resources included with the resources in the response, e.g.
|
1454
|
-
# Categories?$count=true. Optional.
|
1455
|
-
# @param search [String] A free form search. A free-text search expression to
|
1456
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1457
|
-
# Categories?$search=blue OR green. Optional.
|
1458
|
-
# @param format [String] The desired return format. Return the response in
|
1459
|
-
# particular formatxii without access to request headers for standard
|
1460
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1461
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1462
|
-
# will be added to the HTTP request.
|
1463
|
-
#
|
1464
|
-
# @return [Array<DataLakeStoreAccountInfo>] operation results.
|
1465
|
-
#
|
1466
|
-
def list_data_lake_store_accounts(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1467
|
-
first_page = list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers)
|
1468
|
-
first_page.get_all_items
|
1469
|
-
end
|
1470
|
-
|
1471
|
-
#
|
1472
|
-
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
1473
|
-
# Lake Analytics account. The response includes a link to the next page, if
|
1474
|
-
# any.
|
1475
|
-
#
|
1476
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1477
|
-
# that contains the Data Lake Analytics account.
|
1478
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1479
|
-
# which to list Data Lake Store accounts.
|
1480
|
-
# @param filter [String] OData filter. Optional.
|
1481
|
-
# @param top [Integer] The number of items to return. Optional.
|
1482
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1483
|
-
# elements. Optional.
|
1484
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1485
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1486
|
-
# Product data in line with each Category entry. Optional.
|
1487
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1488
|
-
# entry to just those requested, e.g.
|
1489
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1490
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1491
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1492
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1493
|
-
# desc. Optional.
|
1494
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1495
|
-
# of the matching resources included with the resources in the response, e.g.
|
1496
|
-
# Categories?$count=true. Optional.
|
1497
|
-
# @param search [String] A free form search. A free-text search expression to
|
1498
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1499
|
-
# Categories?$search=blue OR green. Optional.
|
1500
|
-
# @param format [String] The desired return format. Return the response in
|
1501
|
-
# particular formatxii without access to request headers for standard
|
1502
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1503
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1504
|
-
# will be added to the HTTP request.
|
1505
|
-
#
|
1506
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1507
|
-
#
|
1508
|
-
def list_data_lake_store_accounts_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1509
|
-
list_data_lake_store_accounts_async(resource_group_name, account_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1510
|
-
end
|
1511
|
-
|
1512
|
-
#
|
1513
|
-
# Gets the first page of Data Lake Store accounts linked to the specified Data
|
1514
|
-
# Lake Analytics account. The response includes a link to the next page, if
|
1515
|
-
# any.
|
1516
|
-
#
|
1517
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1518
|
-
# that contains the Data Lake Analytics account.
|
1519
|
-
# @param account_name [String] The name of the Data Lake Analytics account for
|
1520
|
-
# which to list Data Lake Store accounts.
|
1521
|
-
# @param filter [String] OData filter. Optional.
|
1522
|
-
# @param top [Integer] The number of items to return. Optional.
|
1523
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1524
|
-
# elements. Optional.
|
1525
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1526
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1527
|
-
# Product data in line with each Category entry. Optional.
|
1528
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1529
|
-
# entry to just those requested, e.g.
|
1530
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1531
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1532
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1533
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1534
|
-
# desc. Optional.
|
1535
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1536
|
-
# of the matching resources included with the resources in the response, e.g.
|
1537
|
-
# Categories?$count=true. Optional.
|
1538
|
-
# @param search [String] A free form search. A free-text search expression to
|
1539
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1540
|
-
# Categories?$search=blue OR green. Optional.
|
1541
|
-
# @param format [String] The desired return format. Return the response in
|
1542
|
-
# particular formatxii without access to request headers for standard
|
1543
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1544
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1545
|
-
# to the HTTP request.
|
1546
|
-
#
|
1547
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1548
|
-
#
|
1549
|
-
def list_data_lake_store_accounts_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1550
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1551
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
1552
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1553
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1554
|
-
|
1555
|
-
|
1556
|
-
request_headers = {}
|
1557
|
-
|
1558
|
-
# Set Headers
|
1559
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1560
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1561
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/'
|
1562
|
-
|
1563
|
-
request_url = @base_url || @client.base_url
|
1564
|
-
|
1565
|
-
options = {
|
1566
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1567
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
1568
|
-
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$expand' => expand,'$select' => select,'$orderby' => orderby,'$count' => count,'$search' => search,'$format' => format,'api-version' => @client.api_version},
|
1569
|
-
headers: request_headers.merge(custom_headers || {}),
|
1570
|
-
base_url: request_url
|
1571
|
-
}
|
1572
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1573
|
-
|
1574
|
-
promise = promise.then do |result|
|
1575
|
-
http_response = result.response
|
1576
|
-
status_code = http_response.status
|
1577
|
-
response_content = http_response.body
|
1578
|
-
unless status_code == 200
|
1579
|
-
error_model = JSON.load(response_content)
|
1580
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1581
|
-
end
|
1582
|
-
|
1583
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1584
|
-
# Deserialize Response
|
1585
|
-
if status_code == 200
|
1586
|
-
begin
|
1587
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1588
|
-
result_mapper = DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
|
1589
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1590
|
-
rescue Exception => e
|
1591
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1592
|
-
end
|
1593
|
-
end
|
1594
|
-
|
1595
|
-
result
|
1596
|
-
end
|
1597
|
-
|
1598
|
-
promise.execute
|
1599
|
-
end
|
1600
|
-
|
1601
|
-
#
|
1602
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
1603
|
-
# specific resource group. This includes a link to the next page, if any.
|
1604
|
-
#
|
1605
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1606
|
-
# that contains the Data Lake Analytics account.
|
1607
|
-
# @param filter [String] OData filter. Optional.
|
1608
|
-
# @param top [Integer] The number of items to return. Optional.
|
1609
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1610
|
-
# elements. Optional.
|
1611
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1612
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1613
|
-
# Product data in line with each Category entry. Optional.
|
1614
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1615
|
-
# entry to just those requested, e.g.
|
1616
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1617
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1618
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1619
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1620
|
-
# desc. Optional.
|
1621
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1622
|
-
# of the matching resources included with the resources in the response, e.g.
|
1623
|
-
# Categories?$count=true. Optional.
|
1624
|
-
# @param search [String] A free form search. A free-text search expression to
|
1625
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1626
|
-
# Categories?$search=blue OR green. Optional.
|
1627
|
-
# @param format [String] The return format. Return the response in particular
|
1628
|
-
# formatxii without access to request headers for standard content-type
|
1629
|
-
# negotiation (e.g Orders?$format=json). Optional.
|
1630
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1631
|
-
# will be added to the HTTP request.
|
1632
|
-
#
|
1633
|
-
# @return [DataLakeAnalyticsAccountListResult] which provide lazy access to
|
1634
|
-
# pages of the response.
|
1635
|
-
#
|
1636
|
-
def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1637
|
-
response = list_by_resource_group_async(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1638
|
-
unless response.nil?
|
1639
|
-
page = response.body
|
1640
|
-
page.next_method = Proc.new do |next_page_link|
|
1641
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1642
|
-
end
|
1643
|
-
page
|
1644
|
-
end
|
1645
|
-
end
|
1646
|
-
|
1647
|
-
#
|
1648
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
1649
|
-
# specific resource group. This includes a link to the next page, if any.
|
1650
|
-
#
|
1651
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1652
|
-
# that contains the Data Lake Analytics account.
|
1653
|
-
# @param filter [String] OData filter. Optional.
|
1654
|
-
# @param top [Integer] The number of items to return. Optional.
|
1655
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1656
|
-
# elements. Optional.
|
1657
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1658
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1659
|
-
# Product data in line with each Category entry. Optional.
|
1660
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1661
|
-
# entry to just those requested, e.g.
|
1662
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1663
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1664
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1665
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1666
|
-
# desc. Optional.
|
1667
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1668
|
-
# of the matching resources included with the resources in the response, e.g.
|
1669
|
-
# Categories?$count=true. Optional.
|
1670
|
-
# @param search [String] A free form search. A free-text search expression to
|
1671
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1672
|
-
# Categories?$search=blue OR green. Optional.
|
1673
|
-
# @param format [String] The return format. Return the response in particular
|
1674
|
-
# formatxii without access to request headers for standard content-type
|
1675
|
-
# negotiation (e.g Orders?$format=json). Optional.
|
1676
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1677
|
-
# will be added to the HTTP request.
|
1678
|
-
#
|
1679
|
-
# @return [Array<DataLakeAnalyticsAccount>] operation results.
|
1680
|
-
#
|
1681
|
-
def list_by_resource_group(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1682
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers)
|
1683
|
-
first_page.get_all_items
|
1684
|
-
end
|
1685
|
-
|
1686
|
-
#
|
1687
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
1688
|
-
# specific resource group. This includes a link to the next page, if any.
|
1689
|
-
#
|
1690
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1691
|
-
# that contains the Data Lake Analytics account.
|
1692
|
-
# @param filter [String] OData filter. Optional.
|
1693
|
-
# @param top [Integer] The number of items to return. Optional.
|
1694
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1695
|
-
# elements. Optional.
|
1696
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1697
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1698
|
-
# Product data in line with each Category entry. Optional.
|
1699
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1700
|
-
# entry to just those requested, e.g.
|
1701
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1702
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1703
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1704
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1705
|
-
# desc. Optional.
|
1706
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1707
|
-
# of the matching resources included with the resources in the response, e.g.
|
1708
|
-
# Categories?$count=true. Optional.
|
1709
|
-
# @param search [String] A free form search. A free-text search expression to
|
1710
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1711
|
-
# Categories?$search=blue OR green. Optional.
|
1712
|
-
# @param format [String] The return format. Return the response in particular
|
1713
|
-
# formatxii without access to request headers for standard content-type
|
1714
|
-
# negotiation (e.g Orders?$format=json). Optional.
|
1715
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1716
|
-
# will be added to the HTTP request.
|
1717
|
-
#
|
1718
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1719
|
-
#
|
1720
|
-
def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1721
|
-
list_by_resource_group_async(resource_group_name, filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1722
|
-
end
|
1723
|
-
|
1724
|
-
#
|
1725
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
1726
|
-
# specific resource group. This includes a link to the next page, if any.
|
1727
|
-
#
|
1728
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
1729
|
-
# that contains the Data Lake Analytics account.
|
1730
|
-
# @param filter [String] OData filter. Optional.
|
1731
|
-
# @param top [Integer] The number of items to return. Optional.
|
1732
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1733
|
-
# elements. Optional.
|
1734
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1735
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1736
|
-
# Product data in line with each Category entry. Optional.
|
1737
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1738
|
-
# entry to just those requested, e.g.
|
1739
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1740
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1741
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1742
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1743
|
-
# desc. Optional.
|
1744
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1745
|
-
# of the matching resources included with the resources in the response, e.g.
|
1746
|
-
# Categories?$count=true. Optional.
|
1747
|
-
# @param search [String] A free form search. A free-text search expression to
|
1748
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1749
|
-
# Categories?$search=blue OR green. Optional.
|
1750
|
-
# @param format [String] The return format. Return the response in particular
|
1751
|
-
# formatxii without access to request headers for standard content-type
|
1752
|
-
# negotiation (e.g Orders?$format=json). Optional.
|
1753
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1754
|
-
# to the HTTP request.
|
1755
|
-
#
|
1756
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1757
|
-
#
|
1758
|
-
def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1759
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1760
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1761
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1762
|
-
|
1763
|
-
|
1764
|
-
request_headers = {}
|
1765
|
-
|
1766
|
-
# Set Headers
|
1767
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1768
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1769
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts'
|
1770
|
-
|
1771
|
-
request_url = @base_url || @client.base_url
|
1772
|
-
|
1773
|
-
options = {
|
1774
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1775
|
-
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
1776
|
-
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$expand' => expand,'$select' => select,'$orderby' => orderby,'$count' => count,'$search' => search,'$format' => format,'api-version' => @client.api_version},
|
1777
|
-
headers: request_headers.merge(custom_headers || {}),
|
1778
|
-
base_url: request_url
|
1779
|
-
}
|
1780
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1781
|
-
|
1782
|
-
promise = promise.then do |result|
|
1783
|
-
http_response = result.response
|
1784
|
-
status_code = http_response.status
|
1785
|
-
response_content = http_response.body
|
1786
|
-
unless status_code == 200
|
1787
|
-
error_model = JSON.load(response_content)
|
1788
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1789
|
-
end
|
1790
|
-
|
1791
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1792
|
-
# Deserialize Response
|
1793
|
-
if status_code == 200
|
1794
|
-
begin
|
1795
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1796
|
-
result_mapper = DataLakeAnalyticsAccountListResult.mapper()
|
1797
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1798
|
-
rescue Exception => e
|
1799
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1800
|
-
end
|
1801
|
-
end
|
1802
|
-
|
1803
|
-
result
|
1804
|
-
end
|
1805
|
-
|
1806
|
-
promise.execute
|
1807
|
-
end
|
1808
|
-
|
1809
|
-
#
|
1810
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
1811
|
-
# current subscription. This includes a link to the next page, if any.
|
1812
|
-
#
|
1813
|
-
# @param filter [String] OData filter. Optional.
|
1814
|
-
# @param top [Integer] The number of items to return. Optional.
|
1815
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1816
|
-
# elements. Optional.
|
1817
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1818
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1819
|
-
# Product data in line with each Category entry. Optional.
|
1820
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1821
|
-
# entry to just those requested, e.g.
|
1822
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1823
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1824
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1825
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1826
|
-
# desc. Optional.
|
1827
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1828
|
-
# of the matching resources included with the resources in the response, e.g.
|
1829
|
-
# Categories?$count=true. Optional.
|
1830
|
-
# @param search [String] A free form search. A free-text search expression to
|
1831
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1832
|
-
# Categories?$search=blue OR green. Optional.
|
1833
|
-
# @param format [String] The desired return format. Return the response in
|
1834
|
-
# particular formatxii without access to request headers for standard
|
1835
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1836
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1837
|
-
# will be added to the HTTP request.
|
1838
|
-
#
|
1839
|
-
# @return [DataLakeAnalyticsAccountListResult] which provide lazy access to
|
1840
|
-
# pages of the response.
|
1841
|
-
#
|
1842
|
-
def list_as_lazy(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1843
|
-
response = list_async(filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1844
|
-
unless response.nil?
|
1845
|
-
page = response.body
|
1846
|
-
page.next_method = Proc.new do |next_page_link|
|
1847
|
-
list_next_async(next_page_link, custom_headers)
|
1848
|
-
end
|
1849
|
-
page
|
1850
|
-
end
|
1851
|
-
end
|
1852
|
-
|
1853
|
-
#
|
1854
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
1855
|
-
# current subscription. This includes a link to the next page, if any.
|
1856
|
-
#
|
1857
|
-
# @param filter [String] OData filter. Optional.
|
1858
|
-
# @param top [Integer] The number of items to return. Optional.
|
1859
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1860
|
-
# elements. Optional.
|
1861
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1862
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1863
|
-
# Product data in line with each Category entry. Optional.
|
1864
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1865
|
-
# entry to just those requested, e.g.
|
1866
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1867
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1868
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1869
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1870
|
-
# desc. Optional.
|
1871
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1872
|
-
# of the matching resources included with the resources in the response, e.g.
|
1873
|
-
# Categories?$count=true. Optional.
|
1874
|
-
# @param search [String] A free form search. A free-text search expression to
|
1875
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1876
|
-
# Categories?$search=blue OR green. Optional.
|
1877
|
-
# @param format [String] The desired return format. Return the response in
|
1878
|
-
# particular formatxii without access to request headers for standard
|
1879
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1880
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1881
|
-
# will be added to the HTTP request.
|
1882
|
-
#
|
1883
|
-
# @return [Array<DataLakeAnalyticsAccount>] operation results.
|
1884
|
-
#
|
1885
|
-
def list(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1886
|
-
first_page = list_as_lazy(filter, top, skip, expand, select, orderby, count, search, format, custom_headers)
|
1887
|
-
first_page.get_all_items
|
1888
|
-
end
|
1889
|
-
|
1890
|
-
#
|
1891
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
1892
|
-
# current subscription. This includes a link to the next page, if any.
|
1893
|
-
#
|
1894
|
-
# @param filter [String] OData filter. Optional.
|
1895
|
-
# @param top [Integer] The number of items to return. Optional.
|
1896
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1897
|
-
# elements. Optional.
|
1898
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1899
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1900
|
-
# Product data in line with each Category entry. Optional.
|
1901
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1902
|
-
# entry to just those requested, e.g.
|
1903
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1904
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1905
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1906
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1907
|
-
# desc. Optional.
|
1908
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1909
|
-
# of the matching resources included with the resources in the response, e.g.
|
1910
|
-
# Categories?$count=true. Optional.
|
1911
|
-
# @param search [String] A free form search. A free-text search expression to
|
1912
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1913
|
-
# Categories?$search=blue OR green. Optional.
|
1914
|
-
# @param format [String] The desired return format. Return the response in
|
1915
|
-
# particular formatxii without access to request headers for standard
|
1916
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1917
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1918
|
-
# will be added to the HTTP request.
|
1919
|
-
#
|
1920
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1921
|
-
#
|
1922
|
-
def list_with_http_info(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1923
|
-
list_async(filter, top, skip, expand, select, orderby, count, search, format, custom_headers).value!
|
1924
|
-
end
|
1925
|
-
|
1926
|
-
#
|
1927
|
-
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
1928
|
-
# current subscription. This includes a link to the next page, if any.
|
1929
|
-
#
|
1930
|
-
# @param filter [String] OData filter. Optional.
|
1931
|
-
# @param top [Integer] The number of items to return. Optional.
|
1932
|
-
# @param skip [Integer] The number of items to skip over before returning
|
1933
|
-
# elements. Optional.
|
1934
|
-
# @param expand [String] OData expansion. Expand related resources in line
|
1935
|
-
# with the retrieved resources, e.g. Categories/$expand=Products would expand
|
1936
|
-
# Product data in line with each Category entry. Optional.
|
1937
|
-
# @param select [String] OData Select statement. Limits the properties on each
|
1938
|
-
# entry to just those requested, e.g.
|
1939
|
-
# Categories?$select=CategoryName,Description. Optional.
|
1940
|
-
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1941
|
-
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1942
|
-
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1943
|
-
# desc. Optional.
|
1944
|
-
# @param count [Boolean] The Boolean value of true or false to request a count
|
1945
|
-
# of the matching resources included with the resources in the response, e.g.
|
1946
|
-
# Categories?$count=true. Optional.
|
1947
|
-
# @param search [String] A free form search. A free-text search expression to
|
1948
|
-
# match for whether a particular entry should be included in the feed, e.g.
|
1949
|
-
# Categories?$search=blue OR green. Optional.
|
1950
|
-
# @param format [String] The desired return format. Return the response in
|
1951
|
-
# particular formatxii without access to request headers for standard
|
1952
|
-
# content-type negotiation (e.g Orders?$format=json). Optional.
|
1953
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1954
|
-
# to the HTTP request.
|
1955
|
-
#
|
1956
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1957
|
-
#
|
1958
|
-
def list_async(filter = nil, top = nil, skip = nil, expand = nil, select = nil, orderby = nil, count = nil, search = nil, format = nil, custom_headers = nil)
|
1959
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1960
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1961
|
-
|
1962
|
-
|
1963
|
-
request_headers = {}
|
1964
|
-
|
1965
|
-
# Set Headers
|
1966
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1967
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1968
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts'
|
1969
|
-
|
1970
|
-
request_url = @base_url || @client.base_url
|
1971
|
-
|
1972
|
-
options = {
|
1973
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1974
|
-
path_params: {'subscriptionId' => @client.subscription_id},
|
1975
|
-
query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$expand' => expand,'$select' => select,'$orderby' => orderby,'$count' => count,'$search' => search,'$format' => format,'api-version' => @client.api_version},
|
1976
|
-
headers: request_headers.merge(custom_headers || {}),
|
1977
|
-
base_url: request_url
|
1978
|
-
}
|
1979
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1980
|
-
|
1981
|
-
promise = promise.then do |result|
|
1982
|
-
http_response = result.response
|
1983
|
-
status_code = http_response.status
|
1984
|
-
response_content = http_response.body
|
1985
|
-
unless status_code == 200
|
1986
|
-
error_model = JSON.load(response_content)
|
1987
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1988
|
-
end
|
1989
|
-
|
1990
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1991
|
-
# Deserialize Response
|
1992
|
-
if status_code == 200
|
1993
|
-
begin
|
1994
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1995
|
-
result_mapper = DataLakeAnalyticsAccountListResult.mapper()
|
1996
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1997
|
-
rescue Exception => e
|
1998
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1999
|
-
end
|
2000
|
-
end
|
2001
|
-
|
2002
|
-
result
|
2003
|
-
end
|
2004
|
-
|
2005
|
-
promise.execute
|
2006
|
-
end
|
2007
|
-
|
2008
|
-
#
|
2009
|
-
# Gets details of the specified Data Lake Analytics account.
|
2010
|
-
#
|
2011
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2012
|
-
# that contains the Data Lake Analytics account.
|
2013
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2014
|
-
# retrieve.
|
2015
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2016
|
-
# will be added to the HTTP request.
|
2017
|
-
#
|
2018
|
-
# @return [DataLakeAnalyticsAccount] operation results.
|
2019
|
-
#
|
2020
|
-
def get(resource_group_name, account_name, custom_headers = nil)
|
2021
|
-
response = get_async(resource_group_name, account_name, custom_headers).value!
|
2022
|
-
response.body unless response.nil?
|
2023
|
-
end
|
2024
|
-
|
2025
|
-
#
|
2026
|
-
# Gets details of the specified Data Lake Analytics account.
|
2027
|
-
#
|
2028
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2029
|
-
# that contains the Data Lake Analytics account.
|
2030
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2031
|
-
# retrieve.
|
2032
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2033
|
-
# will be added to the HTTP request.
|
2034
|
-
#
|
2035
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2036
|
-
#
|
2037
|
-
def get_with_http_info(resource_group_name, account_name, custom_headers = nil)
|
2038
|
-
get_async(resource_group_name, account_name, custom_headers).value!
|
2039
|
-
end
|
2040
|
-
|
2041
|
-
#
|
2042
|
-
# Gets details of the specified Data Lake Analytics account.
|
2043
|
-
#
|
2044
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2045
|
-
# that contains the Data Lake Analytics account.
|
2046
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2047
|
-
# retrieve.
|
2048
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2049
|
-
# to the HTTP request.
|
2050
|
-
#
|
2051
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2052
|
-
#
|
2053
|
-
def get_async(resource_group_name, account_name, custom_headers = nil)
|
2054
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
2055
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
2056
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2057
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2058
|
-
|
2059
|
-
|
2060
|
-
request_headers = {}
|
2061
|
-
|
2062
|
-
# Set Headers
|
2063
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2064
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2065
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
|
2066
|
-
|
2067
|
-
request_url = @base_url || @client.base_url
|
2068
|
-
|
2069
|
-
options = {
|
2070
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2071
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
2072
|
-
query_params: {'api-version' => @client.api_version},
|
2073
|
-
headers: request_headers.merge(custom_headers || {}),
|
2074
|
-
base_url: request_url
|
2075
|
-
}
|
2076
|
-
promise = @client.make_request_async(:get, path_template, options)
|
2077
|
-
|
2078
|
-
promise = promise.then do |result|
|
2079
|
-
http_response = result.response
|
2080
|
-
status_code = http_response.status
|
2081
|
-
response_content = http_response.body
|
2082
|
-
unless status_code == 200
|
2083
|
-
error_model = JSON.load(response_content)
|
2084
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2085
|
-
end
|
2086
|
-
|
2087
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2088
|
-
# Deserialize Response
|
2089
|
-
if status_code == 200
|
2090
|
-
begin
|
2091
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2092
|
-
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2093
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2094
|
-
rescue Exception => e
|
2095
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2096
|
-
end
|
2097
|
-
end
|
2098
|
-
|
2099
|
-
result
|
2100
|
-
end
|
2101
|
-
|
2102
|
-
promise.execute
|
2103
|
-
end
|
2104
|
-
|
2105
|
-
#
|
2106
|
-
# Begins the delete delete process for the Data Lake Analytics account object
|
2107
|
-
# specified by the account name.
|
2108
|
-
#
|
2109
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2110
|
-
# that contains the Data Lake Analytics account.
|
2111
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2112
|
-
# delete
|
2113
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2114
|
-
# will be added to the HTTP request.
|
2115
|
-
#
|
2116
|
-
def delete(resource_group_name, account_name, custom_headers = nil)
|
2117
|
-
response = delete_async(resource_group_name, account_name, custom_headers).value!
|
2118
|
-
nil
|
2119
|
-
end
|
2120
|
-
|
2121
|
-
#
|
2122
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2123
|
-
# that contains the Data Lake Analytics account.
|
2124
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2125
|
-
# delete
|
2126
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2127
|
-
# will be added to the HTTP request.
|
2128
|
-
#
|
2129
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
2130
|
-
# response.
|
2131
|
-
#
|
2132
|
-
def delete_async(resource_group_name, account_name, custom_headers = nil)
|
2133
|
-
# Send request
|
2134
|
-
promise = begin_delete_async(resource_group_name, account_name, custom_headers)
|
2135
|
-
|
2136
|
-
promise = promise.then do |response|
|
2137
|
-
# Defining deserialization method.
|
2138
|
-
deserialize_method = lambda do |parsed_response|
|
2139
|
-
end
|
2140
|
-
|
2141
|
-
# Waiting for response.
|
2142
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
2143
|
-
end
|
2144
|
-
|
2145
|
-
promise
|
2146
|
-
end
|
2147
|
-
|
2148
|
-
#
|
2149
|
-
# Begins the delete delete process for the Data Lake Analytics account object
|
2150
|
-
# specified by the account name.
|
2151
|
-
#
|
2152
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2153
|
-
# that contains the Data Lake Analytics account.
|
2154
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2155
|
-
# delete
|
2156
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2157
|
-
# will be added to the HTTP request.
|
2158
|
-
#
|
2159
|
-
#
|
2160
|
-
def begin_delete(resource_group_name, account_name, custom_headers = nil)
|
2161
|
-
response = begin_delete_async(resource_group_name, account_name, custom_headers).value!
|
2162
|
-
nil
|
2163
|
-
end
|
2164
|
-
|
2165
|
-
#
|
2166
|
-
# Begins the delete delete process for the Data Lake Analytics account object
|
2167
|
-
# specified by the account name.
|
2168
|
-
#
|
2169
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2170
|
-
# that contains the Data Lake Analytics account.
|
2171
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2172
|
-
# delete
|
2173
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2174
|
-
# will be added to the HTTP request.
|
2175
|
-
#
|
2176
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2177
|
-
#
|
2178
|
-
def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil)
|
2179
|
-
begin_delete_async(resource_group_name, account_name, custom_headers).value!
|
2180
|
-
end
|
2181
|
-
|
2182
|
-
#
|
2183
|
-
# Begins the delete delete process for the Data Lake Analytics account object
|
2184
|
-
# specified by the account name.
|
2185
|
-
#
|
2186
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2187
|
-
# that contains the Data Lake Analytics account.
|
2188
|
-
# @param account_name [String] The name of the Data Lake Analytics account to
|
2189
|
-
# delete
|
2190
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2191
|
-
# to the HTTP request.
|
2192
|
-
#
|
2193
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2194
|
-
#
|
2195
|
-
def begin_delete_async(resource_group_name, account_name, custom_headers = nil)
|
2196
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
2197
|
-
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
2198
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2199
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2200
|
-
|
2201
|
-
|
2202
|
-
request_headers = {}
|
2203
|
-
|
2204
|
-
# Set Headers
|
2205
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2206
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2207
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
|
2208
|
-
|
2209
|
-
request_url = @base_url || @client.base_url
|
2210
|
-
|
2211
|
-
options = {
|
2212
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2213
|
-
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
2214
|
-
query_params: {'api-version' => @client.api_version},
|
2215
|
-
headers: request_headers.merge(custom_headers || {}),
|
2216
|
-
base_url: request_url
|
2217
|
-
}
|
2218
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
2219
|
-
|
2220
|
-
promise = promise.then do |result|
|
2221
|
-
http_response = result.response
|
2222
|
-
status_code = http_response.status
|
2223
|
-
response_content = http_response.body
|
2224
|
-
unless status_code == 200 || status_code == 202 || status_code == 404 || status_code == 204
|
2225
|
-
error_model = JSON.load(response_content)
|
2226
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2227
|
-
end
|
2228
|
-
|
2229
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2230
|
-
|
2231
|
-
result
|
2232
|
-
end
|
2233
|
-
|
2234
|
-
promise.execute
|
2235
|
-
end
|
2236
|
-
|
2237
|
-
#
|
2238
|
-
# Creates the specified Data Lake Analytics account. This supplies the user
|
2239
|
-
# with computation services for Data Lake Analytics workloads
|
2240
|
-
#
|
2241
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2242
|
-
# that contains the Data Lake Analytics account.the account will be
|
2243
|
-
# associated with.
|
2244
|
-
# @param name [String] The name of the Data Lake Analytics account to create.
|
2245
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2246
|
-
# create Data Lake Analytics account operation.
|
2247
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2248
|
-
# will be added to the HTTP request.
|
2249
|
-
#
|
2250
|
-
# @return [DataLakeAnalyticsAccount] operation results.
|
2251
|
-
#
|
2252
|
-
def create(resource_group_name, name, parameters, custom_headers = nil)
|
2253
|
-
response = create_async(resource_group_name, name, parameters, custom_headers).value!
|
2254
|
-
response.body unless response.nil?
|
2255
|
-
end
|
2256
|
-
|
2257
|
-
#
|
2258
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2259
|
-
# that contains the Data Lake Analytics account.the account will be
|
2260
|
-
# associated with.
|
2261
|
-
# @param name [String] The name of the Data Lake Analytics account to create.
|
2262
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2263
|
-
# create Data Lake Analytics account operation.
|
2264
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2265
|
-
# will be added to the HTTP request.
|
2266
|
-
#
|
2267
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
2268
|
-
# response.
|
2269
|
-
#
|
2270
|
-
def create_async(resource_group_name, name, parameters, custom_headers = nil)
|
2271
|
-
# Send request
|
2272
|
-
promise = begin_create_async(resource_group_name, name, parameters, custom_headers)
|
2273
|
-
|
2274
|
-
promise = promise.then do |response|
|
2275
|
-
# Defining deserialization method.
|
2276
|
-
deserialize_method = lambda do |parsed_response|
|
2277
|
-
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2278
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
2279
|
-
end
|
2280
|
-
|
2281
|
-
# Waiting for response.
|
2282
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
2283
|
-
end
|
2284
|
-
|
2285
|
-
promise
|
2286
|
-
end
|
2287
|
-
|
2288
|
-
#
|
2289
|
-
# Creates the specified Data Lake Analytics account. This supplies the user
|
2290
|
-
# with computation services for Data Lake Analytics workloads
|
2291
|
-
#
|
2292
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2293
|
-
# that contains the Data Lake Analytics account.the account will be
|
2294
|
-
# associated with.
|
2295
|
-
# @param name [String] The name of the Data Lake Analytics account to create.
|
2296
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2297
|
-
# create Data Lake Analytics account operation.
|
2298
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2299
|
-
# will be added to the HTTP request.
|
2300
|
-
#
|
2301
|
-
# @return [DataLakeAnalyticsAccount] operation results.
|
2302
|
-
#
|
2303
|
-
def begin_create(resource_group_name, name, parameters, custom_headers = nil)
|
2304
|
-
response = begin_create_async(resource_group_name, name, parameters, custom_headers).value!
|
2305
|
-
response.body unless response.nil?
|
2306
|
-
end
|
2307
|
-
|
2308
|
-
#
|
2309
|
-
# Creates the specified Data Lake Analytics account. This supplies the user
|
2310
|
-
# with computation services for Data Lake Analytics workloads
|
2311
|
-
#
|
2312
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2313
|
-
# that contains the Data Lake Analytics account.the account will be
|
2314
|
-
# associated with.
|
2315
|
-
# @param name [String] The name of the Data Lake Analytics account to create.
|
2316
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2317
|
-
# create Data Lake Analytics account operation.
|
2318
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2319
|
-
# will be added to the HTTP request.
|
2320
|
-
#
|
2321
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2322
|
-
#
|
2323
|
-
def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
|
2324
|
-
begin_create_async(resource_group_name, name, parameters, custom_headers).value!
|
2325
|
-
end
|
2326
|
-
|
2327
|
-
#
|
2328
|
-
# Creates the specified Data Lake Analytics account. This supplies the user
|
2329
|
-
# with computation services for Data Lake Analytics workloads
|
2330
|
-
#
|
2331
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2332
|
-
# that contains the Data Lake Analytics account.the account will be
|
2333
|
-
# associated with.
|
2334
|
-
# @param name [String] The name of the Data Lake Analytics account to create.
|
2335
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2336
|
-
# create Data Lake Analytics account operation.
|
2337
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2338
|
-
# to the HTTP request.
|
2339
|
-
#
|
2340
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2341
|
-
#
|
2342
|
-
def begin_create_async(resource_group_name, name, parameters, custom_headers = nil)
|
2343
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
2344
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
2345
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
2346
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2347
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2348
|
-
|
2349
|
-
|
2350
|
-
request_headers = {}
|
2351
|
-
|
2352
|
-
# Set Headers
|
2353
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2354
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2355
|
-
|
2356
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2357
|
-
|
2358
|
-
# Serialize Request
|
2359
|
-
request_mapper = DataLakeAnalyticsAccount.mapper()
|
2360
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
2361
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
2362
|
-
|
2363
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}'
|
2364
|
-
|
2365
|
-
request_url = @base_url || @client.base_url
|
2366
|
-
|
2367
|
-
options = {
|
2368
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2369
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
2370
|
-
query_params: {'api-version' => @client.api_version},
|
2371
|
-
body: request_content,
|
2372
|
-
headers: request_headers.merge(custom_headers || {}),
|
2373
|
-
base_url: request_url
|
2374
|
-
}
|
2375
|
-
promise = @client.make_request_async(:put, path_template, options)
|
2376
|
-
|
2377
|
-
promise = promise.then do |result|
|
2378
|
-
http_response = result.response
|
2379
|
-
status_code = http_response.status
|
2380
|
-
response_content = http_response.body
|
2381
|
-
unless status_code == 201 || status_code == 200
|
2382
|
-
error_model = JSON.load(response_content)
|
2383
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2384
|
-
end
|
2385
|
-
|
2386
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2387
|
-
# Deserialize Response
|
2388
|
-
if status_code == 201
|
2389
|
-
begin
|
2390
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2391
|
-
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2392
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2393
|
-
rescue Exception => e
|
2394
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2395
|
-
end
|
2396
|
-
end
|
2397
|
-
# Deserialize Response
|
2398
|
-
if status_code == 200
|
2399
|
-
begin
|
2400
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2401
|
-
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2402
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2403
|
-
rescue Exception => e
|
2404
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2405
|
-
end
|
2406
|
-
end
|
2407
|
-
|
2408
|
-
result
|
2409
|
-
end
|
2410
|
-
|
2411
|
-
promise.execute
|
2412
|
-
end
|
2413
|
-
|
2414
|
-
#
|
2415
|
-
# Updates the Data Lake Analytics account object specified by the accountName
|
2416
|
-
# with the contents of the account object.
|
2417
|
-
#
|
2418
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2419
|
-
# that contains the Data Lake Analytics account.
|
2420
|
-
# @param name [String] The name of the Data Lake Analytics account to update.
|
2421
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2422
|
-
# update Data Lake Analytics account operation.
|
2423
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2424
|
-
# will be added to the HTTP request.
|
2425
|
-
#
|
2426
|
-
# @return [DataLakeAnalyticsAccount] operation results.
|
2427
|
-
#
|
2428
|
-
def update(resource_group_name, name, parameters, custom_headers = nil)
|
2429
|
-
response = update_async(resource_group_name, name, parameters, custom_headers).value!
|
2430
|
-
response.body unless response.nil?
|
2431
|
-
end
|
2432
|
-
|
2433
|
-
#
|
2434
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2435
|
-
# that contains the Data Lake Analytics account.
|
2436
|
-
# @param name [String] The name of the Data Lake Analytics account to update.
|
2437
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2438
|
-
# update Data Lake Analytics account operation.
|
2439
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2440
|
-
# will be added to the HTTP request.
|
2441
|
-
#
|
2442
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
2443
|
-
# response.
|
2444
|
-
#
|
2445
|
-
def update_async(resource_group_name, name, parameters, custom_headers = nil)
|
2446
|
-
# Send request
|
2447
|
-
promise = begin_update_async(resource_group_name, name, parameters, custom_headers)
|
459
|
+
def create_async(resource_group_name, name, parameters, custom_headers = nil)
|
460
|
+
# Send request
|
461
|
+
promise = begin_create_async(resource_group_name, name, parameters, custom_headers)
|
2448
462
|
|
2449
463
|
promise = promise.then do |response|
|
2450
464
|
# Defining deserialization method.
|
@@ -2461,265 +475,106 @@ module Azure::ARM::DataLakeAnalytics
|
|
2461
475
|
end
|
2462
476
|
|
2463
477
|
#
|
2464
|
-
# Updates the Data Lake Analytics account object specified by the accountName
|
2465
|
-
# with the contents of the account object.
|
2466
|
-
#
|
2467
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2468
|
-
#
|
2469
|
-
# @param name [String] The name of the Data Lake Analytics account to update.
|
2470
|
-
# @param parameters [
|
2471
|
-
# update Data Lake Analytics account operation.
|
2472
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2473
|
-
# will be added to the HTTP request.
|
2474
|
-
#
|
2475
|
-
# @return [DataLakeAnalyticsAccount] operation results.
|
2476
|
-
#
|
2477
|
-
def
|
2478
|
-
response =
|
2479
|
-
response.body unless response.nil?
|
2480
|
-
end
|
2481
|
-
|
2482
|
-
#
|
2483
|
-
# Updates the Data Lake Analytics account object specified by the accountName
|
2484
|
-
# with the contents of the account object.
|
2485
|
-
#
|
2486
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2487
|
-
# that contains the Data Lake Analytics account.
|
2488
|
-
# @param name [String] The name of the Data Lake Analytics account to update.
|
2489
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2490
|
-
# update Data Lake Analytics account operation.
|
2491
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2492
|
-
# will be added to the HTTP request.
|
2493
|
-
#
|
2494
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2495
|
-
#
|
2496
|
-
def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
|
2497
|
-
begin_update_async(resource_group_name, name, parameters, custom_headers).value!
|
2498
|
-
end
|
2499
|
-
|
2500
|
-
#
|
2501
|
-
# Updates the Data Lake Analytics account object specified by the accountName
|
2502
|
-
# with the contents of the account object.
|
2503
|
-
#
|
2504
|
-
# @param resource_group_name [String] The name of the Azure resource group
|
2505
|
-
# that contains the Data Lake Analytics account.
|
2506
|
-
# @param name [String] The name of the Data Lake Analytics account to update.
|
2507
|
-
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
2508
|
-
# update Data Lake Analytics account operation.
|
2509
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2510
|
-
# to the HTTP request.
|
2511
|
-
#
|
2512
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2513
|
-
#
|
2514
|
-
def begin_update_async(resource_group_name, name, parameters, custom_headers = nil)
|
2515
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
2516
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
2517
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
2518
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2519
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2520
|
-
|
2521
|
-
|
2522
|
-
request_headers = {}
|
2523
|
-
|
2524
|
-
# Set Headers
|
2525
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2526
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2527
|
-
|
2528
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2529
|
-
|
2530
|
-
# Serialize Request
|
2531
|
-
request_mapper = DataLakeAnalyticsAccount.mapper()
|
2532
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
2533
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
2534
|
-
|
2535
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}'
|
2536
|
-
|
2537
|
-
request_url = @base_url || @client.base_url
|
2538
|
-
|
2539
|
-
options = {
|
2540
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2541
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
2542
|
-
query_params: {'api-version' => @client.api_version},
|
2543
|
-
body: request_content,
|
2544
|
-
headers: request_headers.merge(custom_headers || {}),
|
2545
|
-
base_url: request_url
|
2546
|
-
}
|
2547
|
-
promise = @client.make_request_async(:patch, path_template, options)
|
2548
|
-
|
2549
|
-
promise = promise.then do |result|
|
2550
|
-
http_response = result.response
|
2551
|
-
status_code = http_response.status
|
2552
|
-
response_content = http_response.body
|
2553
|
-
unless status_code == 200 || status_code == 201
|
2554
|
-
error_model = JSON.load(response_content)
|
2555
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2556
|
-
end
|
2557
|
-
|
2558
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2559
|
-
# Deserialize Response
|
2560
|
-
if status_code == 200
|
2561
|
-
begin
|
2562
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2563
|
-
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2564
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2565
|
-
rescue Exception => e
|
2566
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2567
|
-
end
|
2568
|
-
end
|
2569
|
-
# Deserialize Response
|
2570
|
-
if status_code == 201
|
2571
|
-
begin
|
2572
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2573
|
-
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2574
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2575
|
-
rescue Exception => e
|
2576
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2577
|
-
end
|
2578
|
-
end
|
2579
|
-
|
2580
|
-
result
|
2581
|
-
end
|
2582
|
-
|
2583
|
-
promise.execute
|
2584
|
-
end
|
2585
|
-
|
2586
|
-
#
|
2587
|
-
# Lists the Azure Storage containers, if any, associated with the specified
|
2588
|
-
# Data Lake Analytics and Azure Storage account combination. The response
|
2589
|
-
# includes a link to the next page of results, if any.
|
2590
|
-
#
|
2591
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
2592
|
-
# call to List operation.
|
2593
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2594
|
-
# will be added to the HTTP request.
|
2595
|
-
#
|
2596
|
-
# @return [ListBlobContainersResult] operation results.
|
2597
|
-
#
|
2598
|
-
def list_storage_containers_next(next_page_link, custom_headers = nil)
|
2599
|
-
response = list_storage_containers_next_async(next_page_link, custom_headers).value!
|
2600
|
-
response.body unless response.nil?
|
2601
|
-
end
|
2602
|
-
|
2603
|
-
#
|
2604
|
-
# Lists the Azure Storage containers, if any, associated with the specified
|
2605
|
-
# Data Lake Analytics and Azure Storage account combination. The response
|
2606
|
-
# includes a link to the next page of results, if any.
|
2607
|
-
#
|
2608
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
2609
|
-
# call to List operation.
|
2610
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2611
|
-
# will be added to the HTTP request.
|
2612
|
-
#
|
2613
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2614
|
-
#
|
2615
|
-
def list_storage_containers_next_with_http_info(next_page_link, custom_headers = nil)
|
2616
|
-
list_storage_containers_next_async(next_page_link, custom_headers).value!
|
2617
|
-
end
|
2618
|
-
|
2619
|
-
#
|
2620
|
-
# Lists the Azure Storage containers, if any, associated with the specified
|
2621
|
-
# Data Lake Analytics and Azure Storage account combination. The response
|
2622
|
-
# includes a link to the next page of results, if any.
|
2623
|
-
#
|
2624
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
2625
|
-
# call to List operation.
|
2626
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2627
|
-
# to the HTTP request.
|
2628
|
-
#
|
2629
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2630
|
-
#
|
2631
|
-
def list_storage_containers_next_async(next_page_link, custom_headers = nil)
|
2632
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2633
|
-
|
2634
|
-
|
2635
|
-
request_headers = {}
|
2636
|
-
|
2637
|
-
# Set Headers
|
2638
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2639
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2640
|
-
path_template = '{nextLink}'
|
2641
|
-
|
2642
|
-
request_url = @base_url || @client.base_url
|
2643
|
-
|
2644
|
-
options = {
|
2645
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2646
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
2647
|
-
headers: request_headers.merge(custom_headers || {}),
|
2648
|
-
base_url: request_url
|
2649
|
-
}
|
2650
|
-
promise = @client.make_request_async(:get, path_template, options)
|
478
|
+
# Updates the Data Lake Analytics account object specified by the accountName
|
479
|
+
# with the contents of the account object.
|
480
|
+
#
|
481
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
482
|
+
# contains the Data Lake Analytics account.
|
483
|
+
# @param name [String] The name of the Data Lake Analytics account to update.
|
484
|
+
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
485
|
+
# supplied to the update Data Lake Analytics account operation.
|
486
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
487
|
+
# will be added to the HTTP request.
|
488
|
+
#
|
489
|
+
# @return [DataLakeAnalyticsAccount] operation results.
|
490
|
+
#
|
491
|
+
def update(resource_group_name, name, parameters = nil, custom_headers = nil)
|
492
|
+
response = update_async(resource_group_name, name, parameters, custom_headers).value!
|
493
|
+
response.body unless response.nil?
|
494
|
+
end
|
2651
495
|
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2655
|
-
|
2656
|
-
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
496
|
+
#
|
497
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
498
|
+
# contains the Data Lake Analytics account.
|
499
|
+
# @param name [String] The name of the Data Lake Analytics account to update.
|
500
|
+
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
501
|
+
# supplied to the update Data Lake Analytics account operation.
|
502
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
503
|
+
# will be added to the HTTP request.
|
504
|
+
#
|
505
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
506
|
+
# response.
|
507
|
+
#
|
508
|
+
def update_async(resource_group_name, name, parameters = nil, custom_headers = nil)
|
509
|
+
# Send request
|
510
|
+
promise = begin_update_async(resource_group_name, name, parameters, custom_headers)
|
2660
511
|
|
2661
|
-
|
2662
|
-
#
|
2663
|
-
|
2664
|
-
|
2665
|
-
|
2666
|
-
result_mapper = ListBlobContainersResult.mapper()
|
2667
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2668
|
-
rescue Exception => e
|
2669
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2670
|
-
end
|
512
|
+
promise = promise.then do |response|
|
513
|
+
# Defining deserialization method.
|
514
|
+
deserialize_method = lambda do |parsed_response|
|
515
|
+
result_mapper = DataLakeAnalyticsAccount.mapper()
|
516
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
2671
517
|
end
|
2672
518
|
|
2673
|
-
|
519
|
+
# Waiting for response.
|
520
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
2674
521
|
end
|
2675
522
|
|
2676
|
-
promise
|
523
|
+
promise
|
2677
524
|
end
|
2678
525
|
|
2679
526
|
#
|
2680
|
-
#
|
2681
|
-
#
|
527
|
+
# Begins the delete delete process for the Data Lake Analytics account object
|
528
|
+
# specified by the account name.
|
2682
529
|
#
|
2683
|
-
# @param
|
2684
|
-
#
|
530
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
531
|
+
# contains the Data Lake Analytics account.
|
532
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
533
|
+
# delete
|
2685
534
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2686
535
|
# will be added to the HTTP request.
|
2687
536
|
#
|
2688
|
-
# @return [ListSasTokensResult] operation results.
|
2689
537
|
#
|
2690
|
-
def
|
2691
|
-
response =
|
2692
|
-
|
538
|
+
def begin_delete(resource_group_name, account_name, custom_headers = nil)
|
539
|
+
response = begin_delete_async(resource_group_name, account_name, custom_headers).value!
|
540
|
+
nil
|
2693
541
|
end
|
2694
542
|
|
2695
543
|
#
|
2696
|
-
#
|
2697
|
-
#
|
544
|
+
# Begins the delete delete process for the Data Lake Analytics account object
|
545
|
+
# specified by the account name.
|
2698
546
|
#
|
2699
|
-
# @param
|
2700
|
-
#
|
547
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
548
|
+
# contains the Data Lake Analytics account.
|
549
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
550
|
+
# delete
|
2701
551
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2702
552
|
# will be added to the HTTP request.
|
2703
553
|
#
|
2704
554
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2705
555
|
#
|
2706
|
-
def
|
2707
|
-
|
556
|
+
def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil)
|
557
|
+
begin_delete_async(resource_group_name, account_name, custom_headers).value!
|
2708
558
|
end
|
2709
559
|
|
2710
560
|
#
|
2711
|
-
#
|
2712
|
-
#
|
561
|
+
# Begins the delete delete process for the Data Lake Analytics account object
|
562
|
+
# specified by the account name.
|
2713
563
|
#
|
2714
|
-
# @param
|
2715
|
-
#
|
564
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
565
|
+
# contains the Data Lake Analytics account.
|
566
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
567
|
+
# delete
|
2716
568
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2717
569
|
# to the HTTP request.
|
2718
570
|
#
|
2719
571
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2720
572
|
#
|
2721
|
-
def
|
2722
|
-
fail ArgumentError, '
|
573
|
+
def begin_delete_async(resource_group_name, account_name, custom_headers = nil)
|
574
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
575
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
576
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
577
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2723
578
|
|
2724
579
|
|
2725
580
|
request_headers = {}
|
@@ -2727,38 +582,29 @@ module Azure::ARM::DataLakeAnalytics
|
|
2727
582
|
# Set Headers
|
2728
583
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2729
584
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2730
|
-
path_template = '{
|
585
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
|
2731
586
|
|
2732
587
|
request_url = @base_url || @client.base_url
|
2733
588
|
|
2734
589
|
options = {
|
2735
590
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2736
|
-
|
591
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
592
|
+
query_params: {'api-version' => @client.api_version},
|
2737
593
|
headers: request_headers.merge(custom_headers || {}),
|
2738
594
|
base_url: request_url
|
2739
595
|
}
|
2740
|
-
promise = @client.make_request_async(:
|
596
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
2741
597
|
|
2742
598
|
promise = promise.then do |result|
|
2743
599
|
http_response = result.response
|
2744
600
|
status_code = http_response.status
|
2745
601
|
response_content = http_response.body
|
2746
|
-
unless status_code == 200
|
602
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
2747
603
|
error_model = JSON.load(response_content)
|
2748
604
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2749
605
|
end
|
2750
606
|
|
2751
607
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2752
|
-
# Deserialize Response
|
2753
|
-
if status_code == 200
|
2754
|
-
begin
|
2755
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2756
|
-
result_mapper = ListSasTokensResult.mapper()
|
2757
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2758
|
-
rescue Exception => e
|
2759
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
2760
|
-
end
|
2761
|
-
end
|
2762
608
|
|
2763
609
|
result
|
2764
610
|
end
|
@@ -2767,53 +613,62 @@ module Azure::ARM::DataLakeAnalytics
|
|
2767
613
|
end
|
2768
614
|
|
2769
615
|
#
|
2770
|
-
#
|
2771
|
-
#
|
2772
|
-
# next page, if any.
|
616
|
+
# Creates the specified Data Lake Analytics account. This supplies the user
|
617
|
+
# with computation services for Data Lake Analytics workloads
|
2773
618
|
#
|
2774
|
-
# @param
|
2775
|
-
#
|
619
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
620
|
+
# contains the Data Lake Analytics account.the account will be associated with.
|
621
|
+
# @param name [String] The name of the Data Lake Analytics account to create.
|
622
|
+
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
623
|
+
# create Data Lake Analytics account operation.
|
2776
624
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2777
625
|
# will be added to the HTTP request.
|
2778
626
|
#
|
2779
|
-
# @return [
|
2780
|
-
# results.
|
627
|
+
# @return [DataLakeAnalyticsAccount] operation results.
|
2781
628
|
#
|
2782
|
-
def
|
2783
|
-
response =
|
629
|
+
def begin_create(resource_group_name, name, parameters, custom_headers = nil)
|
630
|
+
response = begin_create_async(resource_group_name, name, parameters, custom_headers).value!
|
2784
631
|
response.body unless response.nil?
|
2785
632
|
end
|
2786
633
|
|
2787
634
|
#
|
2788
|
-
#
|
2789
|
-
#
|
2790
|
-
# next page, if any.
|
635
|
+
# Creates the specified Data Lake Analytics account. This supplies the user
|
636
|
+
# with computation services for Data Lake Analytics workloads
|
2791
637
|
#
|
2792
|
-
# @param
|
2793
|
-
#
|
638
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
639
|
+
# contains the Data Lake Analytics account.the account will be associated with.
|
640
|
+
# @param name [String] The name of the Data Lake Analytics account to create.
|
641
|
+
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
642
|
+
# create Data Lake Analytics account operation.
|
2794
643
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2795
644
|
# will be added to the HTTP request.
|
2796
645
|
#
|
2797
646
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2798
647
|
#
|
2799
|
-
def
|
2800
|
-
|
648
|
+
def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
|
649
|
+
begin_create_async(resource_group_name, name, parameters, custom_headers).value!
|
2801
650
|
end
|
2802
651
|
|
2803
652
|
#
|
2804
|
-
#
|
2805
|
-
#
|
2806
|
-
# next page, if any.
|
653
|
+
# Creates the specified Data Lake Analytics account. This supplies the user
|
654
|
+
# with computation services for Data Lake Analytics workloads
|
2807
655
|
#
|
2808
|
-
# @param
|
2809
|
-
#
|
656
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
657
|
+
# contains the Data Lake Analytics account.the account will be associated with.
|
658
|
+
# @param name [String] The name of the Data Lake Analytics account to create.
|
659
|
+
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
660
|
+
# create Data Lake Analytics account operation.
|
2810
661
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2811
662
|
# to the HTTP request.
|
2812
663
|
#
|
2813
664
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2814
665
|
#
|
2815
|
-
def
|
2816
|
-
fail ArgumentError, '
|
666
|
+
def begin_create_async(resource_group_name, name, parameters, custom_headers = nil)
|
667
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
668
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
669
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
670
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
671
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2817
672
|
|
2818
673
|
|
2819
674
|
request_headers = {}
|
@@ -2821,33 +676,53 @@ module Azure::ARM::DataLakeAnalytics
|
|
2821
676
|
# Set Headers
|
2822
677
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2823
678
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2824
|
-
|
679
|
+
|
680
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
681
|
+
|
682
|
+
# Serialize Request
|
683
|
+
request_mapper = DataLakeAnalyticsAccount.mapper()
|
684
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
685
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
686
|
+
|
687
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}'
|
2825
688
|
|
2826
689
|
request_url = @base_url || @client.base_url
|
2827
690
|
|
2828
691
|
options = {
|
2829
692
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2830
|
-
|
693
|
+
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
694
|
+
query_params: {'api-version' => @client.api_version},
|
695
|
+
body: request_content,
|
2831
696
|
headers: request_headers.merge(custom_headers || {}),
|
2832
697
|
base_url: request_url
|
2833
698
|
}
|
2834
|
-
promise = @client.make_request_async(:
|
699
|
+
promise = @client.make_request_async(:put, path_template, options)
|
2835
700
|
|
2836
701
|
promise = promise.then do |result|
|
2837
702
|
http_response = result.response
|
2838
703
|
status_code = http_response.status
|
2839
704
|
response_content = http_response.body
|
2840
|
-
unless status_code == 200
|
705
|
+
unless status_code == 201 || status_code == 200
|
2841
706
|
error_model = JSON.load(response_content)
|
2842
707
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2843
708
|
end
|
2844
709
|
|
2845
710
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
2846
711
|
# Deserialize Response
|
712
|
+
if status_code == 201
|
713
|
+
begin
|
714
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
715
|
+
result_mapper = DataLakeAnalyticsAccount.mapper()
|
716
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
717
|
+
rescue Exception => e
|
718
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
719
|
+
end
|
720
|
+
end
|
721
|
+
# Deserialize Response
|
2847
722
|
if status_code == 200
|
2848
723
|
begin
|
2849
724
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2850
|
-
result_mapper =
|
725
|
+
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2851
726
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2852
727
|
rescue Exception => e
|
2853
728
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -2861,52 +736,61 @@ module Azure::ARM::DataLakeAnalytics
|
|
2861
736
|
end
|
2862
737
|
|
2863
738
|
#
|
2864
|
-
#
|
2865
|
-
#
|
2866
|
-
# any.
|
739
|
+
# Updates the Data Lake Analytics account object specified by the accountName
|
740
|
+
# with the contents of the account object.
|
2867
741
|
#
|
2868
|
-
# @param
|
2869
|
-
#
|
742
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
743
|
+
# contains the Data Lake Analytics account.
|
744
|
+
# @param name [String] The name of the Data Lake Analytics account to update.
|
745
|
+
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
746
|
+
# supplied to the update Data Lake Analytics account operation.
|
2870
747
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2871
748
|
# will be added to the HTTP request.
|
2872
749
|
#
|
2873
|
-
# @return [
|
750
|
+
# @return [DataLakeAnalyticsAccount] operation results.
|
2874
751
|
#
|
2875
|
-
def
|
2876
|
-
response =
|
752
|
+
def begin_update(resource_group_name, name, parameters = nil, custom_headers = nil)
|
753
|
+
response = begin_update_async(resource_group_name, name, parameters, custom_headers).value!
|
2877
754
|
response.body unless response.nil?
|
2878
755
|
end
|
2879
756
|
|
2880
757
|
#
|
2881
|
-
#
|
2882
|
-
#
|
2883
|
-
# any.
|
758
|
+
# Updates the Data Lake Analytics account object specified by the accountName
|
759
|
+
# with the contents of the account object.
|
2884
760
|
#
|
2885
|
-
# @param
|
2886
|
-
#
|
761
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
762
|
+
# contains the Data Lake Analytics account.
|
763
|
+
# @param name [String] The name of the Data Lake Analytics account to update.
|
764
|
+
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
765
|
+
# supplied to the update Data Lake Analytics account operation.
|
2887
766
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2888
767
|
# will be added to the HTTP request.
|
2889
768
|
#
|
2890
769
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2891
770
|
#
|
2892
|
-
def
|
2893
|
-
|
771
|
+
def begin_update_with_http_info(resource_group_name, name, parameters = nil, custom_headers = nil)
|
772
|
+
begin_update_async(resource_group_name, name, parameters, custom_headers).value!
|
2894
773
|
end
|
2895
774
|
|
2896
775
|
#
|
2897
|
-
#
|
2898
|
-
#
|
2899
|
-
# any.
|
776
|
+
# Updates the Data Lake Analytics account object specified by the accountName
|
777
|
+
# with the contents of the account object.
|
2900
778
|
#
|
2901
|
-
# @param
|
2902
|
-
#
|
779
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
780
|
+
# contains the Data Lake Analytics account.
|
781
|
+
# @param name [String] The name of the Data Lake Analytics account to update.
|
782
|
+
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
783
|
+
# supplied to the update Data Lake Analytics account operation.
|
2903
784
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2904
785
|
# to the HTTP request.
|
2905
786
|
#
|
2906
787
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2907
788
|
#
|
2908
|
-
def
|
2909
|
-
fail ArgumentError, '
|
789
|
+
def begin_update_async(resource_group_name, name, parameters = nil, custom_headers = nil)
|
790
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
791
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
792
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
793
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
2910
794
|
|
2911
795
|
|
2912
796
|
request_headers = {}
|
@@ -2914,23 +798,33 @@ module Azure::ARM::DataLakeAnalytics
|
|
2914
798
|
# Set Headers
|
2915
799
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2916
800
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2917
|
-
|
801
|
+
|
802
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
803
|
+
|
804
|
+
# Serialize Request
|
805
|
+
request_mapper = DataLakeAnalyticsAccountUpdateParameters.mapper()
|
806
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
807
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
808
|
+
|
809
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}'
|
2918
810
|
|
2919
811
|
request_url = @base_url || @client.base_url
|
2920
812
|
|
2921
813
|
options = {
|
2922
814
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
2923
|
-
|
815
|
+
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
816
|
+
query_params: {'api-version' => @client.api_version},
|
817
|
+
body: request_content,
|
2924
818
|
headers: request_headers.merge(custom_headers || {}),
|
2925
819
|
base_url: request_url
|
2926
820
|
}
|
2927
|
-
promise = @client.make_request_async(:
|
821
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
2928
822
|
|
2929
823
|
promise = promise.then do |result|
|
2930
824
|
http_response = result.response
|
2931
825
|
status_code = http_response.status
|
2932
826
|
response_content = http_response.body
|
2933
|
-
unless status_code == 200
|
827
|
+
unless status_code == 200 || status_code == 201
|
2934
828
|
error_model = JSON.load(response_content)
|
2935
829
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
2936
830
|
end
|
@@ -2940,7 +834,17 @@ module Azure::ARM::DataLakeAnalytics
|
|
2940
834
|
if status_code == 200
|
2941
835
|
begin
|
2942
836
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
2943
|
-
result_mapper =
|
837
|
+
result_mapper = DataLakeAnalyticsAccount.mapper()
|
838
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
839
|
+
rescue Exception => e
|
840
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
841
|
+
end
|
842
|
+
end
|
843
|
+
# Deserialize Response
|
844
|
+
if status_code == 201
|
845
|
+
begin
|
846
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
847
|
+
result_mapper = DataLakeAnalyticsAccount.mapper()
|
2944
848
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
2945
849
|
rescue Exception => e
|
2946
850
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -2957,8 +861,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
2957
861
|
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
2958
862
|
# specific resource group. This includes a link to the next page, if any.
|
2959
863
|
#
|
2960
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
2961
|
-
#
|
864
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
865
|
+
# to List operation.
|
2962
866
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2963
867
|
# will be added to the HTTP request.
|
2964
868
|
#
|
@@ -2973,8 +877,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
2973
877
|
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
2974
878
|
# specific resource group. This includes a link to the next page, if any.
|
2975
879
|
#
|
2976
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
2977
|
-
#
|
880
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
881
|
+
# to List operation.
|
2978
882
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
2979
883
|
# will be added to the HTTP request.
|
2980
884
|
#
|
@@ -2988,8 +892,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
2988
892
|
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
2989
893
|
# specific resource group. This includes a link to the next page, if any.
|
2990
894
|
#
|
2991
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
2992
|
-
#
|
895
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
896
|
+
# to List operation.
|
2993
897
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
2994
898
|
# to the HTTP request.
|
2995
899
|
#
|
@@ -3047,8 +951,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
3047
951
|
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
3048
952
|
# current subscription. This includes a link to the next page, if any.
|
3049
953
|
#
|
3050
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
3051
|
-
#
|
954
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
955
|
+
# to List operation.
|
3052
956
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3053
957
|
# will be added to the HTTP request.
|
3054
958
|
#
|
@@ -3063,8 +967,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
3063
967
|
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
3064
968
|
# current subscription. This includes a link to the next page, if any.
|
3065
969
|
#
|
3066
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
3067
|
-
#
|
970
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
971
|
+
# to List operation.
|
3068
972
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
3069
973
|
# will be added to the HTTP request.
|
3070
974
|
#
|
@@ -3078,8 +982,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
3078
982
|
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
3079
983
|
# current subscription. This includes a link to the next page, if any.
|
3080
984
|
#
|
3081
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
3082
|
-
#
|
985
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
986
|
+
# to List operation.
|
3083
987
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
3084
988
|
# to the HTTP request.
|
3085
989
|
#
|
@@ -3133,5 +1037,77 @@ module Azure::ARM::DataLakeAnalytics
|
|
3133
1037
|
promise.execute
|
3134
1038
|
end
|
3135
1039
|
|
1040
|
+
#
|
1041
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within a
|
1042
|
+
# specific resource group. This includes a link to the next page, if any.
|
1043
|
+
#
|
1044
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
1045
|
+
# contains the Data Lake Analytics account.
|
1046
|
+
# @param filter [String] OData filter. Optional.
|
1047
|
+
# @param top [Integer] The number of items to return. Optional.
|
1048
|
+
# @param skip [Integer] The number of items to skip over before returning
|
1049
|
+
# elements. Optional.
|
1050
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
1051
|
+
# entry to just those requested, e.g.
|
1052
|
+
# Categories?$select=CategoryName,Description. Optional.
|
1053
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1054
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1055
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1056
|
+
# desc. Optional.
|
1057
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
1058
|
+
# of the matching resources included with the resources in the response, e.g.
|
1059
|
+
# Categories?$count=true. Optional.
|
1060
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1061
|
+
# will be added to the HTTP request.
|
1062
|
+
#
|
1063
|
+
# @return [DataLakeAnalyticsAccountListResult] which provide lazy access to
|
1064
|
+
# pages of the response.
|
1065
|
+
#
|
1066
|
+
def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
1067
|
+
response = list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value!
|
1068
|
+
unless response.nil?
|
1069
|
+
page = response.body
|
1070
|
+
page.next_method = Proc.new do |next_page_link|
|
1071
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1072
|
+
end
|
1073
|
+
page
|
1074
|
+
end
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
#
|
1078
|
+
# Gets the first page of Data Lake Analytics accounts, if any, within the
|
1079
|
+
# current subscription. This includes a link to the next page, if any.
|
1080
|
+
#
|
1081
|
+
# @param filter [String] OData filter. Optional.
|
1082
|
+
# @param top [Integer] The number of items to return. Optional.
|
1083
|
+
# @param skip [Integer] The number of items to skip over before returning
|
1084
|
+
# elements. Optional.
|
1085
|
+
# @param select [String] OData Select statement. Limits the properties on each
|
1086
|
+
# entry to just those requested, e.g.
|
1087
|
+
# Categories?$select=CategoryName,Description. Optional.
|
1088
|
+
# @param orderby [String] OrderBy clause. One or more comma-separated
|
1089
|
+
# expressions with an optional "asc" (the default) or "desc" depending on the
|
1090
|
+
# order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
|
1091
|
+
# desc. Optional.
|
1092
|
+
# @param count [Boolean] The Boolean value of true or false to request a count
|
1093
|
+
# of the matching resources included with the resources in the response, e.g.
|
1094
|
+
# Categories?$count=true. Optional.
|
1095
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1096
|
+
# will be added to the HTTP request.
|
1097
|
+
#
|
1098
|
+
# @return [DataLakeAnalyticsAccountListResult] which provide lazy access to
|
1099
|
+
# pages of the response.
|
1100
|
+
#
|
1101
|
+
def list_as_lazy(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
|
1102
|
+
response = list_async(filter, top, skip, select, orderby, count, custom_headers).value!
|
1103
|
+
unless response.nil?
|
1104
|
+
page = response.body
|
1105
|
+
page.next_method = Proc.new do |next_page_link|
|
1106
|
+
list_next_async(next_page_link, custom_headers)
|
1107
|
+
end
|
1108
|
+
page
|
1109
|
+
end
|
1110
|
+
end
|
1111
|
+
|
3136
1112
|
end
|
3137
1113
|
end
|