Class: Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Account

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb

Overview

Creates an Azure Data Lake Analytics account management client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Account

Creates and initializes a new instance of the Account class.



17
18
19
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 17

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientDataLakeAnalyticsAccountManagementClient (readonly)



22
23
24
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 22

def client
  @client
end

Instance Method Details

#add_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers: nil) ⇒ Object

Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.

contains the Data Lake Analytics account. which to add the Data Lake Store account. account to add. Store account. will be added to the HTTP request.



1010
1011
1012
1013
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1010

def (resource_group_name, , , parameters, custom_headers:nil)
  response = (resource_group_name, , , parameters, custom_headers:custom_headers).value!
  nil
end

#add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.

contains the Data Lake Analytics account. which to add the Data Lake Store account. account to add. Store account. to the HTTP request.



1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1053

def (resource_group_name, , , parameters, custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'data_lake_store_account_name is nil' if .nil?
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::AddDataLakeStoreParameters.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'dataLakeStoreAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:put, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#add_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.

contains the Data Lake Analytics account. which to add the Data Lake Store account. account to add. Store account. will be added to the HTTP request.



1032
1033
1034
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1032

def (resource_group_name, , , parameters, custom_headers:nil)
  (resource_group_name, , , parameters, custom_headers:custom_headers).value!
end

#add_storage_account(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Object

Updates the specified Data Lake Analytics account to add an Azure Storage account.

contains the Data Lake Analytics account. which to add the Azure Storage account. add access key and optional suffix for the Azure Storage Account. will be added to the HTTP request.



353
354
355
356
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 353

def (resource_group_name, , , parameters, custom_headers:nil)
  response = (resource_group_name, , , parameters, custom_headers:custom_headers).value!
  nil
end

#add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

Updates the specified Data Lake Analytics account to add an Azure Storage account.

contains the Data Lake Analytics account. which to add the Azure Storage account. add access key and optional suffix for the Azure Storage Account. to the HTTP request.



396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 396

def (resource_group_name, , , parameters, custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'storage_account_name is nil' if .nil?
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::AddStorageAccountParameters.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'storageAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:put, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#add_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Updates the specified Data Lake Analytics account to add an Azure Storage account.

contains the Data Lake Analytics account. which to add the Azure Storage account. add access key and optional suffix for the Azure Storage Account. will be added to the HTTP request.



375
376
377
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 375

def (resource_group_name, , , parameters, custom_headers:nil)
  (resource_group_name, , , parameters, custom_headers:custom_headers).value!
end

#begin_create(resource_group_name, name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount

Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads

contains the Data Lake Analytics account.the account will be associated with. create Data Lake Analytics account operation. will be added to the HTTP request.



2113
2114
2115
2116
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2113

def begin_create(resource_group_name, name, parameters, custom_headers:nil)
  response = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#begin_create_async(resource_group_name, name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads

contains the Data Lake Analytics account.the account will be associated with. create Data Lake Analytics account operation. to the HTTP request.



2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2150

def begin_create_async(resource_group_name, name, parameters, custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'name is nil' if name.nil?
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:put, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 201 || status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 201
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#begin_create_with_http_info(resource_group_name, name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads

contains the Data Lake Analytics account.the account will be associated with. create Data Lake Analytics account operation. will be added to the HTTP request.



2132
2133
2134
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2132

def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
  begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
end

#begin_delete(resource_group_name, account_name, custom_headers: nil) ⇒ Object

Begins the delete delete process for the Data Lake Analytics account object specified by the account name.

contains the Data Lake Analytics account. delete will be added to the HTTP request.



2021
2022
2023
2024
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2021

def begin_delete(resource_group_name, , custom_headers:nil)
  response = begin_delete_async(resource_group_name, , custom_headers:custom_headers).value!
  nil
end

#begin_delete_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise

Begins the delete delete process for the Data Lake Analytics account object specified by the account name.

contains the Data Lake Analytics account. delete to the HTTP request.



2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2056

def begin_delete_async(resource_group_name, , custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:delete, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 202 || status_code == 404 || status_code == 204
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#begin_delete_with_http_info(resource_group_name, account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Begins the delete delete process for the Data Lake Analytics account object specified by the account name.

contains the Data Lake Analytics account. delete will be added to the HTTP request.



2039
2040
2041
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2039

def begin_delete_with_http_info(resource_group_name, , custom_headers:nil)
  begin_delete_async(resource_group_name, , custom_headers:custom_headers).value!
end

#begin_update(resource_group_name, name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount

Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.

contains the Data Lake Analytics account. update Data Lake Analytics account operation. will be added to the HTTP request.



2235
2236
2237
2238
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2235

def begin_update(resource_group_name, name, parameters, custom_headers:nil)
  response = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#begin_update_async(resource_group_name, name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.

contains the Data Lake Analytics account. update Data Lake Analytics account operation. to the HTTP request.



2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2272

def begin_update_async(resource_group_name, name, parameters, custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'name is nil' if name.nil?
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{name}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:patch, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200 || status_code == 201
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end
    # Deserialize Response
    if status_code == 201
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#begin_update_with_http_info(resource_group_name, name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.

contains the Data Lake Analytics account. update Data Lake Analytics account operation. will be added to the HTTP request.



2254
2255
2256
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2254

def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
  begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
end

#create(resource_group_name, name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount

Creates the specified Data Lake Analytics account. This supplies the user with computation services for Data Lake Analytics workloads

contains the Data Lake Analytics account.the account will be associated with. create Data Lake Analytics account operation. will be added to the HTTP request.



1925
1926
1927
1928
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1925

def create(resource_group_name, name, parameters, custom_headers:nil)
  response = create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#create_async(resource_group_name, name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

contains the Data Lake Analytics account.the account will be associated with. create Data Lake Analytics account operation. will be added to the HTTP request.

response.



1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1942

def create_async(resource_group_name, name, parameters, custom_headers:nil)
  # Send request
  promise = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
      result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
      parsed_response = @client.deserialize(result_mapper, parsed_response)
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end

#delete(resource_group_name, account_name, custom_headers: nil) ⇒ Object

Begins the delete delete process for the Data Lake Analytics account object specified by the account name.

contains the Data Lake Analytics account. delete will be added to the HTTP request.



1879
1880
1881
1882
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1879

def delete(resource_group_name, , custom_headers:nil)
  response = delete_async(resource_group_name, , custom_headers:custom_headers).value!
  nil
end

#delete_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise

contains the Data Lake Analytics account. delete will be added to the HTTP request.

response.



1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1895

def delete_async(resource_group_name, , custom_headers:nil)
  # Send request
  promise = begin_delete_async(resource_group_name, , custom_headers:custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end

#delete_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers: nil) ⇒ Object

Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.

contains the Data Lake Analytics account. which to remove the Data Lake Store account. account to remove will be added to the HTTP request.



911
912
913
914
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 911

def (resource_group_name, , , custom_headers:nil)
  response = (resource_group_name, , , custom_headers:custom_headers).value!
  nil
end

#delete_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers: nil) ⇒ Concurrent::Promise

Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.

contains the Data Lake Analytics account. which to remove the Data Lake Store account. account to remove to the HTTP request.



950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 950

def (resource_group_name, , , custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'data_lake_store_account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'dataLakeStoreAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:delete, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#delete_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.

contains the Data Lake Analytics account. which to remove the Data Lake Store account. account to remove will be added to the HTTP request.



931
932
933
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 931

def (resource_group_name, , , custom_headers:nil)
  (resource_group_name, , , custom_headers:custom_headers).value!
end

#delete_storage_account(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Object

Updates the specified Data Lake Analytics account to remove an Azure Storage account.

contains the Data Lake Analytics account. which to remove the Azure Storage account. remove will be added to the HTTP request.



146
147
148
149
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 146

def (resource_group_name, , , custom_headers:nil)
  response = (resource_group_name, , , custom_headers:custom_headers).value!
  nil
end

#delete_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise

Updates the specified Data Lake Analytics account to remove an Azure Storage account.

contains the Data Lake Analytics account. which to remove the Azure Storage account. remove to the HTTP request.



185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 185

def (resource_group_name, , , custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'storage_account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'storageAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:delete, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#delete_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Updates the specified Data Lake Analytics account to remove an Azure Storage account.

contains the Data Lake Analytics account. which to remove the Azure Storage account. remove will be added to the HTTP request.



166
167
168
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 166

def (resource_group_name, , , custom_headers:nil)
  (resource_group_name, , , custom_headers:custom_headers).value!
end

#get(resource_group_name, account_name, custom_headers: nil) ⇒ DataLakeAnalyticsAccount

Gets details of the specified Data Lake Analytics account.

contains the Data Lake Analytics account. retrieve. will be added to the HTTP request.



1782
1783
1784
1785
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1782

def get(resource_group_name, , custom_headers:nil)
  response = get_async(resource_group_name, , custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#get_async(resource_group_name, account_name, custom_headers: nil) ⇒ Concurrent::Promise

Gets details of the specified Data Lake Analytics account.

contains the Data Lake Analytics account. retrieve. to the HTTP request.



1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1815

def get_async(resource_group_name, , custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#get_data_lake_store_account(resource_group_name, account_name, data_lake_store_account_name, custom_headers: nil) ⇒ DataLakeStoreAccountInfo

Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.

contains the Data Lake Analytics account. which to retrieve the Data Lake Store account details. account to retrieve will be added to the HTTP request.



804
805
806
807
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 804

def (resource_group_name, , , custom_headers:nil)
  response = (resource_group_name, , , custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#get_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers: nil) ⇒ Concurrent::Promise

Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.

contains the Data Lake Analytics account. which to retrieve the Data Lake Store account details. account to retrieve to the HTTP request.



843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 843

def (resource_group_name, , , custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'data_lake_store_account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'dataLakeStoreAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeStoreAccountInfo.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#get_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.

contains the Data Lake Analytics account. which to retrieve the Data Lake Store account details. account to retrieve will be added to the HTTP request.



824
825
826
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 824

def (resource_group_name, , , custom_headers:nil)
  (resource_group_name, , , custom_headers:custom_headers).value!
end

#get_storage_account(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ StorageAccountInfo

Gets the specified Azure Storage account linked to the given Data Lake Analytics account.

contains the Data Lake Analytics account. which to retrieve Azure storage account details. for which to retrieve the details. will be added to the HTTP request.



39
40
41
42
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 39

def (resource_group_name, , , custom_headers:nil)
  response = (resource_group_name, , , custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#get_storage_account_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise

Gets the specified Azure Storage account linked to the given Data Lake Analytics account.

contains the Data Lake Analytics account. which to retrieve Azure storage account details. for which to retrieve the details. to the HTTP request.



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 78

def (resource_group_name, , , custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'storage_account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'storageAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::StorageAccountInfo.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#get_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the specified Azure Storage account linked to the given Data Lake Analytics account.

contains the Data Lake Analytics account. which to retrieve Azure storage account details. for which to retrieve the details. will be added to the HTTP request.



59
60
61
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 59

def (resource_group_name, , , custom_headers:nil)
  (resource_group_name, , , custom_headers:custom_headers).value!
end

#get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ BlobContainer

Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.

contains the Data Lake Analytics account. which to retrieve blob container. from which to retrieve the blob container. retrieve will be added to the HTTP request.



465
466
467
468
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 465

def get_storage_container(resource_group_name, , , container_name, custom_headers:nil)
  response = get_storage_container_async(resource_group_name, , , container_name, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Concurrent::Promise

Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.

contains the Data Lake Analytics account. which to retrieve blob container. from which to retrieve the blob container. retrieve to the HTTP request.



508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 508

def get_storage_container_async(resource_group_name, , , container_name, custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'storage_account_name is nil' if .nil?
  fail ArgumentError, 'container_name is nil' if container_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'storageAccountName' => ,'containerName' => container_name,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::BlobContainer.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the specified Azure Storage container associated with the given Data Lake Analytics and Azure Storage accounts.

contains the Data Lake Analytics account. which to retrieve blob container. from which to retrieve the blob container. retrieve will be added to the HTTP request.



487
488
489
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 487

def get_storage_container_with_http_info(resource_group_name, , , container_name, custom_headers:nil)
  get_storage_container_async(resource_group_name, , , container_name, custom_headers:custom_headers).value!
end

#get_with_http_info(resource_group_name, account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets details of the specified Data Lake Analytics account.

contains the Data Lake Analytics account. retrieve. will be added to the HTTP request.



1799
1800
1801
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1799

def get_with_http_info(resource_group_name, , custom_headers:nil)
  get_async(resource_group_name, , custom_headers:custom_headers).value!
end

#list(filter: nil, top: nil, skip: nil, expand: nil, select: nil, orderby: nil, count: nil, search: nil, format: nil, custom_headers: nil) ⇒ Array<DataLakeAnalyticsAccount>

Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.

elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1646
1647
1648
1649
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1646

def list(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil)
  first_page = list_as_lazy(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers)
  first_page.get_all_items
end

#list_as_lazy(filter: nil, top: nil, skip: nil, expand: nil, select: nil, orderby: nil, count: nil, search: nil, format: nil, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult

Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.

elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.

pages of the response.



3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 3133

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)
  response = list_async(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_page_link|
      list_next_async(next_page_link, custom_headers:custom_headers)
    end
    page
  end
end

#list_async(filter: nil, top: nil, skip: nil, expand: nil, select: nil, orderby: nil, count: nil, search: nil, format: nil, custom_headers: nil) ⇒ Concurrent::Promise

Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.

elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. to the HTTP request.



1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1719

def list_async(filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil)
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'subscriptionId' => @client.subscription_id},
      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},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#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) ⇒ Array<DataLakeAnalyticsAccount>

Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.

contains the Data Lake Analytics account. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1485
1486
1487
1488
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1485

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)
  first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers)
  first_page.get_all_items
end

#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) ⇒ DataLakeAnalyticsAccountListResult

Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.

contains the Data Lake Analytics account. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.

pages of the response.



3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 3089

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)
  response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_page_link|
      list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
    end
    page
  end
end

#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) ⇒ Concurrent::Promise

Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.

contains the Data Lake Analytics account. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. to the HTTP request.



1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1562

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)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
      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},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult

Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.

to List operation. will be added to the HTTP request.



2728
2729
2730
2731
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2728

def list_by_resource_group_next(next_page_link, custom_headers:nil)
  response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise

Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.

to List operation. to the HTTP request.



2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2759

def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.

to List operation. will be added to the HTTP request.



2744
2745
2746
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2744

def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
  list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
end

#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) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any.

contains the Data Lake Analytics account. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1524
1525
1526
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1524

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)
  list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
end

#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) ⇒ Array<DataLakeStoreAccountInfo>

Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Data Lake Store accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1315
1316
1317
1318
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1315

def list_data_lake_store_accounts(resource_group_name, , filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil)
  first_page = list_data_lake_store_accounts_as_lazy(resource_group_name, , filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers)
  first_page.get_all_items
end

#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) ⇒ DataLakeAnalyticsAccountListDataLakeStoreResult

Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Data Lake Store accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.

access to pages of the response.



3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 3043

def list_data_lake_store_accounts_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)
  response = list_data_lake_store_accounts_async(resource_group_name, , filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_page_link|
      list_data_lake_store_accounts_next_async(next_page_link, custom_headers:custom_headers)
    end
    page
  end
end

#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) ⇒ Concurrent::Promise

Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Data Lake Store accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. to the HTTP request.



1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1398

def list_data_lake_store_accounts_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)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'subscriptionId' => @client.subscription_id},
      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},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_data_lake_store_accounts_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListDataLakeStoreResult

Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

to List operation. will be added to the HTTP request.



2635
2636
2637
2638
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2635

def list_data_lake_store_accounts_next(next_page_link, custom_headers:nil)
  response = list_data_lake_store_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#list_data_lake_store_accounts_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise

Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

to List operation. to the HTTP request.



2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2668

def list_data_lake_store_accounts_next_async(next_page_link, custom_headers:nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_data_lake_store_accounts_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

to List operation. will be added to the HTTP request.



2652
2653
2654
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2652

def list_data_lake_store_accounts_next_with_http_info(next_page_link, custom_headers:nil)
  list_data_lake_store_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
end

#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) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Data Lake Store accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1357
1358
1359
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1357

def list_data_lake_store_accounts_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)
  list_data_lake_store_accounts_async(resource_group_name, , filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
end

#list_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListResult

Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.

to List operation. will be added to the HTTP request.



2819
2820
2821
2822
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2819

def list_next(next_page_link, custom_headers:nil)
  response = list_next_async(next_page_link, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise

Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.

to List operation. to the HTTP request.



2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2850

def list_next_async(next_page_link, custom_headers:nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.

to List operation. will be added to the HTTP request.



2835
2836
2837
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2835

def list_next_with_http_info(next_page_link, custom_headers:nil)
  list_next_async(next_page_link, custom_headers:custom_headers).value!
end

#list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Array<SasTokenInfo>

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

contains the Data Lake Analytics account. which an Azure Storage account’s SAS token is being requested. for which the SAS token is being requested. which the SAS token is being requested. will be added to the HTTP request.



691
692
693
694
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 691

def list_sas_tokens(resource_group_name, , , container_name, custom_headers:nil)
  first_page = list_sas_tokens_as_lazy(resource_group_name, , , container_name, custom_headers:custom_headers)
  first_page.get_all_items
end

#list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ ListSasTokensResult

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

contains the Data Lake Analytics account. which an Azure Storage account’s SAS token is being requested. for which the SAS token is being requested. which the SAS token is being requested. will be added to the HTTP request.

response.



2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2945

def list_sas_tokens_as_lazy(resource_group_name, , , container_name, custom_headers:nil)
  response = list_sas_tokens_async(resource_group_name, , , container_name, custom_headers:custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_page_link|
      list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers)
    end
    page
  end
end

#list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ Concurrent::Promise

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

contains the Data Lake Analytics account. which an Azure Storage account’s SAS token is being requested. for which the SAS token is being requested. which the SAS token is being requested. to the HTTP request.



734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 734

def list_sas_tokens_async(resource_group_name, , , container_name, custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'storage_account_name is nil' if .nil?
  fail ArgumentError, 'container_name is nil' if container_name.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}/listSasTokens'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'storageAccountName' => ,'containerName' => container_name,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:post, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::ListSasTokensResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_sas_tokens_next(next_page_link, custom_headers: nil) ⇒ ListSasTokensResult

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

to List operation. will be added to the HTTP request.



2448
2449
2450
2451
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2448

def list_sas_tokens_next(next_page_link, custom_headers:nil)
  response = list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#list_sas_tokens_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

to List operation. to the HTTP request.



2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2479

def list_sas_tokens_next_async(next_page_link, custom_headers:nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:post, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::ListSasTokensResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_sas_tokens_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

to List operation. will be added to the HTTP request.



2464
2465
2466
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2464

def list_sas_tokens_next_with_http_info(next_page_link, custom_headers:nil)
  list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value!
end

#list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the SAS token associated with the specified Data Lake Analytics and Azure Storage account and container combination.

contains the Data Lake Analytics account. which an Azure Storage account’s SAS token is being requested. for which the SAS token is being requested. which the SAS token is being requested. will be added to the HTTP request.



713
714
715
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 713

def list_sas_tokens_with_http_info(resource_group_name, , , container_name, custom_headers:nil)
  list_sas_tokens_async(resource_group_name, , , container_name, custom_headers:custom_headers).value!
end

#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) ⇒ Array<StorageAccountInfo>

Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Azure Storage accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1142
1143
1144
1145
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1142

def list_storage_accounts(resource_group_name, , filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil)
  first_page = list_storage_accounts_as_lazy(resource_group_name, , filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers)
  first_page.get_all_items
end

#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) ⇒ DataLakeAnalyticsAccountListStorageAccountsResult

Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Azure Storage accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.

lazy access to pages of the response.



2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2994

def list_storage_accounts_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)
  response = list_storage_accounts_async(resource_group_name, , filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_page_link|
      list_storage_accounts_next_async(next_page_link, custom_headers:custom_headers)
    end
    page
  end
end

#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) ⇒ Concurrent::Promise

Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Azure Storage accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. to the HTTP request.



1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1225

def list_storage_accounts_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)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'subscriptionId' => @client.subscription_id},
      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},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListStorageAccountsResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_storage_accounts_next(next_page_link, custom_headers: nil) ⇒ DataLakeAnalyticsAccountListStorageAccountsResult

Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

to List operation. will be added to the HTTP request.

results.



2541
2542
2543
2544
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2541

def list_storage_accounts_next(next_page_link, custom_headers:nil)
  response = list_storage_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#list_storage_accounts_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise

Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

to List operation. to the HTTP request.



2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2574

def list_storage_accounts_next_async(next_page_link, custom_headers:nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccountListStorageAccountsResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_storage_accounts_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

to List operation. will be added to the HTTP request.



2558
2559
2560
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2558

def list_storage_accounts_next_with_http_info(next_page_link, custom_headers:nil)
  list_storage_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
end

#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) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.

contains the Data Lake Analytics account. which to list Azure Storage accounts. elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1184
1185
1186
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1184

def list_storage_accounts_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)
  list_storage_accounts_async(resource_group_name, , filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
end

#list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Array<BlobContainer>

Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.

contains the Data Lake Analytics account. which to list Azure Storage blob containers. from which to list blob containers. will be added to the HTTP request.



579
580
581
582
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 579

def list_storage_containers(resource_group_name, , , custom_headers:nil)
  first_page = list_storage_containers_as_lazy(resource_group_name, , , custom_headers:custom_headers)
  first_page.get_all_items
end

#list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ ListBlobContainersResult

Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.

contains the Data Lake Analytics account. which to list Azure Storage blob containers. from which to list blob containers. will be added to the HTTP request.

response.



2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2916

def list_storage_containers_as_lazy(resource_group_name, , , custom_headers:nil)
  response = list_storage_containers_async(resource_group_name, , , custom_headers:custom_headers).value!
  unless response.nil?
    page = response.body
    page.next_method = Proc.new do |next_page_link|
      list_storage_containers_next_async(next_page_link, custom_headers:custom_headers)
    end
    page
  end
end

#list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ Concurrent::Promise

Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.

contains the Data Lake Analytics account. which to list Azure Storage blob containers. from which to list blob containers. to the HTTP request.



620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 620

def list_storage_containers_async(resource_group_name, , , custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'storage_account_name is nil' if .nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'storageAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::ListBlobContainersResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_storage_containers_next(next_page_link, custom_headers: nil) ⇒ ListBlobContainersResult

Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.

to List operation. will be added to the HTTP request.



2355
2356
2357
2358
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2355

def list_storage_containers_next(next_page_link, custom_headers:nil)
  response = list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#list_storage_containers_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise

Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.

to List operation. to the HTTP request.



2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2388

def list_storage_containers_next_async(next_page_link, custom_headers:nil)
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
  path_template = '{nextLink}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      skip_encoding_path_params: {'nextLink' => next_page_link},
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:get, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
    # Deserialize Response
    if status_code == 200
      begin
        parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
        result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::ListBlobContainersResult.mapper()
        result.body = @client.deserialize(result_mapper, parsed_response)
      rescue Exception => e
        fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
      end
    end

    result
  end

  promise.execute
end

#list_storage_containers_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.

to List operation. will be added to the HTTP request.



2372
2373
2374
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 2372

def list_storage_containers_next_with_http_info(next_page_link, custom_headers:nil)
  list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value!
end

#list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Lists the Azure Storage containers, if any, associated with the specified Data Lake Analytics and Azure Storage account combination. The response includes a link to the next page of results, if any.

contains the Data Lake Analytics account. which to list Azure Storage blob containers. from which to list blob containers. will be added to the HTTP request.



600
601
602
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 600

def list_storage_containers_with_http_info(resource_group_name, , , custom_headers:nil)
  list_storage_containers_async(resource_group_name, , , custom_headers:custom_headers).value!
end

#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) ⇒ MsRestAzure::AzureOperationResponse

Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.

elements. Optional. the retrieved resources, e.g. Categories/$expand=Products would expand Product data in line with each Category entry. Optional. entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional. expressions with an optional “asc” (the default) or “desc” depending on the order you’d like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional. of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional. match for whether a particular entry should be included in the feed, e.g. Categories?$search=blue OR green. Optional. particular formatxii without access to request headers for standard content-type negotiation (e.g Orders?$format=json). Optional. will be added to the HTTP request.



1683
1684
1685
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1683

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)
  list_async(filter:filter, top:top, skip:skip, expand:expand, select:select, orderby:orderby, count:count, search:search, format:format, custom_headers:custom_headers).value!
end

#update(resource_group_name, name, parameters, custom_headers: nil) ⇒ DataLakeAnalyticsAccount

Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.

contains the Data Lake Analytics account. update Data Lake Analytics account operation. will be added to the HTTP request.



1974
1975
1976
1977
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1974

def update(resource_group_name, name, parameters, custom_headers:nil)
  response = update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
  response.body unless response.nil?
end

#update_async(resource_group_name, name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

contains the Data Lake Analytics account. update Data Lake Analytics account operation. will be added to the HTTP request.

response.



1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 1991

def update_async(resource_group_name, name, parameters, custom_headers:nil)
  # Send request
  promise = begin_update_async(resource_group_name, name, parameters, custom_headers:custom_headers)

  promise = promise.then do |response|
    # Defining deserialization method.
    deserialize_method = lambda do |parsed_response|
      result_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::DataLakeAnalyticsAccount.mapper()
      parsed_response = @client.deserialize(result_mapper, parsed_response)
    end

    # Waiting for response.
    @client.get_long_running_operation_result(response, deserialize_method)
  end

  promise
end

#update_storage_account(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Object

Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.

contains the Data Lake Analytics account. modify storage accounts in access key and suffix to update the storage account with. will be added to the HTTP request.



244
245
246
247
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 244

def (resource_group_name, , , parameters, custom_headers:nil)
  response = (resource_group_name, , , parameters, custom_headers:custom_headers).value!
  nil
end

#update_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise

Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.

contains the Data Lake Analytics account. modify storage accounts in access key and suffix to update the storage account with. to the HTTP request.



285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 285

def (resource_group_name, , , parameters, custom_headers:nil)
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
  fail ArgumentError, 'account_name is nil' if .nil?
  fail ArgumentError, 'storage_account_name is nil' if .nil?
  fail ArgumentError, 'parameters is nil' if parameters.nil?
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?


  request_headers = {}
  request_headers['Content-Type'] = 'application/json; charset=utf-8'

  # Set Headers
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?

  # Serialize Request
  request_mapper = Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview::Models::AddStorageAccountParameters.mapper()
  request_content = @client.serialize(request_mapper,  parameters)
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil

  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'

  request_url = @base_url || @client.base_url

  options = {
      middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
      path_params: {'resourceGroupName' => resource_group_name,'accountName' => ,'storageAccountName' => ,'subscriptionId' => @client.subscription_id},
      query_params: {'api-version' => @client.api_version},
      body: request_content,
      headers: request_headers.merge(custom_headers || {}),
      base_url: request_url
  }
  promise = @client.make_request_async(:patch, path_template, options)

  promise = promise.then do |result|
    http_response = result.response
    status_code = http_response.status
    response_content = http_response.body
    unless status_code == 200
      error_model = JSON.load(response_content)
      fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
    end

    result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?

    result
  end

  promise.execute
end

#update_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse

Updates the Data Lake Analytics account to replace Azure Storage blob account details, such as the access key and/or suffix.

contains the Data Lake Analytics account. modify storage accounts in access key and suffix to update the storage account with. will be added to the HTTP request.



265
266
267
# File 'lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb', line 265

def (resource_group_name, , , parameters, custom_headers:nil)
  (resource_group_name, , , parameters, custom_headers:custom_headers).value!
end