azure_mgmt_datalake_analytics 0.15.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb +174 -160
  3. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb +10 -6
  4. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb +1 -1
  5. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb +1 -1
  6. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb +1 -1
  7. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/list_blob_containers_result.rb +1 -1
  8. data/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb +1 -1
  9. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics.rb +43 -25
  10. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/{account.rb → accounts.rb} +298 -222
  11. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/compute_policies.rb +176 -206
  12. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb +28 -16
  13. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb +180 -203
  14. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/firewall_rules.rb +171 -201
  15. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/locations.rb +116 -0
  16. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb +2 -2
  17. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_with_account_parameters.rb +58 -0
  18. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb +3 -4
  19. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_storage_account_with_account_parameters.rb +70 -0
  20. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/capability_information.rb +100 -0
  21. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/check_name_availability_parameters.rb +62 -0
  22. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb +22 -5
  23. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb +3 -3
  24. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{compute_policy_account_create_parameters.rb → create_compute_policy_with_account_parameters.rb} +7 -6
  25. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_data_lake_analytics_account_parameters.rb +285 -0
  26. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_firewall_rule_with_account_parameters.rb +71 -0
  27. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{compute_policy_create_or_update_parameters.rb → create_or_update_compute_policy_parameters.rb} +4 -4
  28. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_firewall_rule_parameters.rb +59 -0
  29. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb +161 -147
  30. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb +21 -19
  31. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb +5 -5
  32. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{data_lake_store_account_info.rb → data_lake_store_account_information.rb} +8 -6
  33. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{data_lake_analytics_account_list_data_lake_store_result.rb → data_lake_store_account_information_list_result.rb} +15 -15
  34. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb +9 -6
  35. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{data_lake_analytics_firewall_rule_list_result.rb → firewall_rule_list_result.rb} +8 -9
  36. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/name_availability_information.rb +74 -0
  37. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{optional_sub_resource.rb → operation.rb} +21 -19
  38. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/operation_display.rb +83 -0
  39. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/operation_list_result.rb +68 -0
  40. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/operation_origin.rb +17 -0
  41. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/resource.rb +18 -7
  42. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{sas_token_info.rb → sas_token_information.rb} +5 -5
  43. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{list_sas_tokens_result.rb → sas_token_information_list_result.rb} +11 -11
  44. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{storage_account_info.rb → storage_account_information.rb} +8 -18
  45. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{data_lake_analytics_account_list_storage_accounts_result.rb → storage_account_information_list_result.rb} +13 -14
  46. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/storage_container.rb +2 -11
  47. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{list_storage_containers_result.rb → storage_container_list_result.rb} +8 -8
  48. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/sub_resource.rb +6 -5
  49. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/subscription_state.rb +19 -0
  50. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_compute_policy_parameters.rb +91 -0
  51. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_compute_policy_with_account_parameters.rb +103 -0
  52. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/{data_lake_analytics_account_update_parameters.rb → update_data_lake_analytics_account_parameters.rb} +120 -77
  53. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_data_lake_store_with_account_parameters.rb +59 -0
  54. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb +3 -3
  55. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_with_account_parameters.rb +71 -0
  56. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb +3 -4
  57. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_storage_account_with_account_parameters.rb +72 -0
  58. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/operations.rb +107 -0
  59. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb +416 -464
  60. data/lib/profiles/latest/datalakeanalytics_latest_profile_client.rb +28 -9
  61. data/lib/profiles/latest/datalakeanalytics_module_definition.rb +0 -1
  62. data/lib/profiles/latest/modules/datalakeanalytics_profile_module.rb +222 -135
  63. data/lib/version.rb +1 -1
  64. metadata +37 -19
  65. data/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb +0 -115
@@ -25,31 +25,38 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
25
25
  # @return [String] Client Api Version.
26
26
  attr_reader :api_version
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
40
+ # @return [Accounts] accounts
41
+ attr_reader :accounts
42
+
43
+ # @return [DataLakeStoreAccounts] data_lake_store_accounts
44
+ attr_reader :data_lake_store_accounts
45
+
46
+ # @return [StorageAccounts] storage_accounts
47
+ attr_reader :storage_accounts
48
+
39
49
  # @return [ComputePolicies] compute_policies
40
50
  attr_reader :compute_policies
41
51
 
42
52
  # @return [FirewallRules] firewall_rules
43
53
  attr_reader :firewall_rules
44
54
 
45
- # @return [StorageAccounts] storage_accounts
46
- attr_reader :storage_accounts
47
-
48
- # @return [DataLakeStoreAccounts] data_lake_store_accounts
49
- attr_reader :data_lake_store_accounts
55
+ # @return [Operations] operations
56
+ attr_reader :operations
50
57
 
51
- # @return [Account] account
52
- attr_reader :account
58
+ # @return [Locations] locations
59
+ attr_reader :locations
53
60
 
54
61
  #
55
62
  # Creates initializes a new instance of the DataLakeAnalyticsAccountManagementClient class.
@@ -64,11 +71,13 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
64
71
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
65
72
  @credentials = credentials
66
73
 
74
+ @accounts = Accounts.new(self)
75
+ @data_lake_store_accounts = DataLakeStoreAccounts.new(self)
76
+ @storage_accounts = StorageAccounts.new(self)
67
77
  @compute_policies = ComputePolicies.new(self)
68
78
  @firewall_rules = FirewallRules.new(self)
69
- @storage_accounts = StorageAccounts.new(self)
70
- @data_lake_store_accounts = DataLakeStoreAccounts.new(self)
71
- @account = Account.new(self)
79
+ @operations = Operations.new(self)
80
+ @locations = Locations.new(self)
72
81
  @api_version = '2016-11-01'
73
82
  @accept_language = 'en-US'
74
83
  @long_running_operation_retry_timeout = 30
@@ -122,6 +131,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
122
131
  fail ArgumentError, 'path is nil' if path.nil?
123
132
 
124
133
  request_url = options[:base_url] || @base_url
134
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
135
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
136
+ end
125
137
 
126
138
  request_headers = @request_headers
127
139
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -138,7 +150,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
138
150
  #
139
151
  def add_telemetry
140
152
  sdk_information = 'azure_mgmt_datalake_analytics'
141
- sdk_information = "#{sdk_information}/0.15.2"
153
+ sdk_information = "#{sdk_information}/0.17.3"
142
154
  add_user_agent_information(sdk_information)
143
155
  end
144
156
  end
@@ -22,98 +22,119 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
22
22
  attr_reader :client
23
23
 
24
24
  #
25
- # Updates the specified Data Lake Analytics account to include the additional
26
- # Data Lake Store account.
25
+ # Gets the first page of Data Lake Store accounts linked to the specified Data
26
+ # Lake Analytics account. The response includes a link to the next page, if
27
+ # any.
27
28
  #
28
- # @param resource_group_name [String] The name of the Azure resource group that
29
- # contains the Data Lake Analytics account.
30
- # @param account_name [String] The name of the Data Lake Analytics account to
31
- # which to add the Data Lake Store account.
32
- # @param data_lake_store_account_name [String] The name of the Data Lake Store
33
- # account to add.
34
- # @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
35
- # Store account.
29
+ # @param resource_group_name [String] The name of the Azure resource group.
30
+ # @param account_name [String] The name of the Data Lake Analytics account.
31
+ # @param filter [String] OData filter. Optional.
32
+ # @param top [Integer] The number of items to return. Optional.
33
+ # @param skip [Integer] The number of items to skip over before returning
34
+ # elements. Optional.
35
+ # @param select [String] OData Select statement. Limits the properties on each
36
+ # entry to just those requested, e.g.
37
+ # Categories?$select=CategoryName,Description. Optional.
38
+ # @param orderby [String] OrderBy clause. One or more comma-separated
39
+ # expressions with an optional "asc" (the default) or "desc" depending on the
40
+ # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
41
+ # desc. Optional.
42
+ # @param count [Boolean] The Boolean value of true or false to request a count
43
+ # of the matching resources included with the resources in the response, e.g.
44
+ # Categories?$count=true. Optional.
36
45
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
37
46
  # will be added to the HTTP request.
38
47
  #
48
+ # @return [Array<DataLakeStoreAccountInformation>] operation results.
39
49
  #
40
- def add(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
41
- response = add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
42
- nil
50
+ def list_by_account(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
51
+ first_page = list_by_account_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers)
52
+ first_page.get_all_items
43
53
  end
44
54
 
45
55
  #
46
- # Updates the specified Data Lake Analytics account to include the additional
47
- # Data Lake Store account.
56
+ # Gets the first page of Data Lake Store accounts linked to the specified Data
57
+ # Lake Analytics account. The response includes a link to the next page, if
58
+ # any.
48
59
  #
49
- # @param resource_group_name [String] The name of the Azure resource group that
50
- # contains the Data Lake Analytics account.
51
- # @param account_name [String] The name of the Data Lake Analytics account to
52
- # which to add the Data Lake Store account.
53
- # @param data_lake_store_account_name [String] The name of the Data Lake Store
54
- # account to add.
55
- # @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
56
- # Store account.
60
+ # @param resource_group_name [String] The name of the Azure resource group.
61
+ # @param account_name [String] The name of the Data Lake Analytics account.
62
+ # @param filter [String] OData filter. Optional.
63
+ # @param top [Integer] The number of items to return. Optional.
64
+ # @param skip [Integer] The number of items to skip over before returning
65
+ # elements. Optional.
66
+ # @param select [String] OData Select statement. Limits the properties on each
67
+ # entry to just those requested, e.g.
68
+ # Categories?$select=CategoryName,Description. Optional.
69
+ # @param orderby [String] OrderBy clause. One or more comma-separated
70
+ # expressions with an optional "asc" (the default) or "desc" depending on the
71
+ # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
72
+ # desc. Optional.
73
+ # @param count [Boolean] The Boolean value of true or false to request a count
74
+ # of the matching resources included with the resources in the response, e.g.
75
+ # Categories?$count=true. Optional.
57
76
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
58
77
  # will be added to the HTTP request.
59
78
  #
60
79
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
61
80
  #
62
- def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
63
- add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
81
+ def list_by_account_with_http_info(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
82
+ list_by_account_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value!
64
83
  end
65
84
 
66
85
  #
67
- # Updates the specified Data Lake Analytics account to include the additional
68
- # Data Lake Store account.
86
+ # Gets the first page of Data Lake Store accounts linked to the specified Data
87
+ # Lake Analytics account. The response includes a link to the next page, if
88
+ # any.
69
89
  #
70
- # @param resource_group_name [String] The name of the Azure resource group that
71
- # contains the Data Lake Analytics account.
72
- # @param account_name [String] The name of the Data Lake Analytics account to
73
- # which to add the Data Lake Store account.
74
- # @param data_lake_store_account_name [String] The name of the Data Lake Store
75
- # account to add.
76
- # @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
77
- # Store account.
90
+ # @param resource_group_name [String] The name of the Azure resource group.
91
+ # @param account_name [String] The name of the Data Lake Analytics account.
92
+ # @param filter [String] OData filter. Optional.
93
+ # @param top [Integer] The number of items to return. Optional.
94
+ # @param skip [Integer] The number of items to skip over before returning
95
+ # elements. Optional.
96
+ # @param select [String] OData Select statement. Limits the properties on each
97
+ # entry to just those requested, e.g.
98
+ # Categories?$select=CategoryName,Description. Optional.
99
+ # @param orderby [String] OrderBy clause. One or more comma-separated
100
+ # expressions with an optional "asc" (the default) or "desc" depending on the
101
+ # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
102
+ # desc. Optional.
103
+ # @param count [Boolean] The Boolean value of true or false to request a count
104
+ # of the matching resources included with the resources in the response, e.g.
105
+ # Categories?$count=true. Optional.
78
106
  # @param [Hash{String => String}] A hash of custom headers that will be added
79
107
  # to the HTTP request.
80
108
  #
81
109
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
82
110
  #
83
- def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
111
+ def list_by_account_async(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
112
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
84
113
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
85
114
  fail ArgumentError, 'account_name is nil' if account_name.nil?
86
- fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
115
+ fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
116
+ fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1
87
117
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
88
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
89
118
 
90
119
 
91
120
  request_headers = {}
121
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
92
122
 
93
123
  # Set Headers
94
124
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
95
125
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
96
-
97
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
98
-
99
- # Serialize Request
100
- request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreParameters.mapper()
101
- request_content = @client.serialize(request_mapper, parameters)
102
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
103
-
104
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
126
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts'
105
127
 
106
128
  request_url = @base_url || @client.base_url
107
129
 
108
130
  options = {
109
131
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
110
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
111
- query_params: {'api-version' => @client.api_version},
112
- body: request_content,
132
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
133
+ query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
113
134
  headers: request_headers.merge(custom_headers || {}),
114
135
  base_url: request_url
115
136
  }
116
- promise = @client.make_request_async(:put, path_template, options)
137
+ promise = @client.make_request_async(:get, path_template, options)
117
138
 
118
139
  promise = promise.then do |result|
119
140
  http_response = result.response
@@ -125,6 +146,16 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
125
146
  end
126
147
 
127
148
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
149
+ # Deserialize Response
150
+ if status_code == 200
151
+ begin
152
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
153
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformationListResult.mapper()
154
+ result.body = @client.deserialize(result_mapper, parsed_response)
155
+ rescue Exception => e
156
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
157
+ end
158
+ end
128
159
 
129
160
  result
130
161
  end
@@ -133,83 +164,91 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
133
164
  end
134
165
 
135
166
  #
136
- # Updates the Data Lake Analytics account specified to remove the specified
167
+ # Updates the specified Data Lake Analytics account to include the additional
137
168
  # Data Lake Store account.
138
169
  #
139
- # @param resource_group_name [String] The name of the Azure resource group that
140
- # contains the Data Lake Analytics account.
141
- # @param account_name [String] The name of the Data Lake Analytics account from
142
- # which to remove the Data Lake Store account.
170
+ # @param resource_group_name [String] The name of the Azure resource group.
171
+ # @param account_name [String] The name of the Data Lake Analytics account.
143
172
  # @param data_lake_store_account_name [String] The name of the Data Lake Store
144
- # account to remove
173
+ # account to add.
174
+ # @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
175
+ # Store account.
145
176
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
146
177
  # will be added to the HTTP request.
147
178
  #
148
179
  #
149
- def delete(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
150
- response = delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
180
+ def add(resource_group_name, account_name, data_lake_store_account_name, parameters:nil, custom_headers:nil)
181
+ response = add_async(resource_group_name, account_name, data_lake_store_account_name, parameters:parameters, custom_headers:custom_headers).value!
151
182
  nil
152
183
  end
153
184
 
154
185
  #
155
- # Updates the Data Lake Analytics account specified to remove the specified
186
+ # Updates the specified Data Lake Analytics account to include the additional
156
187
  # Data Lake Store account.
157
188
  #
158
- # @param resource_group_name [String] The name of the Azure resource group that
159
- # contains the Data Lake Analytics account.
160
- # @param account_name [String] The name of the Data Lake Analytics account from
161
- # which to remove the Data Lake Store account.
189
+ # @param resource_group_name [String] The name of the Azure resource group.
190
+ # @param account_name [String] The name of the Data Lake Analytics account.
162
191
  # @param data_lake_store_account_name [String] The name of the Data Lake Store
163
- # account to remove
192
+ # account to add.
193
+ # @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
194
+ # Store account.
164
195
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
165
196
  # will be added to the HTTP request.
166
197
  #
167
198
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
168
199
  #
169
- def delete_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
170
- delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
200
+ def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters:nil, custom_headers:nil)
201
+ add_async(resource_group_name, account_name, data_lake_store_account_name, parameters:parameters, custom_headers:custom_headers).value!
171
202
  end
172
203
 
173
204
  #
174
- # Updates the Data Lake Analytics account specified to remove the specified
205
+ # Updates the specified Data Lake Analytics account to include the additional
175
206
  # Data Lake Store account.
176
207
  #
177
- # @param resource_group_name [String] The name of the Azure resource group that
178
- # contains the Data Lake Analytics account.
179
- # @param account_name [String] The name of the Data Lake Analytics account from
180
- # which to remove the Data Lake Store account.
208
+ # @param resource_group_name [String] The name of the Azure resource group.
209
+ # @param account_name [String] The name of the Data Lake Analytics account.
181
210
  # @param data_lake_store_account_name [String] The name of the Data Lake Store
182
- # account to remove
211
+ # account to add.
212
+ # @param parameters [AddDataLakeStoreParameters] The details of the Data Lake
213
+ # Store account.
183
214
  # @param [Hash{String => String}] A hash of custom headers that will be added
184
215
  # to the HTTP request.
185
216
  #
186
217
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
187
218
  #
188
- def delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
219
+ def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters:nil, custom_headers:nil)
220
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
189
221
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
190
222
  fail ArgumentError, 'account_name is nil' if account_name.nil?
191
223
  fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
192
224
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
193
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
194
225
 
195
226
 
196
227
  request_headers = {}
228
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
197
229
 
198
230
  # Set Headers
199
231
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
200
232
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
201
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
233
+
234
+ # Serialize Request
235
+ request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddDataLakeStoreParameters.mapper()
236
+ request_content = @client.serialize(request_mapper, parameters)
237
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
238
+
239
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}'
202
240
 
203
241
  request_url = @base_url || @client.base_url
204
242
 
205
243
  options = {
206
244
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
207
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
245
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name},
208
246
  query_params: {'api-version' => @client.api_version},
247
+ body: request_content,
209
248
  headers: request_headers.merge(custom_headers || {}),
210
249
  base_url: request_url
211
250
  }
212
- promise = @client.make_request_async(:delete, path_template, options)
251
+ promise = @client.make_request_async(:put, path_template, options)
213
252
 
214
253
  promise = promise.then do |result|
215
254
  http_response = result.response
@@ -232,19 +271,17 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
232
271
  # Gets the specified Data Lake Store account details in the specified Data Lake
233
272
  # Analytics account.
234
273
  #
235
- # @param resource_group_name [String] The name of the Azure resource group that
236
- # contains the Data Lake Analytics account.
237
- # @param account_name [String] The name of the Data Lake Analytics account from
238
- # which to retrieve the Data Lake Store account details.
274
+ # @param resource_group_name [String] The name of the Azure resource group.
275
+ # @param account_name [String] The name of the Data Lake Analytics account.
239
276
  # @param data_lake_store_account_name [String] The name of the Data Lake Store
240
277
  # account to retrieve
241
278
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
279
  # will be added to the HTTP request.
243
280
  #
244
- # @return [DataLakeStoreAccountInfo] operation results.
281
+ # @return [DataLakeStoreAccountInformation] operation results.
245
282
  #
246
- def get(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
247
- response = get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
283
+ def get(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil)
284
+ response = get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value!
248
285
  response.body unless response.nil?
249
286
  end
250
287
 
@@ -252,10 +289,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
252
289
  # Gets the specified Data Lake Store account details in the specified Data Lake
253
290
  # Analytics account.
254
291
  #
255
- # @param resource_group_name [String] The name of the Azure resource group that
256
- # contains the Data Lake Analytics account.
257
- # @param account_name [String] The name of the Data Lake Analytics account from
258
- # which to retrieve the Data Lake Store account details.
292
+ # @param resource_group_name [String] The name of the Azure resource group.
293
+ # @param account_name [String] The name of the Data Lake Analytics account.
259
294
  # @param data_lake_store_account_name [String] The name of the Data Lake Store
260
295
  # account to retrieve
261
296
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -263,18 +298,16 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
263
298
  #
264
299
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
265
300
  #
266
- def get_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
267
- get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers).value!
301
+ def get_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil)
302
+ get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value!
268
303
  end
269
304
 
270
305
  #
271
306
  # Gets the specified Data Lake Store account details in the specified Data Lake
272
307
  # Analytics account.
273
308
  #
274
- # @param resource_group_name [String] The name of the Azure resource group that
275
- # contains the Data Lake Analytics account.
276
- # @param account_name [String] The name of the Data Lake Analytics account from
277
- # which to retrieve the Data Lake Store account details.
309
+ # @param resource_group_name [String] The name of the Azure resource group.
310
+ # @param account_name [String] The name of the Data Lake Analytics account.
278
311
  # @param data_lake_store_account_name [String] The name of the Data Lake Store
279
312
  # account to retrieve
280
313
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -282,26 +315,27 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
282
315
  #
283
316
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
284
317
  #
285
- def get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers = nil)
318
+ def get_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil)
319
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
286
320
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
287
321
  fail ArgumentError, 'account_name is nil' if account_name.nil?
288
322
  fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
289
323
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
290
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
291
324
 
292
325
 
293
326
  request_headers = {}
327
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
294
328
 
295
329
  # Set Headers
296
330
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
297
331
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
298
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/{dataLakeStoreAccountName}'
332
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}'
299
333
 
300
334
  request_url = @base_url || @client.base_url
301
335
 
302
336
  options = {
303
337
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
304
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name,'subscriptionId' => @client.subscription_id},
338
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name},
305
339
  query_params: {'api-version' => @client.api_version},
306
340
  headers: request_headers.merge(custom_headers || {}),
307
341
  base_url: request_url
@@ -322,7 +356,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
322
356
  if status_code == 200
323
357
  begin
324
358
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
325
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInfo.mapper()
359
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformation.mapper()
326
360
  result.body = @client.deserialize(result_mapper, parsed_response)
327
361
  rescue Exception => e
328
362
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -336,124 +370,78 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
336
370
  end
337
371
 
338
372
  #
339
- # Gets the first page of Data Lake Store accounts linked to the specified Data
340
- # Lake Analytics account. The response includes a link to the next page, if
341
- # any.
373
+ # Updates the Data Lake Analytics account specified to remove the specified
374
+ # Data Lake Store account.
342
375
  #
343
- # @param resource_group_name [String] The name of the Azure resource group that
344
- # contains the Data Lake Analytics account.
345
- # @param account_name [String] The name of the Data Lake Analytics account for
346
- # which to list Data Lake Store accounts.
347
- # @param filter [String] OData filter. Optional.
348
- # @param top [Integer] The number of items to return. Optional.
349
- # @param skip [Integer] The number of items to skip over before returning
350
- # elements. Optional.
351
- # @param select [String] OData Select statement. Limits the properties on each
352
- # entry to just those requested, e.g.
353
- # Categories?$select=CategoryName,Description. Optional.
354
- # @param orderby [String] OrderBy clause. One or more comma-separated
355
- # expressions with an optional "asc" (the default) or "desc" depending on the
356
- # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
357
- # desc. Optional.
358
- # @param count [Boolean] The Boolean value of true or false to request a count
359
- # of the matching resources included with the resources in the response, e.g.
360
- # Categories?$count=true. Optional.
376
+ # @param resource_group_name [String] The name of the Azure resource group.
377
+ # @param account_name [String] The name of the Data Lake Analytics account.
378
+ # @param data_lake_store_account_name [String] The name of the Data Lake Store
379
+ # account to remove
361
380
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
362
381
  # will be added to the HTTP request.
363
382
  #
364
- # @return [Array<DataLakeStoreAccountInfo>] operation results.
365
383
  #
366
- def list_by_account(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
367
- first_page = list_by_account_as_lazy(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers)
368
- first_page.get_all_items
384
+ def delete(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil)
385
+ response = delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value!
386
+ nil
369
387
  end
370
388
 
371
389
  #
372
- # Gets the first page of Data Lake Store accounts linked to the specified Data
373
- # Lake Analytics account. The response includes a link to the next page, if
374
- # any.
390
+ # Updates the Data Lake Analytics account specified to remove the specified
391
+ # Data Lake Store account.
375
392
  #
376
- # @param resource_group_name [String] The name of the Azure resource group that
377
- # contains the Data Lake Analytics account.
378
- # @param account_name [String] The name of the Data Lake Analytics account for
379
- # which to list Data Lake Store accounts.
380
- # @param filter [String] OData filter. Optional.
381
- # @param top [Integer] The number of items to return. Optional.
382
- # @param skip [Integer] The number of items to skip over before returning
383
- # elements. Optional.
384
- # @param select [String] OData Select statement. Limits the properties on each
385
- # entry to just those requested, e.g.
386
- # Categories?$select=CategoryName,Description. Optional.
387
- # @param orderby [String] OrderBy clause. One or more comma-separated
388
- # expressions with an optional "asc" (the default) or "desc" depending on the
389
- # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
390
- # desc. Optional.
391
- # @param count [Boolean] The Boolean value of true or false to request a count
392
- # of the matching resources included with the resources in the response, e.g.
393
- # Categories?$count=true. Optional.
393
+ # @param resource_group_name [String] The name of the Azure resource group.
394
+ # @param account_name [String] The name of the Data Lake Analytics account.
395
+ # @param data_lake_store_account_name [String] The name of the Data Lake Store
396
+ # account to remove
394
397
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
395
398
  # will be added to the HTTP request.
396
399
  #
397
400
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
398
401
  #
399
- def list_by_account_with_http_info(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
400
- list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value!
402
+ def delete_with_http_info(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil)
403
+ delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:custom_headers).value!
401
404
  end
402
405
 
403
406
  #
404
- # Gets the first page of Data Lake Store accounts linked to the specified Data
405
- # Lake Analytics account. The response includes a link to the next page, if
406
- # any.
407
+ # Updates the Data Lake Analytics account specified to remove the specified
408
+ # Data Lake Store account.
407
409
  #
408
- # @param resource_group_name [String] The name of the Azure resource group that
409
- # contains the Data Lake Analytics account.
410
- # @param account_name [String] The name of the Data Lake Analytics account for
411
- # which to list Data Lake Store accounts.
412
- # @param filter [String] OData filter. Optional.
413
- # @param top [Integer] The number of items to return. Optional.
414
- # @param skip [Integer] The number of items to skip over before returning
415
- # elements. Optional.
416
- # @param select [String] OData Select statement. Limits the properties on each
417
- # entry to just those requested, e.g.
418
- # Categories?$select=CategoryName,Description. Optional.
419
- # @param orderby [String] OrderBy clause. One or more comma-separated
420
- # expressions with an optional "asc" (the default) or "desc" depending on the
421
- # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
422
- # desc. Optional.
423
- # @param count [Boolean] The Boolean value of true or false to request a count
424
- # of the matching resources included with the resources in the response, e.g.
425
- # Categories?$count=true. Optional.
410
+ # @param resource_group_name [String] The name of the Azure resource group.
411
+ # @param account_name [String] The name of the Data Lake Analytics account.
412
+ # @param data_lake_store_account_name [String] The name of the Data Lake Store
413
+ # account to remove
426
414
  # @param [Hash{String => String}] A hash of custom headers that will be added
427
415
  # to the HTTP request.
428
416
  #
429
417
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
430
418
  #
431
- def list_by_account_async(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
419
+ def delete_async(resource_group_name, account_name, data_lake_store_account_name, custom_headers:nil)
420
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
432
421
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
433
422
  fail ArgumentError, 'account_name is nil' if account_name.nil?
434
- fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
435
- fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1
423
+ fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
436
424
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
437
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
438
425
 
439
426
 
440
427
  request_headers = {}
428
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
441
429
 
442
430
  # Set Headers
443
431
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
444
432
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
445
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/DataLakeStoreAccounts/'
433
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/dataLakeStoreAccounts/{dataLakeStoreAccountName}'
446
434
 
447
435
  request_url = @base_url || @client.base_url
448
436
 
449
437
  options = {
450
438
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
451
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
452
- query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
439
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'dataLakeStoreAccountName' => data_lake_store_account_name},
440
+ query_params: {'api-version' => @client.api_version},
453
441
  headers: request_headers.merge(custom_headers || {}),
454
442
  base_url: request_url
455
443
  }
456
- promise = @client.make_request_async(:get, path_template, options)
444
+ promise = @client.make_request_async(:delete, path_template, options)
457
445
 
458
446
  promise = promise.then do |result|
459
447
  http_response = result.response
@@ -465,16 +453,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
465
453
  end
466
454
 
467
455
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
468
- # Deserialize Response
469
- if status_code == 200
470
- begin
471
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
472
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
473
- result.body = @client.deserialize(result_mapper, parsed_response)
474
- rescue Exception => e
475
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
476
- end
477
- end
478
456
 
479
457
  result
480
458
  end
@@ -492,10 +470,10 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
492
470
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
493
471
  # will be added to the HTTP request.
494
472
  #
495
- # @return [DataLakeAnalyticsAccountListDataLakeStoreResult] operation results.
473
+ # @return [DataLakeStoreAccountInformationListResult] operation results.
496
474
  #
497
- def list_by_account_next(next_page_link, custom_headers = nil)
498
- response = list_by_account_next_async(next_page_link, custom_headers).value!
475
+ def list_by_account_next(next_page_link, custom_headers:nil)
476
+ response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value!
499
477
  response.body unless response.nil?
500
478
  end
501
479
 
@@ -511,8 +489,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
511
489
  #
512
490
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
513
491
  #
514
- def list_by_account_next_with_http_info(next_page_link, custom_headers = nil)
515
- list_by_account_next_async(next_page_link, custom_headers).value!
492
+ def list_by_account_next_with_http_info(next_page_link, custom_headers:nil)
493
+ list_by_account_next_async(next_page_link, custom_headers:custom_headers).value!
516
494
  end
517
495
 
518
496
  #
@@ -527,11 +505,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
527
505
  #
528
506
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
529
507
  #
530
- def list_by_account_next_async(next_page_link, custom_headers = nil)
508
+ def list_by_account_next_async(next_page_link, custom_headers:nil)
531
509
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
532
510
 
533
511
 
534
512
  request_headers = {}
513
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
535
514
 
536
515
  # Set Headers
537
516
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -562,7 +541,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
562
541
  if status_code == 200
563
542
  begin
564
543
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
565
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListDataLakeStoreResult.mapper()
544
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeStoreAccountInformationListResult.mapper()
566
545
  result.body = @client.deserialize(result_mapper, parsed_response)
567
546
  rescue Exception => e
568
547
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -580,10 +559,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
580
559
  # Lake Analytics account. The response includes a link to the next page, if
581
560
  # any.
582
561
  #
583
- # @param resource_group_name [String] The name of the Azure resource group that
584
- # contains the Data Lake Analytics account.
585
- # @param account_name [String] The name of the Data Lake Analytics account for
586
- # which to list Data Lake Store accounts.
562
+ # @param resource_group_name [String] The name of the Azure resource group.
563
+ # @param account_name [String] The name of the Data Lake Analytics account.
587
564
  # @param filter [String] OData filter. Optional.
588
565
  # @param top [Integer] The number of items to return. Optional.
589
566
  # @param skip [Integer] The number of items to skip over before returning
@@ -601,15 +578,15 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
601
578
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
602
579
  # will be added to the HTTP request.
603
580
  #
604
- # @return [DataLakeAnalyticsAccountListDataLakeStoreResult] which provide lazy
605
- # access to pages of the response.
581
+ # @return [DataLakeStoreAccountInformationListResult] which provide lazy access
582
+ # to pages of the response.
606
583
  #
607
- def list_by_account_as_lazy(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
608
- response = list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value!
584
+ def list_by_account_as_lazy(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
585
+ response = list_by_account_async(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value!
609
586
  unless response.nil?
610
587
  page = response.body
611
588
  page.next_method = Proc.new do |next_page_link|
612
- list_by_account_next_async(next_page_link, custom_headers)
589
+ list_by_account_next_async(next_page_link, custom_headers:custom_headers)
613
590
  end
614
591
  page
615
592
  end