azure_mgmt_datalake_analytics 0.15.2 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,59 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # The parameters used to update a Data Lake Store account while updating a
10
+ # Data Lake Analytics account.
11
+ #
12
+ class UpdateDataLakeStoreWithAccountParameters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The unique name of the Data Lake Store account to
17
+ # update.
18
+ attr_accessor :name
19
+
20
+ # @return [String] The optional suffix for the Data Lake Store account.
21
+ attr_accessor :suffix
22
+
23
+
24
+ #
25
+ # Mapper for UpdateDataLakeStoreWithAccountParameters class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'UpdateDataLakeStoreWithAccountParameters',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'UpdateDataLakeStoreWithAccountParameters',
36
+ model_properties: {
37
+ name: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ suffix: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'properties.suffix',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -6,17 +6,17 @@
6
6
  module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
7
7
  module Models
8
8
  #
9
- # Data Lake Analytics firewall rule update parameters
9
+ # The parameters used to update a firewall rule.
10
10
  #
11
11
  class UpdateFirewallRuleParameters
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] the start IP address for the firewall rule. This can
15
+ # @return [String] The start IP address for the firewall rule. This can
16
16
  # be either ipv4 or ipv6. Start and End should be in the same protocol.
17
17
  attr_accessor :start_ip_address
18
18
 
19
- # @return [String] the end IP address for the firewall rule. This can be
19
+ # @return [String] The end IP address for the firewall rule. This can be
20
20
  # either ipv4 or ipv6. Start and End should be in the same protocol.
21
21
  attr_accessor :end_ip_address
22
22
 
@@ -0,0 +1,71 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # The parameters used to update a firewall rule while updating a Data Lake
10
+ # Analytics account.
11
+ #
12
+ class UpdateFirewallRuleWithAccountParameters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The unique name of the firewall rule to update.
17
+ attr_accessor :name
18
+
19
+ # @return [String] The start IP address for the firewall rule. This can
20
+ # be either ipv4 or ipv6. Start and End should be in the same protocol.
21
+ attr_accessor :start_ip_address
22
+
23
+ # @return [String] The end IP address for the firewall rule. This can be
24
+ # either ipv4 or ipv6. Start and End should be in the same protocol.
25
+ attr_accessor :end_ip_address
26
+
27
+
28
+ #
29
+ # Mapper for UpdateFirewallRuleWithAccountParameters class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'UpdateFirewallRuleWithAccountParameters',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'UpdateFirewallRuleWithAccountParameters',
40
+ model_properties: {
41
+ name: {
42
+ client_side_validation: true,
43
+ required: true,
44
+ serialized_name: 'name',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ start_ip_address: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'properties.startIpAddress',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ end_ip_address: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'properties.endIpAddress',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -6,18 +6,17 @@
6
6
  module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
7
7
  module Models
8
8
  #
9
- # Storage account parameters for a storage account being updated in a Data
10
- # Lake Analytics account.
9
+ # The parameters used to update an Azure Storage account.
11
10
  #
12
11
  class UpdateStorageAccountParameters
13
12
 
14
13
  include MsRestAzure
15
14
 
16
- # @return [String] the updated access key associated with this Azure
15
+ # @return [String] The updated access key associated with this Azure
17
16
  # Storage account that will be used to connect to it.
18
17
  attr_accessor :access_key
19
18
 
20
- # @return [String] the optional suffix for the storage account.
19
+ # @return [String] The optional suffix for the storage account.
21
20
  attr_accessor :suffix
22
21
 
23
22
 
@@ -0,0 +1,72 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
7
+ module Models
8
+ #
9
+ # The parameters used to update an Azure Storage account while updating a
10
+ # Data Lake Analytics account.
11
+ #
12
+ class UpdateStorageAccountWithAccountParameters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The unique name of the Azure Storage account to
17
+ # update.
18
+ attr_accessor :name
19
+
20
+ # @return [String] The updated access key associated with this Azure
21
+ # Storage account that will be used to connect to it.
22
+ attr_accessor :access_key
23
+
24
+ # @return [String] The optional suffix for the storage account.
25
+ attr_accessor :suffix
26
+
27
+
28
+ #
29
+ # Mapper for UpdateStorageAccountWithAccountParameters class as Ruby
30
+ # Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'UpdateStorageAccountWithAccountParameters',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'UpdateStorageAccountWithAccountParameters',
41
+ model_properties: {
42
+ name: {
43
+ client_side_validation: true,
44
+ required: true,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ access_key: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'properties.accessKey',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ suffix: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'properties.suffix',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,107 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
7
+ #
8
+ # Creates an Azure Data Lake Analytics account management client.
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [DataLakeAnalyticsAccountManagementClient] reference to the DataLakeAnalyticsAccountManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the available Data Lake Analytics REST API operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [OperationListResult] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ response = list_async(custom_headers:custom_headers).value!
34
+ response.body unless response.nil?
35
+ end
36
+
37
+ #
38
+ # Lists all of the available Data Lake Analytics REST API operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Lists all of the available Data Lake Analytics REST API operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.DataLakeAnalytics/operations'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ # Deserialize Response
90
+ if status_code == 200
91
+ begin
92
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
93
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::OperationListResult.mapper()
94
+ result.body = @client.deserialize(result_mapper, parsed_response)
95
+ rescue Exception => e
96
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
97
+ end
98
+ end
99
+
100
+ result
101
+ end
102
+
103
+ promise.execute
104
+ end
105
+
106
+ end
107
+ end
@@ -22,99 +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 add an Azure Storage
26
- # account.
25
+ # Gets the first page of Azure Storage accounts, if any, linked to the
26
+ # specified Data Lake Analytics account. The response includes a link to the
27
+ # next page, if 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 Azure Storage account.
32
- # @param storage_account_name [String] The name of the Azure Storage account to
33
- # add
34
- # @param parameters [AddStorageAccountParameters] The parameters containing the
35
- # access key and optional suffix for the Azure Storage 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] The 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<StorageAccountInformation>] operation results.
39
49
  #
40
- def add(resource_group_name, account_name, storage_account_name, parameters, custom_headers = nil)
41
- response = add_async(resource_group_name, account_name, storage_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 add an Azure Storage
47
- # account.
56
+ # Gets the first page of Azure Storage accounts, if any, linked to the
57
+ # specified Data Lake Analytics account. The response includes a link to the
58
+ # next page, if 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 Azure Storage account.
53
- # @param storage_account_name [String] The name of the Azure Storage account to
54
- # add
55
- # @param parameters [AddStorageAccountParameters] The parameters containing the
56
- # access key and optional suffix for the Azure Storage 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] The 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, storage_account_name, parameters, custom_headers = nil)
63
- add_async(resource_group_name, account_name, storage_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 add an Azure Storage
68
- # account.
86
+ # Gets the first page of Azure Storage accounts, if any, linked to the
87
+ # specified Data Lake Analytics account. The response includes a link to the
88
+ # next page, if 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 Azure Storage account.
74
- # @param storage_account_name [String] The name of the Azure Storage account to
75
- # add
76
- # @param parameters [AddStorageAccountParameters] The parameters containing the
77
- # access key and optional suffix for the Azure Storage 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] The 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, storage_account_name, parameters, 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, 'storage_account_name is nil' if storage_account_name.nil?
87
- fail ArgumentError, 'parameters is nil' if parameters.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
88
117
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
89
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
90
118
 
91
119
 
92
120
  request_headers = {}
121
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
93
122
 
94
123
  # Set Headers
95
124
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
96
125
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
97
-
98
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
99
-
100
- # Serialize Request
101
- request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters.mapper()
102
- request_content = @client.serialize(request_mapper, parameters)
103
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
104
-
105
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'
126
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts'
106
127
 
107
128
  request_url = @base_url || @client.base_url
108
129
 
109
130
  options = {
110
131
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
111
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'subscriptionId' => @client.subscription_id},
112
- query_params: {'api-version' => @client.api_version},
113
- 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},
114
134
  headers: request_headers.merge(custom_headers || {}),
115
135
  base_url: request_url
116
136
  }
117
- promise = @client.make_request_async(:put, path_template, options)
137
+ promise = @client.make_request_async(:get, path_template, options)
118
138
 
119
139
  promise = promise.then do |result|
120
140
  http_response = result.response
@@ -126,6 +146,16 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
126
146
  end
127
147
 
128
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::StorageAccountInformationListResult.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
129
159
 
130
160
  result
131
161
  end
@@ -134,98 +164,92 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
134
164
  end
135
165
 
136
166
  #
137
- # Updates the Data Lake Analytics account to replace Azure Storage blob account
138
- # details, such as the access key and/or suffix.
167
+ # Updates the specified Data Lake Analytics account to add an Azure Storage
168
+ # account.
139
169
  #
140
- # @param resource_group_name [String] The name of the Azure resource group that
141
- # contains the Data Lake Analytics account.
142
- # @param account_name [String] The name of the Data Lake Analytics account to
143
- # modify storage accounts in
144
- # @param storage_account_name [String] The Azure Storage account to modify
145
- # @param parameters [UpdateStorageAccountParameters] The parameters containing
146
- # the access key and suffix to update the storage account with, if any. Passing
147
- # nothing results in no change.
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.
172
+ # @param storage_account_name [String] The name of the Azure Storage account to
173
+ # add
174
+ # @param parameters [AddStorageAccountParameters] The parameters containing the
175
+ # access key and optional suffix for the Azure Storage Account.
148
176
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
149
177
  # will be added to the HTTP request.
150
178
  #
151
179
  #
152
- def update(resource_group_name, account_name, storage_account_name, parameters = nil, custom_headers = nil)
153
- response = update_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value!
180
+ def add(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil)
181
+ response = add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value!
154
182
  nil
155
183
  end
156
184
 
157
185
  #
158
- # Updates the Data Lake Analytics account to replace Azure Storage blob account
159
- # details, such as the access key and/or suffix.
186
+ # Updates the specified Data Lake Analytics account to add an Azure Storage
187
+ # account.
160
188
  #
161
- # @param resource_group_name [String] The name of the Azure resource group that
162
- # contains the Data Lake Analytics account.
163
- # @param account_name [String] The name of the Data Lake Analytics account to
164
- # modify storage accounts in
165
- # @param storage_account_name [String] The Azure Storage account to modify
166
- # @param parameters [UpdateStorageAccountParameters] The parameters containing
167
- # the access key and suffix to update the storage account with, if any. Passing
168
- # nothing results in no change.
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.
191
+ # @param storage_account_name [String] The name of the Azure Storage account to
192
+ # add
193
+ # @param parameters [AddStorageAccountParameters] The parameters containing the
194
+ # access key and optional suffix for the Azure Storage Account.
169
195
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
170
196
  # will be added to the HTTP request.
171
197
  #
172
198
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
173
199
  #
174
- def update_with_http_info(resource_group_name, account_name, storage_account_name, parameters = nil, custom_headers = nil)
175
- update_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers).value!
200
+ def add_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil)
201
+ add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value!
176
202
  end
177
203
 
178
204
  #
179
- # Updates the Data Lake Analytics account to replace Azure Storage blob account
180
- # details, such as the access key and/or suffix.
205
+ # Updates the specified Data Lake Analytics account to add an Azure Storage
206
+ # account.
181
207
  #
182
- # @param resource_group_name [String] The name of the Azure resource group that
183
- # contains the Data Lake Analytics account.
184
- # @param account_name [String] The name of the Data Lake Analytics account to
185
- # modify storage accounts in
186
- # @param storage_account_name [String] The Azure Storage account to modify
187
- # @param parameters [UpdateStorageAccountParameters] The parameters containing
188
- # the access key and suffix to update the storage account with, if any. Passing
189
- # nothing results in no change.
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.
210
+ # @param storage_account_name [String] The name of the Azure Storage account to
211
+ # add
212
+ # @param parameters [AddStorageAccountParameters] The parameters containing the
213
+ # access key and optional suffix for the Azure Storage Account.
190
214
  # @param [Hash{String => String}] A hash of custom headers that will be added
191
215
  # to the HTTP request.
192
216
  #
193
217
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
194
218
  #
195
- def update_async(resource_group_name, account_name, storage_account_name, parameters = nil, custom_headers = nil)
219
+ def add_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil)
220
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
196
221
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
197
222
  fail ArgumentError, 'account_name is nil' if account_name.nil?
198
223
  fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
224
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
199
225
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
200
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
201
226
 
202
227
 
203
228
  request_headers = {}
229
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
204
230
 
205
231
  # Set Headers
206
232
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
207
233
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
208
234
 
209
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
210
-
211
235
  # Serialize Request
212
- request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters.mapper()
236
+ request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::AddStorageAccountParameters.mapper()
213
237
  request_content = @client.serialize(request_mapper, parameters)
214
238
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
215
239
 
216
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'
240
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}'
217
241
 
218
242
  request_url = @base_url || @client.base_url
219
243
 
220
244
  options = {
221
245
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
222
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'subscriptionId' => @client.subscription_id},
246
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name},
223
247
  query_params: {'api-version' => @client.api_version},
224
248
  body: request_content,
225
249
  headers: request_headers.merge(custom_headers || {}),
226
250
  base_url: request_url
227
251
  }
228
- promise = @client.make_request_async(:patch, path_template, options)
252
+ promise = @client.make_request_async(:put, path_template, options)
229
253
 
230
254
  promise = promise.then do |result|
231
255
  http_response = result.response
@@ -245,83 +269,79 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
245
269
  end
246
270
 
247
271
  #
248
- # Updates the specified Data Lake Analytics account to remove an Azure Storage
249
- # account.
272
+ # Gets the specified Azure Storage account linked to the given Data Lake
273
+ # Analytics account.
250
274
  #
251
- # @param resource_group_name [String] The name of the Azure resource group that
252
- # contains the Data Lake Analytics account.
253
- # @param account_name [String] The name of the Data Lake Analytics account from
254
- # which to remove the Azure Storage account.
255
- # @param storage_account_name [String] The name of the Azure Storage account to
256
- # remove
275
+ # @param resource_group_name [String] The name of the Azure resource group.
276
+ # @param account_name [String] The name of the Data Lake Analytics account.
277
+ # @param storage_account_name [String] The name of the Azure Storage account
278
+ # for which to retrieve the details.
257
279
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
258
280
  # will be added to the HTTP request.
259
281
  #
282
+ # @return [StorageAccountInformation] operation results.
260
283
  #
261
- def delete(resource_group_name, account_name, storage_account_name, custom_headers = nil)
262
- response = delete_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
263
- nil
284
+ def get(resource_group_name, account_name, storage_account_name, custom_headers:nil)
285
+ response = get_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value!
286
+ response.body unless response.nil?
264
287
  end
265
288
 
266
289
  #
267
- # Updates the specified Data Lake Analytics account to remove an Azure Storage
268
- # account.
290
+ # Gets the specified Azure Storage account linked to the given Data Lake
291
+ # Analytics account.
269
292
  #
270
- # @param resource_group_name [String] The name of the Azure resource group that
271
- # contains the Data Lake Analytics account.
272
- # @param account_name [String] The name of the Data Lake Analytics account from
273
- # which to remove the Azure Storage account.
274
- # @param storage_account_name [String] The name of the Azure Storage account to
275
- # remove
293
+ # @param resource_group_name [String] The name of the Azure resource group.
294
+ # @param account_name [String] The name of the Data Lake Analytics account.
295
+ # @param storage_account_name [String] The name of the Azure Storage account
296
+ # for which to retrieve the details.
276
297
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
277
298
  # will be added to the HTTP request.
278
299
  #
279
300
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
280
301
  #
281
- def delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil)
282
- delete_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
302
+ def get_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil)
303
+ get_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value!
283
304
  end
284
305
 
285
306
  #
286
- # Updates the specified Data Lake Analytics account to remove an Azure Storage
287
- # account.
307
+ # Gets the specified Azure Storage account linked to the given Data Lake
308
+ # Analytics account.
288
309
  #
289
- # @param resource_group_name [String] The name of the Azure resource group that
290
- # contains the Data Lake Analytics account.
291
- # @param account_name [String] The name of the Data Lake Analytics account from
292
- # which to remove the Azure Storage account.
293
- # @param storage_account_name [String] The name of the Azure Storage account to
294
- # remove
310
+ # @param resource_group_name [String] The name of the Azure resource group.
311
+ # @param account_name [String] The name of the Data Lake Analytics account.
312
+ # @param storage_account_name [String] The name of the Azure Storage account
313
+ # for which to retrieve the details.
295
314
  # @param [Hash{String => String}] A hash of custom headers that will be added
296
315
  # to the HTTP request.
297
316
  #
298
317
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
299
318
  #
300
- def delete_async(resource_group_name, account_name, storage_account_name, custom_headers = nil)
319
+ def get_async(resource_group_name, account_name, storage_account_name, custom_headers:nil)
320
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
301
321
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
302
322
  fail ArgumentError, 'account_name is nil' if account_name.nil?
303
323
  fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
304
324
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
305
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
306
325
 
307
326
 
308
327
  request_headers = {}
328
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
309
329
 
310
330
  # Set Headers
311
331
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
312
332
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
313
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'
333
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}'
314
334
 
315
335
  request_url = @base_url || @client.base_url
316
336
 
317
337
  options = {
318
338
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
319
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'subscriptionId' => @client.subscription_id},
339
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name},
320
340
  query_params: {'api-version' => @client.api_version},
321
341
  headers: request_headers.merge(custom_headers || {}),
322
342
  base_url: request_url
323
343
  }
324
- promise = @client.make_request_async(:delete, path_template, options)
344
+ promise = @client.make_request_async(:get, path_template, options)
325
345
 
326
346
  promise = promise.then do |result|
327
347
  http_response = result.response
@@ -333,6 +353,16 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
333
353
  end
334
354
 
335
355
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
356
+ # Deserialize Response
357
+ if status_code == 200
358
+ begin
359
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
360
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInformation.mapper()
361
+ result.body = @client.deserialize(result_mapper, parsed_response)
362
+ rescue Exception => e
363
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
364
+ end
365
+ end
336
366
 
337
367
  result
338
368
  end
@@ -341,84 +371,91 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
341
371
  end
342
372
 
343
373
  #
344
- # Gets the specified Azure Storage account linked to the given Data Lake
345
- # Analytics account.
374
+ # Updates the Data Lake Analytics account to replace Azure Storage blob account
375
+ # details, such as the access key and/or suffix.
346
376
  #
347
- # @param resource_group_name [String] The name of the Azure resource group that
348
- # contains the Data Lake Analytics account.
349
- # @param account_name [String] The name of the Data Lake Analytics account from
350
- # which to retrieve Azure storage account details.
351
- # @param storage_account_name [String] The name of the Azure Storage account
352
- # for which to retrieve the details.
377
+ # @param resource_group_name [String] The name of the Azure resource group.
378
+ # @param account_name [String] The name of the Data Lake Analytics account.
379
+ # @param storage_account_name [String] The Azure Storage account to modify
380
+ # @param parameters [UpdateStorageAccountParameters] The parameters containing
381
+ # the access key and suffix to update the storage account with, if any. Passing
382
+ # nothing results in no change.
353
383
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
354
384
  # will be added to the HTTP request.
355
385
  #
356
- # @return [StorageAccountInfo] operation results.
357
386
  #
358
- def get(resource_group_name, account_name, storage_account_name, custom_headers = nil)
359
- response = get_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
360
- response.body unless response.nil?
387
+ def update(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil)
388
+ response = update_async(resource_group_name, account_name, storage_account_name, parameters:parameters, custom_headers:custom_headers).value!
389
+ nil
361
390
  end
362
391
 
363
392
  #
364
- # Gets the specified Azure Storage account linked to the given Data Lake
365
- # Analytics account.
393
+ # Updates the Data Lake Analytics account to replace Azure Storage blob account
394
+ # details, such as the access key and/or suffix.
366
395
  #
367
- # @param resource_group_name [String] The name of the Azure resource group that
368
- # contains the Data Lake Analytics account.
369
- # @param account_name [String] The name of the Data Lake Analytics account from
370
- # which to retrieve Azure storage account details.
371
- # @param storage_account_name [String] The name of the Azure Storage account
372
- # for which to retrieve the details.
396
+ # @param resource_group_name [String] The name of the Azure resource group.
397
+ # @param account_name [String] The name of the Data Lake Analytics account.
398
+ # @param storage_account_name [String] The Azure Storage account to modify
399
+ # @param parameters [UpdateStorageAccountParameters] The parameters containing
400
+ # the access key and suffix to update the storage account with, if any. Passing
401
+ # nothing results in no change.
373
402
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
374
403
  # will be added to the HTTP request.
375
404
  #
376
405
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
377
406
  #
378
- def get_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil)
379
- get_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
407
+ def update_with_http_info(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil)
408
+ update_async(resource_group_name, account_name, storage_account_name, parameters:parameters, custom_headers:custom_headers).value!
380
409
  end
381
410
 
382
411
  #
383
- # Gets the specified Azure Storage account linked to the given Data Lake
384
- # Analytics account.
412
+ # Updates the Data Lake Analytics account to replace Azure Storage blob account
413
+ # details, such as the access key and/or suffix.
385
414
  #
386
- # @param resource_group_name [String] The name of the Azure resource group that
387
- # contains the Data Lake Analytics account.
388
- # @param account_name [String] The name of the Data Lake Analytics account from
389
- # which to retrieve Azure storage account details.
390
- # @param storage_account_name [String] The name of the Azure Storage account
391
- # for which to retrieve the details.
415
+ # @param resource_group_name [String] The name of the Azure resource group.
416
+ # @param account_name [String] The name of the Data Lake Analytics account.
417
+ # @param storage_account_name [String] The Azure Storage account to modify
418
+ # @param parameters [UpdateStorageAccountParameters] The parameters containing
419
+ # the access key and suffix to update the storage account with, if any. Passing
420
+ # nothing results in no change.
392
421
  # @param [Hash{String => String}] A hash of custom headers that will be added
393
422
  # to the HTTP request.
394
423
  #
395
424
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
396
425
  #
397
- def get_async(resource_group_name, account_name, storage_account_name, custom_headers = nil)
426
+ def update_async(resource_group_name, account_name, storage_account_name, parameters:nil, custom_headers:nil)
427
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
398
428
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
399
429
  fail ArgumentError, 'account_name is nil' if account_name.nil?
400
430
  fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
401
431
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
402
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
403
432
 
404
433
 
405
434
  request_headers = {}
435
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
406
436
 
407
437
  # Set Headers
408
438
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
409
439
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
410
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}'
440
+
441
+ # Serialize Request
442
+ request_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::UpdateStorageAccountParameters.mapper()
443
+ request_content = @client.serialize(request_mapper, parameters)
444
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
445
+
446
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}'
411
447
 
412
448
  request_url = @base_url || @client.base_url
413
449
 
414
450
  options = {
415
451
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
416
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'subscriptionId' => @client.subscription_id},
452
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name},
417
453
  query_params: {'api-version' => @client.api_version},
454
+ body: request_content,
418
455
  headers: request_headers.merge(custom_headers || {}),
419
456
  base_url: request_url
420
457
  }
421
- promise = @client.make_request_async(:get, path_template, options)
458
+ promise = @client.make_request_async(:patch, path_template, options)
422
459
 
423
460
  promise = promise.then do |result|
424
461
  http_response = result.response
@@ -430,16 +467,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
430
467
  end
431
468
 
432
469
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
433
- # Deserialize Response
434
- if status_code == 200
435
- begin
436
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
437
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInfo.mapper()
438
- result.body = @client.deserialize(result_mapper, parsed_response)
439
- rescue Exception => e
440
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
441
- end
442
- end
443
470
 
444
471
  result
445
472
  end
@@ -448,91 +475,78 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
448
475
  end
449
476
 
450
477
  #
451
- # Gets the specified Azure Storage container associated with the given Data
452
- # Lake Analytics and Azure Storage accounts.
478
+ # Updates the specified Data Lake Analytics account to remove an Azure Storage
479
+ # account.
453
480
  #
454
- # @param resource_group_name [String] The name of the Azure resource group that
455
- # contains the Data Lake Analytics account.
456
- # @param account_name [String] The name of the Data Lake Analytics account for
457
- # which to retrieve blob container.
458
- # @param storage_account_name [String] The name of the Azure storage account
459
- # from which to retrieve the blob container.
460
- # @param container_name [String] The name of the Azure storage container to
461
- # retrieve
481
+ # @param resource_group_name [String] The name of the Azure resource group.
482
+ # @param account_name [String] The name of the Data Lake Analytics account.
483
+ # @param storage_account_name [String] The name of the Azure Storage account to
484
+ # remove
462
485
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
463
486
  # will be added to the HTTP request.
464
487
  #
465
- # @return [StorageContainer] operation results.
466
488
  #
467
- def get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
468
- response = get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value!
469
- response.body unless response.nil?
489
+ def delete(resource_group_name, account_name, storage_account_name, custom_headers:nil)
490
+ response = delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value!
491
+ nil
470
492
  end
471
493
 
472
494
  #
473
- # Gets the specified Azure Storage container associated with the given Data
474
- # Lake Analytics and Azure Storage accounts.
495
+ # Updates the specified Data Lake Analytics account to remove an Azure Storage
496
+ # account.
475
497
  #
476
- # @param resource_group_name [String] The name of the Azure resource group that
477
- # contains the Data Lake Analytics account.
478
- # @param account_name [String] The name of the Data Lake Analytics account for
479
- # which to retrieve blob container.
480
- # @param storage_account_name [String] The name of the Azure storage account
481
- # from which to retrieve the blob container.
482
- # @param container_name [String] The name of the Azure storage container to
483
- # retrieve
498
+ # @param resource_group_name [String] The name of the Azure resource group.
499
+ # @param account_name [String] The name of the Data Lake Analytics account.
500
+ # @param storage_account_name [String] The name of the Azure Storage account to
501
+ # remove
484
502
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
485
503
  # will be added to the HTTP request.
486
504
  #
487
505
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
488
506
  #
489
- def get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
490
- get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value!
507
+ def delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil)
508
+ delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value!
491
509
  end
492
510
 
493
511
  #
494
- # Gets the specified Azure Storage container associated with the given Data
495
- # Lake Analytics and Azure Storage accounts.
512
+ # Updates the specified Data Lake Analytics account to remove an Azure Storage
513
+ # account.
496
514
  #
497
- # @param resource_group_name [String] The name of the Azure resource group that
498
- # contains the Data Lake Analytics account.
499
- # @param account_name [String] The name of the Data Lake Analytics account for
500
- # which to retrieve blob container.
501
- # @param storage_account_name [String] The name of the Azure storage account
502
- # from which to retrieve the blob container.
503
- # @param container_name [String] The name of the Azure storage container to
504
- # retrieve
515
+ # @param resource_group_name [String] The name of the Azure resource group.
516
+ # @param account_name [String] The name of the Data Lake Analytics account.
517
+ # @param storage_account_name [String] The name of the Azure Storage account to
518
+ # remove
505
519
  # @param [Hash{String => String}] A hash of custom headers that will be added
506
520
  # to the HTTP request.
507
521
  #
508
522
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
509
523
  #
510
- def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
524
+ def delete_async(resource_group_name, account_name, storage_account_name, custom_headers:nil)
525
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
511
526
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
512
527
  fail ArgumentError, 'account_name is nil' if account_name.nil?
513
528
  fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
514
- fail ArgumentError, 'container_name is nil' if container_name.nil?
515
529
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
516
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
517
530
 
518
531
 
519
532
  request_headers = {}
533
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
520
534
 
521
535
  # Set Headers
522
536
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
523
537
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
524
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}'
538
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}'
525
539
 
526
540
  request_url = @base_url || @client.base_url
527
541
 
528
542
  options = {
529
543
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
530
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'containerName' => container_name,'subscriptionId' => @client.subscription_id},
544
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name},
531
545
  query_params: {'api-version' => @client.api_version},
532
546
  headers: request_headers.merge(custom_headers || {}),
533
547
  base_url: request_url
534
548
  }
535
- promise = @client.make_request_async(:get, path_template, options)
549
+ promise = @client.make_request_async(:delete, path_template, options)
536
550
 
537
551
  promise = promise.then do |result|
538
552
  http_response = result.response
@@ -544,16 +558,6 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
544
558
  end
545
559
 
546
560
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
547
- # Deserialize Response
548
- if status_code == 200
549
- begin
550
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
551
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer.mapper()
552
- result.body = @client.deserialize(result_mapper, parsed_response)
553
- rescue Exception => e
554
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
555
- end
556
- end
557
561
 
558
562
  result
559
563
  end
@@ -566,10 +570,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
566
570
  # Data Lake Analytics and Azure Storage account combination. The response
567
571
  # includes a link to the next page of results, if any.
568
572
  #
569
- # @param resource_group_name [String] The name of the Azure resource group that
570
- # contains the Data Lake Analytics account.
571
- # @param account_name [String] The name of the Data Lake Analytics account for
572
- # which to list Azure Storage blob containers.
573
+ # @param resource_group_name [String] The name of the Azure resource group.
574
+ # @param account_name [String] The name of the Data Lake Analytics account.
573
575
  # @param storage_account_name [String] The name of the Azure storage account
574
576
  # from which to list blob containers.
575
577
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -577,8 +579,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
577
579
  #
578
580
  # @return [Array<StorageContainer>] operation results.
579
581
  #
580
- def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers = nil)
581
- first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers)
582
+ def list_storage_containers(resource_group_name, account_name, storage_account_name, custom_headers:nil)
583
+ first_page = list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers)
582
584
  first_page.get_all_items
583
585
  end
584
586
 
@@ -587,10 +589,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
587
589
  # Data Lake Analytics and Azure Storage account combination. The response
588
590
  # includes a link to the next page of results, if any.
589
591
  #
590
- # @param resource_group_name [String] The name of the Azure resource group that
591
- # contains the Data Lake Analytics account.
592
- # @param account_name [String] The name of the Data Lake Analytics account for
593
- # which to list Azure Storage blob containers.
592
+ # @param resource_group_name [String] The name of the Azure resource group.
593
+ # @param account_name [String] The name of the Data Lake Analytics account.
594
594
  # @param storage_account_name [String] The name of the Azure storage account
595
595
  # from which to list blob containers.
596
596
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -598,8 +598,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
598
598
  #
599
599
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
600
600
  #
601
- def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers = nil)
602
- list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
601
+ def list_storage_containers_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil)
602
+ list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value!
603
603
  end
604
604
 
605
605
  #
@@ -607,10 +607,8 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
607
607
  # Data Lake Analytics and Azure Storage account combination. The response
608
608
  # includes a link to the next page of results, if any.
609
609
  #
610
- # @param resource_group_name [String] The name of the Azure resource group that
611
- # contains the Data Lake Analytics account.
612
- # @param account_name [String] The name of the Data Lake Analytics account for
613
- # which to list Azure Storage blob containers.
610
+ # @param resource_group_name [String] The name of the Azure resource group.
611
+ # @param account_name [String] The name of the Data Lake Analytics account.
614
612
  # @param storage_account_name [String] The name of the Azure storage account
615
613
  # from which to list blob containers.
616
614
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -618,26 +616,27 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
618
616
  #
619
617
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
620
618
  #
621
- def list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers = nil)
619
+ def list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:nil)
620
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
622
621
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
623
622
  fail ArgumentError, 'account_name is nil' if account_name.nil?
624
623
  fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
625
624
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
626
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
627
625
 
628
626
 
629
627
  request_headers = {}
628
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
630
629
 
631
630
  # Set Headers
632
631
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
633
632
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
634
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers'
633
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers'
635
634
 
636
635
  request_url = @base_url || @client.base_url
637
636
 
638
637
  options = {
639
638
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
640
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'subscriptionId' => @client.subscription_id},
639
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name},
641
640
  query_params: {'api-version' => @client.api_version},
642
641
  headers: request_headers.merge(custom_headers || {}),
643
642
  base_url: request_url
@@ -658,7 +657,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
658
657
  if status_code == 200
659
658
  begin
660
659
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
661
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListStorageContainersResult.mapper()
660
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainerListResult.mapper()
662
661
  result.body = @client.deserialize(result_mapper, parsed_response)
663
662
  rescue Exception => e
664
663
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -672,91 +671,86 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
672
671
  end
673
672
 
674
673
  #
675
- # Gets the SAS token associated with the specified Data Lake Analytics and
676
- # Azure Storage account and container combination.
674
+ # Gets the specified Azure Storage container associated with the given Data
675
+ # Lake Analytics and Azure Storage accounts.
677
676
  #
678
- # @param resource_group_name [String] The name of the Azure resource group that
679
- # contains the Data Lake Analytics account.
680
- # @param account_name [String] The name of the Data Lake Analytics account from
681
- # which an Azure Storage account's SAS token is being requested.
677
+ # @param resource_group_name [String] The name of the Azure resource group.
678
+ # @param account_name [String] The name of the Data Lake Analytics account.
682
679
  # @param storage_account_name [String] The name of the Azure storage account
683
- # for which the SAS token is being requested.
684
- # @param container_name [String] The name of the Azure storage container for
685
- # which the SAS token is being requested.
680
+ # from which to retrieve the blob container.
681
+ # @param container_name [String] The name of the Azure storage container to
682
+ # retrieve
686
683
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
687
684
  # will be added to the HTTP request.
688
685
  #
689
- # @return [Array<SasTokenInfo>] operation results.
686
+ # @return [StorageContainer] operation results.
690
687
  #
691
- def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
692
- first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers)
693
- first_page.get_all_items
688
+ def get_storage_container(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil)
689
+ response = get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value!
690
+ response.body unless response.nil?
694
691
  end
695
692
 
696
693
  #
697
- # Gets the SAS token associated with the specified Data Lake Analytics and
698
- # Azure Storage account and container combination.
694
+ # Gets the specified Azure Storage container associated with the given Data
695
+ # Lake Analytics and Azure Storage accounts.
699
696
  #
700
- # @param resource_group_name [String] The name of the Azure resource group that
701
- # contains the Data Lake Analytics account.
702
- # @param account_name [String] The name of the Data Lake Analytics account from
703
- # which an Azure Storage account's SAS token is being requested.
697
+ # @param resource_group_name [String] The name of the Azure resource group.
698
+ # @param account_name [String] The name of the Data Lake Analytics account.
704
699
  # @param storage_account_name [String] The name of the Azure storage account
705
- # for which the SAS token is being requested.
706
- # @param container_name [String] The name of the Azure storage container for
707
- # which the SAS token is being requested.
700
+ # from which to retrieve the blob container.
701
+ # @param container_name [String] The name of the Azure storage container to
702
+ # retrieve
708
703
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
709
704
  # will be added to the HTTP request.
710
705
  #
711
706
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
712
707
  #
713
- def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
714
- list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value!
708
+ def get_storage_container_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil)
709
+ get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value!
715
710
  end
716
711
 
717
712
  #
718
- # Gets the SAS token associated with the specified Data Lake Analytics and
719
- # Azure Storage account and container combination.
713
+ # Gets the specified Azure Storage container associated with the given Data
714
+ # Lake Analytics and Azure Storage accounts.
720
715
  #
721
- # @param resource_group_name [String] The name of the Azure resource group that
722
- # contains the Data Lake Analytics account.
723
- # @param account_name [String] The name of the Data Lake Analytics account from
724
- # which an Azure Storage account's SAS token is being requested.
716
+ # @param resource_group_name [String] The name of the Azure resource group.
717
+ # @param account_name [String] The name of the Data Lake Analytics account.
725
718
  # @param storage_account_name [String] The name of the Azure storage account
726
- # for which the SAS token is being requested.
727
- # @param container_name [String] The name of the Azure storage container for
728
- # which the SAS token is being requested.
719
+ # from which to retrieve the blob container.
720
+ # @param container_name [String] The name of the Azure storage container to
721
+ # retrieve
729
722
  # @param [Hash{String => String}] A hash of custom headers that will be added
730
723
  # to the HTTP request.
731
724
  #
732
725
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
733
726
  #
734
- def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
727
+ def get_storage_container_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil)
728
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
735
729
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
736
730
  fail ArgumentError, 'account_name is nil' if account_name.nil?
737
731
  fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
738
732
  fail ArgumentError, 'container_name is nil' if container_name.nil?
739
733
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
740
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
741
734
 
742
735
 
743
736
  request_headers = {}
737
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
744
738
 
745
739
  # Set Headers
746
740
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
747
741
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
748
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/{storageAccountName}/Containers/{containerName}/listSasTokens'
742
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers/{containerName}'
749
743
 
750
744
  request_url = @base_url || @client.base_url
751
745
 
752
746
  options = {
753
747
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
754
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'containerName' => container_name,'subscriptionId' => @client.subscription_id},
748
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'containerName' => container_name},
755
749
  query_params: {'api-version' => @client.api_version},
756
750
  headers: request_headers.merge(custom_headers || {}),
757
751
  base_url: request_url
758
752
  }
759
- promise = @client.make_request_async(:post, path_template, options)
753
+ promise = @client.make_request_async(:get, path_template, options)
760
754
 
761
755
  promise = promise.then do |result|
762
756
  http_response = result.response
@@ -772,7 +766,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
772
766
  if status_code == 200
773
767
  begin
774
768
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
775
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListSasTokensResult.mapper()
769
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainer.mapper()
776
770
  result.body = @client.deserialize(result_mapper, parsed_response)
777
771
  rescue Exception => e
778
772
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -786,124 +780,86 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
786
780
  end
787
781
 
788
782
  #
789
- # Gets the first page of Azure Storage accounts, if any, linked to the
790
- # specified Data Lake Analytics account. The response includes a link to the
791
- # next page, if any.
783
+ # Gets the SAS token associated with the specified Data Lake Analytics and
784
+ # Azure Storage account and container combination.
792
785
  #
793
- # @param resource_group_name [String] The name of the Azure resource group that
794
- # contains the Data Lake Analytics account.
795
- # @param account_name [String] The name of the Data Lake Analytics account for
796
- # which to list Azure Storage accounts.
797
- # @param filter [String] The OData filter. Optional.
798
- # @param top [Integer] The number of items to return. Optional.
799
- # @param skip [Integer] The number of items to skip over before returning
800
- # elements. Optional.
801
- # @param select [String] OData Select statement. Limits the properties on each
802
- # entry to just those requested, e.g.
803
- # Categories?$select=CategoryName,Description. Optional.
804
- # @param orderby [String] OrderBy clause. One or more comma-separated
805
- # expressions with an optional "asc" (the default) or "desc" depending on the
806
- # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
807
- # desc. Optional.
808
- # @param count [Boolean] The Boolean value of true or false to request a count
809
- # of the matching resources included with the resources in the response, e.g.
810
- # Categories?$count=true. Optional.
786
+ # @param resource_group_name [String] The name of the Azure resource group.
787
+ # @param account_name [String] The name of the Data Lake Analytics account.
788
+ # @param storage_account_name [String] The name of the Azure storage account
789
+ # for which the SAS token is being requested.
790
+ # @param container_name [String] The name of the Azure storage container for
791
+ # which the SAS token is being requested.
811
792
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
812
793
  # will be added to the HTTP request.
813
794
  #
814
- # @return [Array<StorageAccountInfo>] operation results.
795
+ # @return [Array<SasTokenInformation>] operation results.
815
796
  #
816
- def list_by_account(resource_group_name, account_name, filter = nil, top = nil, skip = nil, select = nil, orderby = nil, count = nil, custom_headers = nil)
817
- first_page = list_by_account_as_lazy(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers)
797
+ def list_sas_tokens(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil)
798
+ first_page = list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers)
818
799
  first_page.get_all_items
819
800
  end
820
801
 
821
802
  #
822
- # Gets the first page of Azure Storage accounts, if any, linked to the
823
- # specified Data Lake Analytics account. The response includes a link to the
824
- # next page, if any.
803
+ # Gets the SAS token associated with the specified Data Lake Analytics and
804
+ # Azure Storage account and container combination.
825
805
  #
826
- # @param resource_group_name [String] The name of the Azure resource group that
827
- # contains the Data Lake Analytics account.
828
- # @param account_name [String] The name of the Data Lake Analytics account for
829
- # which to list Azure Storage accounts.
830
- # @param filter [String] The OData filter. Optional.
831
- # @param top [Integer] The number of items to return. Optional.
832
- # @param skip [Integer] The number of items to skip over before returning
833
- # elements. Optional.
834
- # @param select [String] OData Select statement. Limits the properties on each
835
- # entry to just those requested, e.g.
836
- # Categories?$select=CategoryName,Description. Optional.
837
- # @param orderby [String] OrderBy clause. One or more comma-separated
838
- # expressions with an optional "asc" (the default) or "desc" depending on the
839
- # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
840
- # desc. Optional.
841
- # @param count [Boolean] The Boolean value of true or false to request a count
842
- # of the matching resources included with the resources in the response, e.g.
843
- # Categories?$count=true. Optional.
806
+ # @param resource_group_name [String] The name of the Azure resource group.
807
+ # @param account_name [String] The name of the Data Lake Analytics account.
808
+ # @param storage_account_name [String] The name of the Azure storage account
809
+ # for which the SAS token is being requested.
810
+ # @param container_name [String] The name of the Azure storage container for
811
+ # which the SAS token is being requested.
844
812
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
845
813
  # will be added to the HTTP request.
846
814
  #
847
815
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
848
816
  #
849
- 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)
850
- list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value!
817
+ def list_sas_tokens_with_http_info(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil)
818
+ list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value!
851
819
  end
852
820
 
853
821
  #
854
- # Gets the first page of Azure Storage accounts, if any, linked to the
855
- # specified Data Lake Analytics account. The response includes a link to the
856
- # next page, if any.
822
+ # Gets the SAS token associated with the specified Data Lake Analytics and
823
+ # Azure Storage account and container combination.
857
824
  #
858
- # @param resource_group_name [String] The name of the Azure resource group that
859
- # contains the Data Lake Analytics account.
860
- # @param account_name [String] The name of the Data Lake Analytics account for
861
- # which to list Azure Storage accounts.
862
- # @param filter [String] The OData filter. Optional.
863
- # @param top [Integer] The number of items to return. Optional.
864
- # @param skip [Integer] The number of items to skip over before returning
865
- # elements. Optional.
866
- # @param select [String] OData Select statement. Limits the properties on each
867
- # entry to just those requested, e.g.
868
- # Categories?$select=CategoryName,Description. Optional.
869
- # @param orderby [String] OrderBy clause. One or more comma-separated
870
- # expressions with an optional "asc" (the default) or "desc" depending on the
871
- # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
872
- # desc. Optional.
873
- # @param count [Boolean] The Boolean value of true or false to request a count
874
- # of the matching resources included with the resources in the response, e.g.
875
- # Categories?$count=true. Optional.
825
+ # @param resource_group_name [String] The name of the Azure resource group.
826
+ # @param account_name [String] The name of the Data Lake Analytics account.
827
+ # @param storage_account_name [String] The name of the Azure storage account
828
+ # for which the SAS token is being requested.
829
+ # @param container_name [String] The name of the Azure storage container for
830
+ # which the SAS token is being requested.
876
831
  # @param [Hash{String => String}] A hash of custom headers that will be added
877
832
  # to the HTTP request.
878
833
  #
879
834
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
880
835
  #
881
- 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)
836
+ def list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil)
837
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
882
838
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
883
839
  fail ArgumentError, 'account_name is nil' if account_name.nil?
884
- fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
885
- fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '1'" if !skip.nil? && skip < 1
840
+ fail ArgumentError, 'storage_account_name is nil' if storage_account_name.nil?
841
+ fail ArgumentError, 'container_name is nil' if container_name.nil?
886
842
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
887
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
888
843
 
889
844
 
890
845
  request_headers = {}
846
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
891
847
 
892
848
  # Set Headers
893
849
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
894
850
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
895
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/StorageAccounts/'
851
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/storageAccounts/{storageAccountName}/containers/{containerName}/listSasTokens'
896
852
 
897
853
  request_url = @base_url || @client.base_url
898
854
 
899
855
  options = {
900
856
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
901
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
902
- query_params: {'$filter' => filter,'$top' => top,'$skip' => skip,'$select' => select,'$orderby' => orderby,'$count' => count,'api-version' => @client.api_version},
857
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'storageAccountName' => storage_account_name,'containerName' => container_name},
858
+ query_params: {'api-version' => @client.api_version},
903
859
  headers: request_headers.merge(custom_headers || {}),
904
860
  base_url: request_url
905
861
  }
906
- promise = @client.make_request_async(:get, path_template, options)
862
+ promise = @client.make_request_async(:post, path_template, options)
907
863
 
908
864
  promise = promise.then do |result|
909
865
  http_response = result.response
@@ -919,7 +875,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
919
875
  if status_code == 200
920
876
  begin
921
877
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
922
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListStorageAccountsResult.mapper()
878
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformationListResult.mapper()
923
879
  result.body = @client.deserialize(result_mapper, parsed_response)
924
880
  rescue Exception => e
925
881
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -933,26 +889,26 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
933
889
  end
934
890
 
935
891
  #
936
- # Lists the Azure Storage containers, if any, associated with the specified
937
- # Data Lake Analytics and Azure Storage account combination. The response
938
- # includes a link to the next page of results, if any.
892
+ # Gets the first page of Azure Storage accounts, if any, linked to the
893
+ # specified Data Lake Analytics account. The response includes a link to the
894
+ # next page, if any.
939
895
  #
940
896
  # @param next_page_link [String] The NextLink from the previous successful call
941
897
  # to List operation.
942
898
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
943
899
  # will be added to the HTTP request.
944
900
  #
945
- # @return [ListStorageContainersResult] operation results.
901
+ # @return [StorageAccountInformationListResult] operation results.
946
902
  #
947
- def list_storage_containers_next(next_page_link, custom_headers = nil)
948
- response = list_storage_containers_next_async(next_page_link, custom_headers).value!
903
+ def list_by_account_next(next_page_link, custom_headers:nil)
904
+ response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value!
949
905
  response.body unless response.nil?
950
906
  end
951
907
 
952
908
  #
953
- # Lists the Azure Storage containers, if any, associated with the specified
954
- # Data Lake Analytics and Azure Storage account combination. The response
955
- # includes a link to the next page of results, if any.
909
+ # Gets the first page of Azure Storage accounts, if any, linked to the
910
+ # specified Data Lake Analytics account. The response includes a link to the
911
+ # next page, if any.
956
912
  #
957
913
  # @param next_page_link [String] The NextLink from the previous successful call
958
914
  # to List operation.
@@ -961,14 +917,14 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
961
917
  #
962
918
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
963
919
  #
964
- def list_storage_containers_next_with_http_info(next_page_link, custom_headers = nil)
965
- list_storage_containers_next_async(next_page_link, custom_headers).value!
920
+ def list_by_account_next_with_http_info(next_page_link, custom_headers:nil)
921
+ list_by_account_next_async(next_page_link, custom_headers:custom_headers).value!
966
922
  end
967
923
 
968
924
  #
969
- # Lists the Azure Storage containers, if any, associated with the specified
970
- # Data Lake Analytics and Azure Storage account combination. The response
971
- # includes a link to the next page of results, if any.
925
+ # Gets the first page of Azure Storage accounts, if any, linked to the
926
+ # specified Data Lake Analytics account. The response includes a link to the
927
+ # next page, if any.
972
928
  #
973
929
  # @param next_page_link [String] The NextLink from the previous successful call
974
930
  # to List operation.
@@ -977,11 +933,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
977
933
  #
978
934
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
979
935
  #
980
- def list_storage_containers_next_async(next_page_link, custom_headers = nil)
936
+ def list_by_account_next_async(next_page_link, custom_headers:nil)
981
937
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
982
938
 
983
939
 
984
940
  request_headers = {}
941
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
985
942
 
986
943
  # Set Headers
987
944
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1012,7 +969,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1012
969
  if status_code == 200
1013
970
  begin
1014
971
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1015
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListStorageContainersResult.mapper()
972
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageAccountInformationListResult.mapper()
1016
973
  result.body = @client.deserialize(result_mapper, parsed_response)
1017
974
  rescue Exception => e
1018
975
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1026,24 +983,26 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1026
983
  end
1027
984
 
1028
985
  #
1029
- # Gets the SAS token associated with the specified Data Lake Analytics and
1030
- # Azure Storage account and container combination.
986
+ # Lists the Azure Storage containers, if any, associated with the specified
987
+ # Data Lake Analytics and Azure Storage account combination. The response
988
+ # includes a link to the next page of results, if any.
1031
989
  #
1032
990
  # @param next_page_link [String] The NextLink from the previous successful call
1033
991
  # to List operation.
1034
992
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1035
993
  # will be added to the HTTP request.
1036
994
  #
1037
- # @return [ListSasTokensResult] operation results.
995
+ # @return [StorageContainerListResult] operation results.
1038
996
  #
1039
- def list_sas_tokens_next(next_page_link, custom_headers = nil)
1040
- response = list_sas_tokens_next_async(next_page_link, custom_headers).value!
997
+ def list_storage_containers_next(next_page_link, custom_headers:nil)
998
+ response = list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value!
1041
999
  response.body unless response.nil?
1042
1000
  end
1043
1001
 
1044
1002
  #
1045
- # Gets the SAS token associated with the specified Data Lake Analytics and
1046
- # Azure Storage account and container combination.
1003
+ # Lists the Azure Storage containers, if any, associated with the specified
1004
+ # Data Lake Analytics and Azure Storage account combination. The response
1005
+ # includes a link to the next page of results, if any.
1047
1006
  #
1048
1007
  # @param next_page_link [String] The NextLink from the previous successful call
1049
1008
  # to List operation.
@@ -1052,13 +1011,14 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1052
1011
  #
1053
1012
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1054
1013
  #
1055
- def list_sas_tokens_next_with_http_info(next_page_link, custom_headers = nil)
1056
- list_sas_tokens_next_async(next_page_link, custom_headers).value!
1014
+ def list_storage_containers_next_with_http_info(next_page_link, custom_headers:nil)
1015
+ list_storage_containers_next_async(next_page_link, custom_headers:custom_headers).value!
1057
1016
  end
1058
1017
 
1059
1018
  #
1060
- # Gets the SAS token associated with the specified Data Lake Analytics and
1061
- # Azure Storage account and container combination.
1019
+ # Lists the Azure Storage containers, if any, associated with the specified
1020
+ # Data Lake Analytics and Azure Storage account combination. The response
1021
+ # includes a link to the next page of results, if any.
1062
1022
  #
1063
1023
  # @param next_page_link [String] The NextLink from the previous successful call
1064
1024
  # to List operation.
@@ -1067,11 +1027,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1067
1027
  #
1068
1028
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1069
1029
  #
1070
- def list_sas_tokens_next_async(next_page_link, custom_headers = nil)
1030
+ def list_storage_containers_next_async(next_page_link, custom_headers:nil)
1071
1031
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1072
1032
 
1073
1033
 
1074
1034
  request_headers = {}
1035
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1075
1036
 
1076
1037
  # Set Headers
1077
1038
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1086,7 +1047,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1086
1047
  headers: request_headers.merge(custom_headers || {}),
1087
1048
  base_url: request_url
1088
1049
  }
1089
- promise = @client.make_request_async(:post, path_template, options)
1050
+ promise = @client.make_request_async(:get, path_template, options)
1090
1051
 
1091
1052
  promise = promise.then do |result|
1092
1053
  http_response = result.response
@@ -1102,7 +1063,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1102
1063
  if status_code == 200
1103
1064
  begin
1104
1065
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1105
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::ListSasTokensResult.mapper()
1066
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::StorageContainerListResult.mapper()
1106
1067
  result.body = @client.deserialize(result_mapper, parsed_response)
1107
1068
  rescue Exception => e
1108
1069
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1116,27 +1077,24 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1116
1077
  end
1117
1078
 
1118
1079
  #
1119
- # Gets the first page of Azure Storage accounts, if any, linked to the
1120
- # specified Data Lake Analytics account. The response includes a link to the
1121
- # next page, if any.
1080
+ # Gets the SAS token associated with the specified Data Lake Analytics and
1081
+ # Azure Storage account and container combination.
1122
1082
  #
1123
1083
  # @param next_page_link [String] The NextLink from the previous successful call
1124
1084
  # to List operation.
1125
1085
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1126
1086
  # will be added to the HTTP request.
1127
1087
  #
1128
- # @return [DataLakeAnalyticsAccountListStorageAccountsResult] operation
1129
- # results.
1088
+ # @return [SasTokenInformationListResult] operation results.
1130
1089
  #
1131
- def list_by_account_next(next_page_link, custom_headers = nil)
1132
- response = list_by_account_next_async(next_page_link, custom_headers).value!
1090
+ def list_sas_tokens_next(next_page_link, custom_headers:nil)
1091
+ response = list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value!
1133
1092
  response.body unless response.nil?
1134
1093
  end
1135
1094
 
1136
1095
  #
1137
- # Gets the first page of Azure Storage accounts, if any, linked to the
1138
- # specified Data Lake Analytics account. The response includes a link to the
1139
- # next page, if any.
1096
+ # Gets the SAS token associated with the specified Data Lake Analytics and
1097
+ # Azure Storage account and container combination.
1140
1098
  #
1141
1099
  # @param next_page_link [String] The NextLink from the previous successful call
1142
1100
  # to List operation.
@@ -1145,14 +1103,13 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1145
1103
  #
1146
1104
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1147
1105
  #
1148
- def list_by_account_next_with_http_info(next_page_link, custom_headers = nil)
1149
- list_by_account_next_async(next_page_link, custom_headers).value!
1106
+ def list_sas_tokens_next_with_http_info(next_page_link, custom_headers:nil)
1107
+ list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers).value!
1150
1108
  end
1151
1109
 
1152
1110
  #
1153
- # Gets the first page of Azure Storage accounts, if any, linked to the
1154
- # specified Data Lake Analytics account. The response includes a link to the
1155
- # next page, if any.
1111
+ # Gets the SAS token associated with the specified Data Lake Analytics and
1112
+ # Azure Storage account and container combination.
1156
1113
  #
1157
1114
  # @param next_page_link [String] The NextLink from the previous successful call
1158
1115
  # to List operation.
@@ -1161,11 +1118,12 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1161
1118
  #
1162
1119
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1163
1120
  #
1164
- def list_by_account_next_async(next_page_link, custom_headers = nil)
1121
+ def list_sas_tokens_next_async(next_page_link, custom_headers:nil)
1165
1122
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1166
1123
 
1167
1124
 
1168
1125
  request_headers = {}
1126
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1169
1127
 
1170
1128
  # Set Headers
1171
1129
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1180,7 +1138,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1180
1138
  headers: request_headers.merge(custom_headers || {}),
1181
1139
  base_url: request_url
1182
1140
  }
1183
- promise = @client.make_request_async(:get, path_template, options)
1141
+ promise = @client.make_request_async(:post, path_template, options)
1184
1142
 
1185
1143
  promise = promise.then do |result|
1186
1144
  http_response = result.response
@@ -1196,7 +1154,7 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1196
1154
  if status_code == 200
1197
1155
  begin
1198
1156
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1199
- result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::DataLakeAnalyticsAccountListStorageAccountsResult.mapper()
1157
+ result_mapper = Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::SasTokenInformationListResult.mapper()
1200
1158
  result.body = @client.deserialize(result_mapper, parsed_response)
1201
1159
  rescue Exception => e
1202
1160
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -1210,97 +1168,91 @@ module Azure::DataLakeAnalytics::Mgmt::V2016_11_01
1210
1168
  end
1211
1169
 
1212
1170
  #
1213
- # Lists the Azure Storage containers, if any, associated with the specified
1214
- # Data Lake Analytics and Azure Storage account combination. The response
1215
- # includes a link to the next page of results, if any.
1171
+ # Gets the first page of Azure Storage accounts, if any, linked to the
1172
+ # specified Data Lake Analytics account. The response includes a link to the
1173
+ # next page, if any.
1216
1174
  #
1217
- # @param resource_group_name [String] The name of the Azure resource group that
1218
- # contains the Data Lake Analytics account.
1219
- # @param account_name [String] The name of the Data Lake Analytics account for
1220
- # which to list Azure Storage blob containers.
1221
- # @param storage_account_name [String] The name of the Azure storage account
1222
- # from which to list blob containers.
1175
+ # @param resource_group_name [String] The name of the Azure resource group.
1176
+ # @param account_name [String] The name of the Data Lake Analytics account.
1177
+ # @param filter [String] The OData filter. Optional.
1178
+ # @param top [Integer] The number of items to return. Optional.
1179
+ # @param skip [Integer] The number of items to skip over before returning
1180
+ # elements. Optional.
1181
+ # @param select [String] OData Select statement. Limits the properties on each
1182
+ # entry to just those requested, e.g.
1183
+ # Categories?$select=CategoryName,Description. Optional.
1184
+ # @param orderby [String] OrderBy clause. One or more comma-separated
1185
+ # expressions with an optional "asc" (the default) or "desc" depending on the
1186
+ # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
1187
+ # desc. Optional.
1188
+ # @param count [Boolean] The Boolean value of true or false to request a count
1189
+ # of the matching resources included with the resources in the response, e.g.
1190
+ # Categories?$count=true. Optional.
1223
1191
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1224
1192
  # will be added to the HTTP request.
1225
1193
  #
1226
- # @return [ListStorageContainersResult] which provide lazy access to pages of
1227
- # the response.
1194
+ # @return [StorageAccountInformationListResult] which provide lazy access to
1195
+ # pages of the response.
1228
1196
  #
1229
- def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers = nil)
1230
- response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers).value!
1197
+ 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)
1198
+ 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!
1231
1199
  unless response.nil?
1232
1200
  page = response.body
1233
1201
  page.next_method = Proc.new do |next_page_link|
1234
- list_storage_containers_next_async(next_page_link, custom_headers)
1202
+ list_by_account_next_async(next_page_link, custom_headers:custom_headers)
1235
1203
  end
1236
1204
  page
1237
1205
  end
1238
1206
  end
1239
1207
 
1240
1208
  #
1241
- # Gets the SAS token associated with the specified Data Lake Analytics and
1242
- # Azure Storage account and container combination.
1209
+ # Lists the Azure Storage containers, if any, associated with the specified
1210
+ # Data Lake Analytics and Azure Storage account combination. The response
1211
+ # includes a link to the next page of results, if any.
1243
1212
  #
1244
- # @param resource_group_name [String] The name of the Azure resource group that
1245
- # contains the Data Lake Analytics account.
1246
- # @param account_name [String] The name of the Data Lake Analytics account from
1247
- # which an Azure Storage account's SAS token is being requested.
1213
+ # @param resource_group_name [String] The name of the Azure resource group.
1214
+ # @param account_name [String] The name of the Data Lake Analytics account.
1248
1215
  # @param storage_account_name [String] The name of the Azure storage account
1249
- # for which the SAS token is being requested.
1250
- # @param container_name [String] The name of the Azure storage container for
1251
- # which the SAS token is being requested.
1216
+ # from which to list blob containers.
1252
1217
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1253
1218
  # will be added to the HTTP request.
1254
1219
  #
1255
- # @return [ListSasTokensResult] which provide lazy access to pages of the
1256
- # response.
1220
+ # @return [StorageContainerListResult] which provide lazy access to pages of
1221
+ # the response.
1257
1222
  #
1258
- def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers = nil)
1259
- response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers).value!
1223
+ def list_storage_containers_as_lazy(resource_group_name, account_name, storage_account_name, custom_headers:nil)
1224
+ response = list_storage_containers_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value!
1260
1225
  unless response.nil?
1261
1226
  page = response.body
1262
1227
  page.next_method = Proc.new do |next_page_link|
1263
- list_sas_tokens_next_async(next_page_link, custom_headers)
1228
+ list_storage_containers_next_async(next_page_link, custom_headers:custom_headers)
1264
1229
  end
1265
1230
  page
1266
1231
  end
1267
1232
  end
1268
1233
 
1269
1234
  #
1270
- # Gets the first page of Azure Storage accounts, if any, linked to the
1271
- # specified Data Lake Analytics account. The response includes a link to the
1272
- # next page, if any.
1235
+ # Gets the SAS token associated with the specified Data Lake Analytics and
1236
+ # Azure Storage account and container combination.
1273
1237
  #
1274
- # @param resource_group_name [String] The name of the Azure resource group that
1275
- # contains the Data Lake Analytics account.
1276
- # @param account_name [String] The name of the Data Lake Analytics account for
1277
- # which to list Azure Storage accounts.
1278
- # @param filter [String] The OData filter. Optional.
1279
- # @param top [Integer] The number of items to return. Optional.
1280
- # @param skip [Integer] The number of items to skip over before returning
1281
- # elements. Optional.
1282
- # @param select [String] OData Select statement. Limits the properties on each
1283
- # entry to just those requested, e.g.
1284
- # Categories?$select=CategoryName,Description. Optional.
1285
- # @param orderby [String] OrderBy clause. One or more comma-separated
1286
- # expressions with an optional "asc" (the default) or "desc" depending on the
1287
- # order you'd like the values sorted, e.g. Categories?$orderby=CategoryName
1288
- # desc. Optional.
1289
- # @param count [Boolean] The Boolean value of true or false to request a count
1290
- # of the matching resources included with the resources in the response, e.g.
1291
- # Categories?$count=true. Optional.
1238
+ # @param resource_group_name [String] The name of the Azure resource group.
1239
+ # @param account_name [String] The name of the Data Lake Analytics account.
1240
+ # @param storage_account_name [String] The name of the Azure storage account
1241
+ # for which the SAS token is being requested.
1242
+ # @param container_name [String] The name of the Azure storage container for
1243
+ # which the SAS token is being requested.
1292
1244
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1293
1245
  # will be added to the HTTP request.
1294
1246
  #
1295
- # @return [DataLakeAnalyticsAccountListStorageAccountsResult] which provide
1296
- # lazy access to pages of the response.
1247
+ # @return [SasTokenInformationListResult] which provide lazy access to pages of
1248
+ # the response.
1297
1249
  #
1298
- 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)
1299
- response = list_by_account_async(resource_group_name, account_name, filter, top, skip, select, orderby, count, custom_headers).value!
1250
+ def list_sas_tokens_as_lazy(resource_group_name, account_name, storage_account_name, container_name, custom_headers:nil)
1251
+ response = list_sas_tokens_async(resource_group_name, account_name, storage_account_name, container_name, custom_headers:custom_headers).value!
1300
1252
  unless response.nil?
1301
1253
  page = response.body
1302
1254
  page.next_method = Proc.new do |next_page_link|
1303
- list_by_account_next_async(next_page_link, custom_headers)
1255
+ list_sas_tokens_next_async(next_page_link, custom_headers:custom_headers)
1304
1256
  end
1305
1257
  page
1306
1258
  end