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,15 +25,16 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
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
 
39
40
  # @return [Account] account
@@ -106,6 +107,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
106
107
  fail ArgumentError, 'path is nil' if path.nil?
107
108
 
108
109
  request_url = options[:base_url] || @base_url
110
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
111
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
112
+ end
109
113
 
110
114
  request_headers = @request_headers
111
115
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -122,7 +126,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
122
126
  #
123
127
  def add_telemetry
124
128
  sdk_information = 'azure_mgmt_datalake_analytics'
125
- sdk_information = "#{sdk_information}/0.15.2"
129
+ sdk_information = "#{sdk_information}/0.17.3"
126
130
  add_user_agent_information(sdk_information)
127
131
  end
128
132
  end
@@ -34,7 +34,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
34
34
  def get_all_items
35
35
  items = @value
36
36
  page = self
37
- while page.next_link != nil do
37
+ while page.next_link != nil && !page.next_link.strip.empty? do
38
38
  page = page.get_next_page
39
39
  items.concat(page.value)
40
40
  end
@@ -31,7 +31,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
31
31
  def get_all_items
32
32
  items = @value
33
33
  page = self
34
- while page.next_link != nil do
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
35
  page = page.get_next_page
36
36
  items.concat(page.value)
37
37
  end
@@ -33,7 +33,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
33
33
  def get_all_items
34
34
  items = @value
35
35
  page = self
36
- while page.next_link != nil do
36
+ while page.next_link != nil && !page.next_link.strip.empty? do
37
37
  page = page.get_next_page
38
38
  items.concat(page.value)
39
39
  end
@@ -31,7 +31,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
31
31
  def get_all_items
32
32
  items = @value
33
33
  page = self
34
- while page.next_link != nil do
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
35
  page = page.get_next_page
36
36
  items.concat(page.value)
37
37
  end
@@ -31,7 +31,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview
31
31
  def get_all_items
32
32
  items = @value
33
33
  page = self
34
- while page.next_link != nil do
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
35
  page = page.get_next_page
36
36
  items.concat(page.value)
37
37
  end
@@ -20,45 +20,63 @@ require '2016-11-01/generated/azure_mgmt_datalake_analytics/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
23
+ autoload :Accounts, '2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb'
24
+ autoload :DataLakeStoreAccounts, '2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb'
25
+ autoload :StorageAccounts, '2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb'
23
26
  autoload :ComputePolicies, '2016-11-01/generated/azure_mgmt_datalake_analytics/compute_policies.rb'
24
27
  autoload :FirewallRules, '2016-11-01/generated/azure_mgmt_datalake_analytics/firewall_rules.rb'
25
- autoload :StorageAccounts, '2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb'
26
- autoload :DataLakeStoreAccounts, '2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb'
27
- autoload :Account, '2016-11-01/generated/azure_mgmt_datalake_analytics/account.rb'
28
+ autoload :Operations, '2016-11-01/generated/azure_mgmt_datalake_analytics/operations.rb'
29
+ autoload :Locations, '2016-11-01/generated/azure_mgmt_datalake_analytics/locations.rb'
28
30
  autoload :DataLakeAnalyticsAccountManagementClient, '2016-11-01/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb'
29
31
 
30
32
  module Models
31
- autoload :UpdateStorageAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb'
32
- autoload :AddDataLakeStoreParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb'
33
- autoload :StorageContainer, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/storage_container.rb'
34
- autoload :AddStorageAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb'
35
- autoload :SasTokenInfo, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb'
36
- autoload :OptionalSubResource, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb'
37
- autoload :ComputePolicyCreateOrUpdateParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy_create_or_update_parameters.rb'
38
- autoload :DataLakeAnalyticsAccountListDataLakeStoreResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb'
39
- autoload :ComputePolicyListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb'
40
- autoload :ComputePolicyAccountCreateParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy_account_create_parameters.rb'
41
- autoload :DataLakeAnalyticsAccountUpdateParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb'
42
- autoload :ListStorageContainersResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb'
43
- autoload :DataLakeAnalyticsAccountPropertiesBasic, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb'
44
- autoload :DataLakeAnalyticsAccountListStorageAccountsResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb'
33
+ autoload :CapabilityInformation, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/capability_information.rb'
45
34
  autoload :Resource, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/resource.rb'
46
- autoload :ComputePolicy, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb'
35
+ autoload :NameAvailabilityInformation, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/name_availability_information.rb'
36
+ autoload :Operation, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/operation.rb'
37
+ autoload :OperationListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/operation_list_result.rb'
47
38
  autoload :UpdateFirewallRuleParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb'
48
39
  autoload :SubResource, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/sub_resource.rb'
40
+ autoload :UpdateComputePolicyParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_compute_policy_parameters.rb'
41
+ autoload :UpdateStorageAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb'
42
+ autoload :DataLakeStoreAccountInformationListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_information_list_result.rb'
43
+ autoload :AddDataLakeStoreWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_with_account_parameters.rb'
44
+ autoload :CreateOrUpdateComputePolicyParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_compute_policy_parameters.rb'
45
+ autoload :AddStorageAccountWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_storage_account_with_account_parameters.rb'
46
+ autoload :SasTokenInformation, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/sas_token_information.rb'
47
+ autoload :CreateComputePolicyWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_compute_policy_with_account_parameters.rb'
48
+ autoload :ComputePolicyListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb'
49
+ autoload :CreateFirewallRuleWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_firewall_rule_with_account_parameters.rb'
50
+ autoload :OperationDisplay, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/operation_display.rb'
51
+ autoload :CreateDataLakeAnalyticsAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_data_lake_analytics_account_parameters.rb'
52
+ autoload :CreateOrUpdateFirewallRuleParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_firewall_rule_parameters.rb'
53
+ autoload :UpdateDataLakeStoreWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_data_lake_store_with_account_parameters.rb'
54
+ autoload :StorageAccountInformationListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/storage_account_information_list_result.rb'
55
+ autoload :UpdateStorageAccountWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_storage_account_with_account_parameters.rb'
56
+ autoload :SasTokenInformationListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/sas_token_information_list_result.rb'
57
+ autoload :UpdateComputePolicyWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_compute_policy_with_account_parameters.rb'
58
+ autoload :CheckNameAvailabilityParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/check_name_availability_parameters.rb'
59
+ autoload :UpdateFirewallRuleWithAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_with_account_parameters.rb'
60
+ autoload :StorageContainerListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/storage_container_list_result.rb'
61
+ autoload :UpdateDataLakeAnalyticsAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/update_data_lake_analytics_account_parameters.rb'
49
62
  autoload :DataLakeAnalyticsAccountListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb'
50
- autoload :ListSasTokensResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb'
51
- autoload :DataLakeAnalyticsFirewallRuleListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb'
52
- autoload :StorageAccountInfo, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb'
53
- autoload :DataLakeStoreAccountInfo, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb'
63
+ autoload :AddDataLakeStoreParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb'
64
+ autoload :FirewallRuleListResult, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/firewall_rule_list_result.rb'
65
+ autoload :AddStorageAccountParameters, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb'
66
+ autoload :DataLakeStoreAccountInformation, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_information.rb'
67
+ autoload :StorageAccountInformation, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/storage_account_information.rb'
68
+ autoload :ComputePolicy, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb'
54
69
  autoload :FirewallRule, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb'
55
- autoload :DataLakeAnalyticsAccountBasic, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb'
56
70
  autoload :DataLakeAnalyticsAccount, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb'
57
- autoload :TierType, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/tier_type.rb'
71
+ autoload :DataLakeAnalyticsAccountBasic, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb'
72
+ autoload :StorageContainer, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/storage_container.rb'
73
+ autoload :AADObjectType, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/aadobject_type.rb'
58
74
  autoload :FirewallState, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/firewall_state.rb'
59
75
  autoload :FirewallAllowAzureIpsState, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb'
60
- autoload :AADObjectType, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/aadobject_type.rb'
76
+ autoload :TierType, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/tier_type.rb'
61
77
  autoload :DataLakeAnalyticsAccountStatus, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb'
62
78
  autoload :DataLakeAnalyticsAccountState, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb'
79
+ autoload :OperationOrigin, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/operation_origin.rb'
80
+ autoload :SubscriptionState, '2016-11-01/generated/azure_mgmt_datalake_analytics/models/subscription_state.rb'
63
81
  end
64
82
  end
@@ -7,11 +7,11 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
7
7
  #
8
8
  # Creates an Azure Data Lake Analytics account management client.
9
9
  #
10
- class Account
10
+ class Accounts
11
11
  include MsRestAzure
12
12
 
13
13
  #
14
- # Creates and initializes a new instance of the Account class.
14
+ # Creates and initializes a new instance of the Accounts class.
15
15
  # @param client service class for accessing basic functionality.
16
16
  #
17
17
  def initialize(client)
@@ -22,11 +22,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
22
22
  attr_reader :client
23
23
 
24
24
  #
25
- # Gets the first page of Data Lake Analytics accounts, if any, within a
26
- # specific resource group. This includes a link to the next page, if any.
25
+ # Gets the first page of Data Lake Analytics accounts, if any, within the
26
+ # current subscription. This includes a link to the next page, if any.
27
27
  #
28
- # @param resource_group_name [String] The name of the Azure resource group that
29
- # contains the Data Lake Analytics account.
30
28
  # @param filter [String] OData filter. Optional.
31
29
  # @param top [Integer] The number of items to return. Optional.
32
30
  # @param skip [Integer] The number of items to skip over before returning
@@ -46,17 +44,15 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
46
44
  #
47
45
  # @return [Array<DataLakeAnalyticsAccountBasic>] operation results.
48
46
  #
49
- def list_by_resource_group(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
50
- first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, skip, select, orderby, count, custom_headers)
47
+ def list(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
48
+ first_page = list_as_lazy(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers)
51
49
  first_page.get_all_items
52
50
  end
53
51
 
54
52
  #
55
- # Gets the first page of Data Lake Analytics accounts, if any, within a
56
- # specific resource group. This includes a link to the next page, if any.
53
+ # Gets the first page of Data Lake Analytics accounts, if any, within the
54
+ # current subscription. This includes a link to the next page, if any.
57
55
  #
58
- # @param resource_group_name [String] The name of the Azure resource group that
59
- # contains the Data Lake Analytics account.
60
56
  # @param filter [String] OData filter. Optional.
61
57
  # @param top [Integer] The number of items to return. Optional.
62
58
  # @param skip [Integer] The number of items to skip over before returning
@@ -76,16 +72,14 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
76
72
  #
77
73
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
78
74
  #
79
- def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
80
- list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value!
75
+ def list_with_http_info(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
76
+ list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value!
81
77
  end
82
78
 
83
79
  #
84
- # Gets the first page of Data Lake Analytics accounts, if any, within a
85
- # specific resource group. This includes a link to the next page, if any.
80
+ # Gets the first page of Data Lake Analytics accounts, if any, within the
81
+ # current subscription. This includes a link to the next page, if any.
86
82
  #
87
- # @param resource_group_name [String] The name of the Azure resource group that
88
- # contains the Data Lake Analytics account.
89
83
  # @param filter [String] OData filter. Optional.
90
84
  # @param top [Integer] The number of items to return. Optional.
91
85
  # @param skip [Integer] The number of items to skip over before returning
@@ -105,26 +99,26 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
105
99
  #
106
100
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
107
101
  #
108
- def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
109
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
102
+ def list_async(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
103
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
110
104
  fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
111
105
  fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1
112
106
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
113
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
114
107
 
115
108
 
116
109
  request_headers = {}
110
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
117
111
 
118
112
  # Set Headers
119
113
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
120
114
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
121
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts'
115
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts'
122
116
 
123
117
  request_url = @base_url || @client.base_url
124
118
 
125
119
  options = {
126
120
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
127
- path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
121
+ path_params: {'subscriptionId' => @client.subscription_id},
128
122
  query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
129
123
  headers: request_headers.merge(custom_headers || {}),
130
124
  base_url: request_url
@@ -159,9 +153,10 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
159
153
  end
160
154
 
161
155
  #
162
- # Gets the first page of Data Lake Analytics accounts, if any, within the
163
- # current subscription. This includes a link to the next page, if any.
156
+ # Gets the first page of Data Lake Analytics accounts, if any, within a
157
+ # specific resource group. This includes a link to the next page, if any.
164
158
  #
159
+ # @param resource_group_name [String] The name of the Azure resource group.
165
160
  # @param filter [String] OData filter. Optional.
166
161
  # @param top [Integer] The number of items to return. Optional.
167
162
  # @param skip [Integer] The number of items to skip over before returning
@@ -181,15 +176,16 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
181
176
  #
182
177
  # @return [Array<DataLakeAnalyticsAccountBasic>] operation results.
183
178
  #
184
- def list(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
185
- first_page = list_as_lazy(filter, top, skip, select, orderby, count, custom_headers)
179
+ def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
180
+ first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers)
186
181
  first_page.get_all_items
187
182
  end
188
183
 
189
184
  #
190
- # Gets the first page of Data Lake Analytics accounts, if any, within the
191
- # current subscription. This includes a link to the next page, if any.
185
+ # Gets the first page of Data Lake Analytics accounts, if any, within a
186
+ # specific resource group. This includes a link to the next page, if any.
192
187
  #
188
+ # @param resource_group_name [String] The name of the Azure resource group.
193
189
  # @param filter [String] OData filter. Optional.
194
190
  # @param top [Integer] The number of items to return. Optional.
195
191
  # @param skip [Integer] The number of items to skip over before returning
@@ -209,14 +205,15 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
209
205
  #
210
206
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
211
207
  #
212
- def list_with_http_info(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
213
- list_async(filter, top, skip, select, orderby, count, custom_headers).value!
208
+ def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
209
+ list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value!
214
210
  end
215
211
 
216
212
  #
217
- # Gets the first page of Data Lake Analytics accounts, if any, within the
218
- # current subscription. This includes a link to the next page, if any.
213
+ # Gets the first page of Data Lake Analytics accounts, if any, within a
214
+ # specific resource group. This includes a link to the next page, if any.
219
215
  #
216
+ # @param resource_group_name [String] The name of the Azure resource group.
220
217
  # @param filter [String] OData filter. Optional.
221
218
  # @param top [Integer] The number of items to return. Optional.
222
219
  # @param skip [Integer] The number of items to skip over before returning
@@ -236,25 +233,27 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
236
233
  #
237
234
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
238
235
  #
239
- def list_async(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
236
+ def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
237
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
238
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
240
239
  fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
241
240
  fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1
242
241
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
243
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
244
242
 
245
243
 
246
244
  request_headers = {}
245
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
247
246
 
248
247
  # Set Headers
249
248
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
250
249
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
251
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts'
250
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts'
252
251
 
253
252
  request_url = @base_url || @client.base_url
254
253
 
255
254
  options = {
256
255
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
257
- path_params: {'subscriptionId' => @client.subscription_id},
256
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
258
257
  query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
259
258
  headers: request_headers.merge(custom_headers || {}),
260
259
  base_url: request_url
@@ -290,40 +289,36 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
290
289
 
291
290
  #
292
291
  # Creates the specified Data Lake Analytics account. This supplies the user
293
- # with computation services for Data Lake Analytics workloads
294
- #
295
- # @param resource_group_name [String] The name of the Azure resource group that
296
- # contains the Data Lake Analytics account.the account will be associated with.
297
- # @param account_name [String] The name of the Data Lake Analytics account to
298
- # create.
299
- # @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
300
- # create Data Lake Analytics account operation.
292
+ # with computation services for Data Lake Analytics workloads.
293
+ #
294
+ # @param resource_group_name [String] The name of the Azure resource group.
295
+ # @param account_name [String] The name of the Data Lake Analytics account.
296
+ # @param parameters [CreateDataLakeAnalyticsAccountParameters] Parameters
297
+ # supplied to create a new Data Lake Analytics account.
301
298
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
302
299
  # will be added to the HTTP request.
303
300
  #
304
301
  # @return [DataLakeAnalyticsAccount] operation results.
305
302
  #
306
- def create(resource_group_name, account_name, parameters, custom_headers = nil)
307
- response = create_async(resource_group_name, account_name, parameters, custom_headers).value!
303
+ def create(resource_group_name, account_name, parameters, custom_headers:nil)
304
+ response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
308
305
  response.body unless response.nil?
309
306
  end
310
307
 
311
308
  #
312
- # @param resource_group_name [String] The name of the Azure resource group that
313
- # contains the Data Lake Analytics account.the account will be associated with.
314
- # @param account_name [String] The name of the Data Lake Analytics account to
315
- # create.
316
- # @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
317
- # create Data Lake Analytics account operation.
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.
311
+ # @param parameters [CreateDataLakeAnalyticsAccountParameters] Parameters
312
+ # supplied to create a new Data Lake Analytics account.
318
313
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
319
314
  # will be added to the HTTP request.
320
315
  #
321
316
  # @return [Concurrent::Promise] promise which provides async access to http
322
317
  # response.
323
318
  #
324
- def create_async(resource_group_name, account_name, parameters, custom_headers = nil)
319
+ def create_async(resource_group_name, account_name, parameters, custom_headers:nil)
325
320
  # Send request
326
- promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers)
321
+ promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers)
327
322
 
328
323
  promise = promise.then do |response|
329
324
  # Defining deserialization method.
@@ -339,32 +334,120 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
339
334
  promise
340
335
  end
341
336
 
337
+ #
338
+ # Gets details of the specified Data Lake Analytics account.
339
+ #
340
+ # @param resource_group_name [String] The name of the Azure resource group.
341
+ # @param account_name [String] The name of the Data Lake Analytics account.
342
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
343
+ # will be added to the HTTP request.
344
+ #
345
+ # @return [DataLakeAnalyticsAccount] operation results.
346
+ #
347
+ def get(resource_group_name, account_name, custom_headers:nil)
348
+ response = get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
349
+ response.body unless response.nil?
350
+ end
351
+
352
+ #
353
+ # Gets details of the specified Data Lake Analytics account.
354
+ #
355
+ # @param resource_group_name [String] The name of the Azure resource group.
356
+ # @param account_name [String] The name of the Data Lake Analytics account.
357
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
358
+ # will be added to the HTTP request.
359
+ #
360
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
361
+ #
362
+ def get_with_http_info(resource_group_name, account_name, custom_headers:nil)
363
+ get_async(resource_group_name, account_name, custom_headers:custom_headers).value!
364
+ end
365
+
366
+ #
367
+ # Gets details of the specified Data Lake Analytics account.
368
+ #
369
+ # @param resource_group_name [String] The name of the Azure resource group.
370
+ # @param account_name [String] The name of the Data Lake Analytics account.
371
+ # @param [Hash{String => String}] A hash of custom headers that will be added
372
+ # to the HTTP request.
373
+ #
374
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
375
+ #
376
+ def get_async(resource_group_name, account_name, custom_headers:nil)
377
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
378
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
379
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
380
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
381
+
382
+
383
+ request_headers = {}
384
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
385
+
386
+ # Set Headers
387
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
388
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
389
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
390
+
391
+ request_url = @base_url || @client.base_url
392
+
393
+ options = {
394
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
395
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
396
+ query_params: {'api-version' => @client.api_version},
397
+ headers: request_headers.merge(custom_headers || {}),
398
+ base_url: request_url
399
+ }
400
+ promise = @client.make_request_async(:get, path_template, options)
401
+
402
+ promise = promise.then do |result|
403
+ http_response = result.response
404
+ status_code = http_response.status
405
+ response_content = http_response.body
406
+ unless status_code == 200
407
+ error_model = JSON.load(response_content)
408
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
409
+ end
410
+
411
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
412
+ # Deserialize Response
413
+ if status_code == 200
414
+ begin
415
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
416
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.mapper()
417
+ result.body = @client.deserialize(result_mapper, parsed_response)
418
+ rescue Exception => e
419
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
420
+ end
421
+ end
422
+
423
+ result
424
+ end
425
+
426
+ promise.execute
427
+ end
428
+
342
429
  #
343
430
  # Updates the Data Lake Analytics account object specified by the accountName
344
431
  # with the contents of the account object.
345
432
  #
346
- # @param resource_group_name [String] The name of the Azure resource group that
347
- # contains the Data Lake Analytics account.
348
- # @param account_name [String] The name of the Data Lake Analytics account to
349
- # update.
350
- # @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
433
+ # @param resource_group_name [String] The name of the Azure resource group.
434
+ # @param account_name [String] The name of the Data Lake Analytics account.
435
+ # @param parameters [UpdateDataLakeAnalyticsAccountParameters] Parameters
351
436
  # supplied to the update Data Lake Analytics account operation.
352
437
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
353
438
  # will be added to the HTTP request.
354
439
  #
355
440
  # @return [DataLakeAnalyticsAccount] operation results.
356
441
  #
357
- def update(resource_group_name, account_name, parameters = nil, custom_headers = nil)
358
- response = update_async(resource_group_name, account_name, parameters, custom_headers).value!
442
+ def update(resource_group_name, account_name, parameters:nil, custom_headers:nil)
443
+ response = update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value!
359
444
  response.body unless response.nil?
360
445
  end
361
446
 
362
447
  #
363
- # @param resource_group_name [String] The name of the Azure resource group that
364
- # contains the Data Lake Analytics account.
365
- # @param account_name [String] The name of the Data Lake Analytics account to
366
- # update.
367
- # @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
448
+ # @param resource_group_name [String] The name of the Azure resource group.
449
+ # @param account_name [String] The name of the Data Lake Analytics account.
450
+ # @param parameters [UpdateDataLakeAnalyticsAccountParameters] Parameters
368
451
  # supplied to the update Data Lake Analytics account operation.
369
452
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
370
453
  # will be added to the HTTP request.
@@ -372,9 +455,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
372
455
  # @return [Concurrent::Promise] promise which provides async access to http
373
456
  # response.
374
457
  #
375
- def update_async(resource_group_name, account_name, parameters = nil, custom_headers = nil)
458
+ def update_async(resource_group_name, account_name, parameters:nil, custom_headers:nil)
376
459
  # Send request
377
- promise = begin_update_async(resource_group_name, account_name, parameters, custom_headers)
460
+ promise = begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers)
378
461
 
379
462
  promise = promise.then do |response|
380
463
  # Defining deserialization method.
@@ -394,32 +477,28 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
394
477
  # Begins the delete process for the Data Lake Analytics account object
395
478
  # specified by the account name.
396
479
  #
397
- # @param resource_group_name [String] The name of the Azure resource group that
398
- # contains the Data Lake Analytics account.
399
- # @param account_name [String] The name of the Data Lake Analytics account to
400
- # delete
480
+ # @param resource_group_name [String] The name of the Azure resource group.
481
+ # @param account_name [String] The name of the Data Lake Analytics account.
401
482
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
402
483
  # will be added to the HTTP request.
403
484
  #
404
- def delete(resource_group_name, account_name, custom_headers = nil)
405
- response = delete_async(resource_group_name, account_name, custom_headers).value!
485
+ def delete(resource_group_name, account_name, custom_headers:nil)
486
+ response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
406
487
  nil
407
488
  end
408
489
 
409
490
  #
410
- # @param resource_group_name [String] The name of the Azure resource group that
411
- # contains the Data Lake Analytics account.
412
- # @param account_name [String] The name of the Data Lake Analytics account to
413
- # delete
491
+ # @param resource_group_name [String] The name of the Azure resource group.
492
+ # @param account_name [String] The name of the Data Lake Analytics account.
414
493
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
415
494
  # will be added to the HTTP request.
416
495
  #
417
496
  # @return [Concurrent::Promise] promise which provides async access to http
418
497
  # response.
419
498
  #
420
- def delete_async(resource_group_name, account_name, custom_headers = nil)
499
+ def delete_async(resource_group_name, account_name, custom_headers:nil)
421
500
  # Send request
422
- promise = begin_delete_async(resource_group_name, account_name, custom_headers)
501
+ promise = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers)
423
502
 
424
503
  promise = promise.then do |response|
425
504
  # Defining deserialization method.
@@ -434,74 +513,79 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
434
513
  end
435
514
 
436
515
  #
437
- # Gets details of the specified Data Lake Analytics account.
516
+ # Checks whether the specified account name is available or taken.
438
517
  #
439
- # @param resource_group_name [String] The name of the Azure resource group that
440
- # contains the Data Lake Analytics account.
441
- # @param account_name [String] The name of the Data Lake Analytics account to
442
- # retrieve.
518
+ # @param location [String] The resource location without whitespace.
519
+ # @param parameters [CheckNameAvailabilityParameters] Parameters supplied to
520
+ # check the Data Lake Analytics account name availability.
443
521
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
444
522
  # will be added to the HTTP request.
445
523
  #
446
- # @return [DataLakeAnalyticsAccount] operation results.
524
+ # @return [NameAvailabilityInformation] operation results.
447
525
  #
448
- def get(resource_group_name, account_name, custom_headers = nil)
449
- response = get_async(resource_group_name, account_name, custom_headers).value!
526
+ def check_name_availability(location, parameters, custom_headers:nil)
527
+ response = check_name_availability_async(location, parameters, custom_headers:custom_headers).value!
450
528
  response.body unless response.nil?
451
529
  end
452
530
 
453
531
  #
454
- # Gets details of the specified Data Lake Analytics account.
532
+ # Checks whether the specified account name is available or taken.
455
533
  #
456
- # @param resource_group_name [String] The name of the Azure resource group that
457
- # contains the Data Lake Analytics account.
458
- # @param account_name [String] The name of the Data Lake Analytics account to
459
- # retrieve.
534
+ # @param location [String] The resource location without whitespace.
535
+ # @param parameters [CheckNameAvailabilityParameters] Parameters supplied to
536
+ # check the Data Lake Analytics account name availability.
460
537
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
461
538
  # will be added to the HTTP request.
462
539
  #
463
540
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
464
541
  #
465
- def get_with_http_info(resource_group_name, account_name, custom_headers = nil)
466
- get_async(resource_group_name, account_name, custom_headers).value!
542
+ def check_name_availability_with_http_info(location, parameters, custom_headers:nil)
543
+ check_name_availability_async(location, parameters, custom_headers:custom_headers).value!
467
544
  end
468
545
 
469
546
  #
470
- # Gets details of the specified Data Lake Analytics account.
547
+ # Checks whether the specified account name is available or taken.
471
548
  #
472
- # @param resource_group_name [String] The name of the Azure resource group that
473
- # contains the Data Lake Analytics account.
474
- # @param account_name [String] The name of the Data Lake Analytics account to
475
- # retrieve.
549
+ # @param location [String] The resource location without whitespace.
550
+ # @param parameters [CheckNameAvailabilityParameters] Parameters supplied to
551
+ # check the Data Lake Analytics account name availability.
476
552
  # @param [Hash{String => String}] A hash of custom headers that will be added
477
553
  # to the HTTP request.
478
554
  #
479
555
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
480
556
  #
481
- def get_async(resource_group_name, account_name, custom_headers = nil)
482
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
483
- fail ArgumentError, 'account_name is nil' if account_name.nil?
484
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
557
+ def check_name_availability_async(location, parameters, custom_headers:nil)
485
558
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
559
+ fail ArgumentError, 'location is nil' if location.nil?
560
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
561
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
486
562
 
487
563
 
488
564
  request_headers = {}
565
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
489
566
 
490
567
  # Set Headers
491
568
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
492
569
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
493
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
570
+
571
+ # Serialize Request
572
+ request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CheckNameAvailabilityParameters.mapper()
573
+ request_content = @client.serialize(request_mapper, parameters)
574
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
575
+
576
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/checkNameAvailability'
494
577
 
495
578
  request_url = @base_url || @client.base_url
496
579
 
497
580
  options = {
498
581
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
499
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
582
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
500
583
  query_params: {'api-version' => @client.api_version},
584
+ body: request_content,
501
585
  headers: request_headers.merge(custom_headers || {}),
502
586
  base_url: request_url
503
587
  }
504
- promise = @client.make_request_async(:get, path_template, options)
588
+ promise = @client.make_request_async(:post, path_template, options)
505
589
 
506
590
  promise = promise.then do |result|
507
591
  http_response = result.response
@@ -517,7 +601,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
517
601
  if status_code == 200
518
602
  begin
519
603
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
520
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.mapper()
604
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::NameAvailabilityInformation.mapper()
521
605
  result.body = @client.deserialize(result_mapper, parsed_response)
522
606
  rescue Exception => e
523
607
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -532,76 +616,69 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
532
616
 
533
617
  #
534
618
  # Creates the specified Data Lake Analytics account. This supplies the user
535
- # with computation services for Data Lake Analytics workloads
536
- #
537
- # @param resource_group_name [String] The name of the Azure resource group that
538
- # contains the Data Lake Analytics account.the account will be associated with.
539
- # @param account_name [String] The name of the Data Lake Analytics account to
540
- # create.
541
- # @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
542
- # create Data Lake Analytics account operation.
619
+ # with computation services for Data Lake Analytics workloads.
620
+ #
621
+ # @param resource_group_name [String] The name of the Azure resource group.
622
+ # @param account_name [String] The name of the Data Lake Analytics account.
623
+ # @param parameters [CreateDataLakeAnalyticsAccountParameters] Parameters
624
+ # supplied to create a new Data Lake Analytics account.
543
625
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
544
626
  # will be added to the HTTP request.
545
627
  #
546
628
  # @return [DataLakeAnalyticsAccount] operation results.
547
629
  #
548
- def begin_create(resource_group_name, account_name, parameters, custom_headers = nil)
549
- response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
630
+ def begin_create(resource_group_name, account_name, parameters, custom_headers:nil)
631
+ response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
550
632
  response.body unless response.nil?
551
633
  end
552
634
 
553
635
  #
554
636
  # Creates the specified Data Lake Analytics account. This supplies the user
555
- # with computation services for Data Lake Analytics workloads
556
- #
557
- # @param resource_group_name [String] The name of the Azure resource group that
558
- # contains the Data Lake Analytics account.the account will be associated with.
559
- # @param account_name [String] The name of the Data Lake Analytics account to
560
- # create.
561
- # @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
562
- # create Data Lake Analytics account operation.
637
+ # with computation services for Data Lake Analytics workloads.
638
+ #
639
+ # @param resource_group_name [String] The name of the Azure resource group.
640
+ # @param account_name [String] The name of the Data Lake Analytics account.
641
+ # @param parameters [CreateDataLakeAnalyticsAccountParameters] Parameters
642
+ # supplied to create a new Data Lake Analytics account.
563
643
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
564
644
  # will be added to the HTTP request.
565
645
  #
566
646
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
567
647
  #
568
- def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
569
- begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
648
+ def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
649
+ begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
570
650
  end
571
651
 
572
652
  #
573
653
  # Creates the specified Data Lake Analytics account. This supplies the user
574
- # with computation services for Data Lake Analytics workloads
575
- #
576
- # @param resource_group_name [String] The name of the Azure resource group that
577
- # contains the Data Lake Analytics account.the account will be associated with.
578
- # @param account_name [String] The name of the Data Lake Analytics account to
579
- # create.
580
- # @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
581
- # create Data Lake Analytics account operation.
654
+ # with computation services for Data Lake Analytics workloads.
655
+ #
656
+ # @param resource_group_name [String] The name of the Azure resource group.
657
+ # @param account_name [String] The name of the Data Lake Analytics account.
658
+ # @param parameters [CreateDataLakeAnalyticsAccountParameters] Parameters
659
+ # supplied to create a new Data Lake Analytics account.
582
660
  # @param [Hash{String => String}] A hash of custom headers that will be added
583
661
  # to the HTTP request.
584
662
  #
585
663
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
586
664
  #
587
- def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil)
665
+ def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil)
666
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
588
667
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
589
668
  fail ArgumentError, 'account_name is nil' if account_name.nil?
590
669
  fail ArgumentError, 'parameters is nil' if parameters.nil?
591
670
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
592
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
593
671
 
594
672
 
595
673
  request_headers = {}
674
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
596
675
 
597
676
  # Set Headers
598
677
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
599
678
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
600
679
 
601
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
602
-
603
680
  # Serialize Request
604
- request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.mapper()
681
+ request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateDataLakeAnalyticsAccountParameters.mapper()
605
682
  request_content = @client.serialize(request_mapper, parameters)
606
683
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
607
684
 
@@ -611,7 +688,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
611
688
 
612
689
  options = {
613
690
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
614
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
691
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
615
692
  query_params: {'api-version' => @client.api_version},
616
693
  body: request_content,
617
694
  headers: request_headers.merge(custom_headers || {}),
@@ -660,19 +737,17 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
660
737
  # Updates the Data Lake Analytics account object specified by the accountName
661
738
  # with the contents of the account object.
662
739
  #
663
- # @param resource_group_name [String] The name of the Azure resource group that
664
- # contains the Data Lake Analytics account.
665
- # @param account_name [String] The name of the Data Lake Analytics account to
666
- # update.
667
- # @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
740
+ # @param resource_group_name [String] The name of the Azure resource group.
741
+ # @param account_name [String] The name of the Data Lake Analytics account.
742
+ # @param parameters [UpdateDataLakeAnalyticsAccountParameters] Parameters
668
743
  # supplied to the update Data Lake Analytics account operation.
669
744
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
670
745
  # will be added to the HTTP request.
671
746
  #
672
747
  # @return [DataLakeAnalyticsAccount] operation results.
673
748
  #
674
- def begin_update(resource_group_name, account_name, parameters = nil, custom_headers = nil)
675
- response = begin_update_async(resource_group_name, account_name, parameters, custom_headers).value!
749
+ def begin_update(resource_group_name, account_name, parameters:nil, custom_headers:nil)
750
+ response = begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value!
676
751
  response.body unless response.nil?
677
752
  end
678
753
 
@@ -680,53 +755,48 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
680
755
  # Updates the Data Lake Analytics account object specified by the accountName
681
756
  # with the contents of the account object.
682
757
  #
683
- # @param resource_group_name [String] The name of the Azure resource group that
684
- # contains the Data Lake Analytics account.
685
- # @param account_name [String] The name of the Data Lake Analytics account to
686
- # update.
687
- # @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
758
+ # @param resource_group_name [String] The name of the Azure resource group.
759
+ # @param account_name [String] The name of the Data Lake Analytics account.
760
+ # @param parameters [UpdateDataLakeAnalyticsAccountParameters] Parameters
688
761
  # supplied to the update Data Lake Analytics account operation.
689
762
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
690
763
  # will be added to the HTTP request.
691
764
  #
692
765
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
693
766
  #
694
- def begin_update_with_http_info(resource_group_name, account_name, parameters = nil, custom_headers = nil)
695
- begin_update_async(resource_group_name, account_name, parameters, custom_headers).value!
767
+ def begin_update_with_http_info(resource_group_name, account_name, parameters:nil, custom_headers:nil)
768
+ begin_update_async(resource_group_name, account_name, parameters:parameters, custom_headers:custom_headers).value!
696
769
  end
697
770
 
698
771
  #
699
772
  # Updates the Data Lake Analytics account object specified by the accountName
700
773
  # with the contents of the account object.
701
774
  #
702
- # @param resource_group_name [String] The name of the Azure resource group that
703
- # contains the Data Lake Analytics account.
704
- # @param account_name [String] The name of the Data Lake Analytics account to
705
- # update.
706
- # @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
775
+ # @param resource_group_name [String] The name of the Azure resource group.
776
+ # @param account_name [String] The name of the Data Lake Analytics account.
777
+ # @param parameters [UpdateDataLakeAnalyticsAccountParameters] Parameters
707
778
  # supplied to the update Data Lake Analytics account operation.
708
779
  # @param [Hash{String => String}] A hash of custom headers that will be added
709
780
  # to the HTTP request.
710
781
  #
711
782
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
712
783
  #
713
- def begin_update_async(resource_group_name, account_name, parameters = nil, custom_headers = nil)
784
+ def begin_update_async(resource_group_name, account_name, parameters:nil, custom_headers:nil)
785
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
714
786
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
715
787
  fail ArgumentError, 'account_name is nil' if account_name.nil?
716
788
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
717
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
718
789
 
719
790
 
720
791
  request_headers = {}
792
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
721
793
 
722
794
  # Set Headers
723
795
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
724
796
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
725
797
 
726
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
727
-
728
798
  # Serialize Request
729
- request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountUpdateParameters.mapper()
799
+ request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateDataLakeAnalyticsAccountParameters.mapper()
730
800
  request_content = @client.serialize(request_mapper, parameters)
731
801
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
732
802
 
@@ -736,7 +806,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
736
806
 
737
807
  options = {
738
808
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
739
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
809
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
740
810
  query_params: {'api-version' => @client.api_version},
741
811
  body: request_content,
742
812
  headers: request_headers.merge(custom_headers || {}),
@@ -748,7 +818,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
748
818
  http_response = result.response
749
819
  status_code = http_response.status
750
820
  response_content = http_response.body
751
- unless status_code == 200 || status_code == 201
821
+ unless status_code == 200 || status_code == 201 || status_code == 202
752
822
  error_model = JSON.load(response_content)
753
823
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
754
824
  end
@@ -774,6 +844,16 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
774
844
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
775
845
  end
776
846
  end
847
+ # Deserialize Response
848
+ if status_code == 202
849
+ begin
850
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
851
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccount.mapper()
852
+ result.body = @client.deserialize(result_mapper, parsed_response)
853
+ rescue Exception => e
854
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
855
+ end
856
+ end
777
857
 
778
858
  result
779
859
  end
@@ -785,16 +865,14 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
785
865
  # Begins the delete process for the Data Lake Analytics account object
786
866
  # specified by the account name.
787
867
  #
788
- # @param resource_group_name [String] The name of the Azure resource group that
789
- # contains the Data Lake Analytics account.
790
- # @param account_name [String] The name of the Data Lake Analytics account to
791
- # delete
868
+ # @param resource_group_name [String] The name of the Azure resource group.
869
+ # @param account_name [String] The name of the Data Lake Analytics account.
792
870
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
793
871
  # will be added to the HTTP request.
794
872
  #
795
873
  #
796
- def begin_delete(resource_group_name, account_name, custom_headers = nil)
797
- response = begin_delete_async(resource_group_name, account_name, custom_headers).value!
874
+ def begin_delete(resource_group_name, account_name, custom_headers:nil)
875
+ response = begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
798
876
  nil
799
877
  end
800
878
 
@@ -802,40 +880,37 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
802
880
  # Begins the delete process for the Data Lake Analytics account object
803
881
  # specified by the account name.
804
882
  #
805
- # @param resource_group_name [String] The name of the Azure resource group that
806
- # contains the Data Lake Analytics account.
807
- # @param account_name [String] The name of the Data Lake Analytics account to
808
- # delete
883
+ # @param resource_group_name [String] The name of the Azure resource group.
884
+ # @param account_name [String] The name of the Data Lake Analytics account.
809
885
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
810
886
  # will be added to the HTTP request.
811
887
  #
812
888
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
813
889
  #
814
- def begin_delete_with_http_info(resource_group_name, account_name, custom_headers = nil)
815
- begin_delete_async(resource_group_name, account_name, custom_headers).value!
890
+ def begin_delete_with_http_info(resource_group_name, account_name, custom_headers:nil)
891
+ begin_delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
816
892
  end
817
893
 
818
894
  #
819
895
  # Begins the delete process for the Data Lake Analytics account object
820
896
  # specified by the account name.
821
897
  #
822
- # @param resource_group_name [String] The name of the Azure resource group that
823
- # contains the Data Lake Analytics account.
824
- # @param account_name [String] The name of the Data Lake Analytics account to
825
- # delete
898
+ # @param resource_group_name [String] The name of the Azure resource group.
899
+ # @param account_name [String] The name of the Data Lake Analytics account.
826
900
  # @param [Hash{String => String}] A hash of custom headers that will be added
827
901
  # to the HTTP request.
828
902
  #
829
903
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
830
904
  #
831
- def begin_delete_async(resource_group_name, account_name, custom_headers = nil)
905
+ def begin_delete_async(resource_group_name, account_name, custom_headers:nil)
906
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
832
907
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
833
908
  fail ArgumentError, 'account_name is nil' if account_name.nil?
834
909
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
835
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
836
910
 
837
911
 
838
912
  request_headers = {}
913
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
839
914
 
840
915
  # Set Headers
841
916
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -846,7 +921,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
846
921
 
847
922
  options = {
848
923
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
849
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
924
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name},
850
925
  query_params: {'api-version' => @client.api_version},
851
926
  headers: request_headers.merge(custom_headers || {}),
852
927
  base_url: request_url
@@ -871,8 +946,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
871
946
  end
872
947
 
873
948
  #
874
- # Gets the first page of Data Lake Analytics accounts, if any, within a
875
- # specific resource group. This includes a link to the next page, if any.
949
+ # Gets the first page of Data Lake Analytics accounts, if any, within the
950
+ # current subscription. This includes a link to the next page, if any.
876
951
  #
877
952
  # @param next_page_link [String] The NextLink from the previous successful call
878
953
  # to List operation.
@@ -881,14 +956,14 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
881
956
  #
882
957
  # @return [DataLakeAnalyticsAccountListResult] operation results.
883
958
  #
884
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
885
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
959
+ def list_next(next_page_link, custom_headers:nil)
960
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
886
961
  response.body unless response.nil?
887
962
  end
888
963
 
889
964
  #
890
- # Gets the first page of Data Lake Analytics accounts, if any, within a
891
- # specific resource group. This includes a link to the next page, if any.
965
+ # Gets the first page of Data Lake Analytics accounts, if any, within the
966
+ # current subscription. This includes a link to the next page, if any.
892
967
  #
893
968
  # @param next_page_link [String] The NextLink from the previous successful call
894
969
  # to List operation.
@@ -897,13 +972,13 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
897
972
  #
898
973
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
899
974
  #
900
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
901
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
975
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
976
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
902
977
  end
903
978
 
904
979
  #
905
- # Gets the first page of Data Lake Analytics accounts, if any, within a
906
- # specific resource group. This includes a link to the next page, if any.
980
+ # Gets the first page of Data Lake Analytics accounts, if any, within the
981
+ # current subscription. This includes a link to the next page, if any.
907
982
  #
908
983
  # @param next_page_link [String] The NextLink from the previous successful call
909
984
  # to List operation.
@@ -912,11 +987,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
912
987
  #
913
988
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
914
989
  #
915
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
990
+ def list_next_async(next_page_link, custom_headers:nil)
916
991
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
917
992
 
918
993
 
919
994
  request_headers = {}
995
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
920
996
 
921
997
  # Set Headers
922
998
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -961,8 +1037,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
961
1037
  end
962
1038
 
963
1039
  #
964
- # Gets the first page of Data Lake Analytics accounts, if any, within the
965
- # current subscription. This includes a link to the next page, if any.
1040
+ # Gets the first page of Data Lake Analytics accounts, if any, within a
1041
+ # specific resource group. This includes a link to the next page, if any.
966
1042
  #
967
1043
  # @param next_page_link [String] The NextLink from the previous successful call
968
1044
  # to List operation.
@@ -971,14 +1047,14 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
971
1047
  #
972
1048
  # @return [DataLakeAnalyticsAccountListResult] operation results.
973
1049
  #
974
- def list_next(next_page_link, custom_headers = nil)
975
- response = list_next_async(next_page_link, custom_headers).value!
1050
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1051
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
976
1052
  response.body unless response.nil?
977
1053
  end
978
1054
 
979
1055
  #
980
- # Gets the first page of Data Lake Analytics accounts, if any, within the
981
- # current subscription. This includes a link to the next page, if any.
1056
+ # Gets the first page of Data Lake Analytics accounts, if any, within a
1057
+ # specific resource group. This includes a link to the next page, if any.
982
1058
  #
983
1059
  # @param next_page_link [String] The NextLink from the previous successful call
984
1060
  # to List operation.
@@ -987,13 +1063,13 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
987
1063
  #
988
1064
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
989
1065
  #
990
- def list_next_with_http_info(next_page_link, custom_headers = nil)
991
- list_next_async(next_page_link, custom_headers).value!
1066
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1067
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
992
1068
  end
993
1069
 
994
1070
  #
995
- # Gets the first page of Data Lake Analytics accounts, if any, within the
996
- # current subscription. This includes a link to the next page, if any.
1071
+ # Gets the first page of Data Lake Analytics accounts, if any, within a
1072
+ # specific resource group. This includes a link to the next page, if any.
997
1073
  #
998
1074
  # @param next_page_link [String] The NextLink from the previous successful call
999
1075
  # to List operation.
@@ -1002,11 +1078,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1002
1078
  #
1003
1079
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1004
1080
  #
1005
- def list_next_async(next_page_link, custom_headers = nil)
1081
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1006
1082
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1007
1083
 
1008
1084
 
1009
1085
  request_headers = {}
1086
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1010
1087
 
1011
1088
  # Set Headers
1012
1089
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1051,11 +1128,9 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1051
1128
  end
1052
1129
 
1053
1130
  #
1054
- # Gets the first page of Data Lake Analytics accounts, if any, within a
1055
- # specific resource group. This includes a link to the next page, if any.
1131
+ # Gets the first page of Data Lake Analytics accounts, if any, within the
1132
+ # current subscription. This includes a link to the next page, if any.
1056
1133
  #
1057
- # @param resource_group_name [String] The name of the Azure resource group that
1058
- # contains the Data Lake Analytics account.
1059
1134
  # @param filter [String] OData filter. Optional.
1060
1135
  # @param top [Integer] The number of items to return. Optional.
1061
1136
  # @param skip [Integer] The number of items to skip over before returning
@@ -1076,21 +1151,22 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1076
1151
  # @return [DataLakeAnalyticsAccountListResult] which provide lazy access to
1077
1152
  # pages of the response.
1078
1153
  #
1079
- def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
1080
- response = list_by_resource_group_async(resource_group_name, filter, top, skip, select, orderby, count, custom_headers).value!
1154
+ def list_as_lazy(filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
1155
+ response = list_async(filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value!
1081
1156
  unless response.nil?
1082
1157
  page = response.body
1083
1158
  page.next_method = Proc.new do |next_page_link|
1084
- list_by_resource_group_next_async(next_page_link, custom_headers)
1159
+ list_next_async(next_page_link, custom_headers:custom_headers)
1085
1160
  end
1086
1161
  page
1087
1162
  end
1088
1163
  end
1089
1164
 
1090
1165
  #
1091
- # Gets the first page of Data Lake Analytics accounts, if any, within the
1092
- # current subscription. This includes a link to the next page, if any.
1166
+ # Gets the first page of Data Lake Analytics accounts, if any, within a
1167
+ # specific resource group. This includes a link to the next page, if any.
1093
1168
  #
1169
+ # @param resource_group_name [String] The name of the Azure resource group.
1094
1170
  # @param filter [String] OData filter. Optional.
1095
1171
  # @param top [Integer] The number of items to return. Optional.
1096
1172
  # @param skip [Integer] The number of items to skip over before returning
@@ -1111,12 +1187,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1111
1187
  # @return [DataLakeAnalyticsAccountListResult] which provide lazy access to
1112
1188
  # pages of the response.
1113
1189
  #
1114
- def list_as_lazy(filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
1115
- response = list_async(filter, top, skip, select, orderby, count, custom_headers).value!
1190
+ def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil)
1191
+ response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers).value!
1116
1192
  unless response.nil?
1117
1193
  page = response.body
1118
1194
  page.next_method = Proc.new do |next_page_link|
1119
- list_next_async(next_page_link, custom_headers)
1195
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1120
1196
  end
1121
1197
  page
1122
1198
  end