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